From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AJjgDnodN2SuIQAASxT56A (envelope-from ) for ; Wed, 12 Apr 2023 23:07:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4OraDnodN2R3cAEA9RJhRA (envelope-from ) for ; Wed, 12 Apr 2023 23:07:06 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F05C03ADE9 for ; Wed, 12 Apr 2023 23:07:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmhfL-0008BN-KB; Wed, 12 Apr 2023 17:06:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmhfH-00089y-6v for guix-patches@gnu.org; Wed, 12 Apr 2023 17:06:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmhfG-0007r3-Tu for guix-patches@gnu.org; Wed, 12 Apr 2023 17:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmhfG-0000nk-PE for guix-patches@gnu.org; Wed, 12 Apr 2023 17:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62801] [PATCH 1/4] gnu: Add python-astroscrappy. References: <20230412205748.29835-1-sharlatanus@gmail.com> In-Reply-To: <20230412205748.29835-1-sharlatanus@gmail.com> Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 12 Apr 2023 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62801 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62801@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 62801-submit@debbugs.gnu.org id=B62801.16813335443034 (code B ref 62801); Wed, 12 Apr 2023 21:06:02 +0000 Received: (at 62801) by debbugs.gnu.org; 12 Apr 2023 21:05:44 +0000 Received: from localhost ([127.0.0.1]:41953 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmhey-0000mn-Eq for submit@debbugs.gnu.org; Wed, 12 Apr 2023 17:05:44 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:41716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmher-0000lu-CE for 62801@debbugs.gnu.org; Wed, 12 Apr 2023 17:05:41 -0400 Received: by mail-wr1-f47.google.com with SMTP id v6so12202884wrv.8 for <62801@debbugs.gnu.org>; Wed, 12 Apr 2023 14:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681333531; x=1683925531; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qwR09VuV9E2/vly1SLSfWMjB51fJyaQtzn9wD9ZaomU=; b=jQ0+zTZ2Vxpg9ngMedBFaXzljDJGmj7GQjzoN3p2ufBQu5fhp/Fkh++BmMAx1pNqdS xmxUQya9eaYd2nLz1H7eSMhXBwdg44e4Di+Vhruo4vWurNCv17eAl5SALEetmD+Bc9Hz 5QjVJ2gRdSWjAVmOPL0JlbaXohp29GuZt+OAIf38bOO1yT6ALFvmGSHyYY6brER4ICd9 9A3fon9sUKqwqpFQKGNxXpW5Xiq7DMfc4gkg0Fnu6WK8QYHE1Wa/r7+O5A+7Iu/NluKb REdZWR3newrLjMIiGGM49oTGEPySsrU0S8m+ke0QxzqGJqsgfJrxMobhY79TeZbzmMBG 9aAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681333531; x=1683925531; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qwR09VuV9E2/vly1SLSfWMjB51fJyaQtzn9wD9ZaomU=; b=YLhkpaqmFAp60w0yydpDtOGd+qKcg6jmuXW8JkNV0Br0dz9eQJIczu5ahZQmDYY6Mf iDH5Gk2oI55VCRX8dYyaWjLspzlFgFcomLEs2fsdqcUoJU2A8HYQrWEJ2+OBcEpxcX7S 0O3RBW8NmhfGPKPiZNxrLP8/RtlzTsFUAKxEWS88zRPwNlAZF3Blg8gBHba7mXrPKy2B q7BEIY92f2QTw7NSvTEuQTccH3vR7qX/xrOX8wyFTKoSy+nIqmzr1R8/bNyKWBhUcg3c +jo6UtZTHz1NrBWtsrLlGWIUBAhCHxUzdSjoRpQ/U1fnXfCw0OkJdNcHNpoPdbHk3+UR 8QRg== X-Gm-Message-State: AAQBX9dyF+eXU1i8Dd74B4wrtwufqXUOasO8zVs9e96zKYfajBMyNEnV 5g5qaOX6yZrQPoooH13LLHa5GlUZ/nc= X-Google-Smtp-Source: AKy350Y35vuCwuuRIf6zylZ9LhXZfPA9hB0C83+mvvqxc1Th5CaF1FCIjMaOzzZPVPCOe/spwVq9rA== X-Received: by 2002:a5d:504c:0:b0:2f4:4e1a:bea2 with SMTP id h12-20020a5d504c000000b002f44e1abea2mr2670436wrt.59.1681333531387; Wed, 12 Apr 2023 14:05:31 -0700 (PDT) Received: from guxtil.incerto.xyz (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id y9-20020adffa49000000b002c592535839sm18031381wrr.17.2023.04.12.14.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 14:05:30 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 12 Apr 2023 22:05:26 +0100 Message-Id: <20230412210529.30189-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681333625; a=rsa-sha256; cv=none; b=ty6gN6P9qLd5D2YwwZqVhNfeE17tgHd+A5U1yVhTSSE5EInvG+EGjb2OMYwyfOygR2QgHA 29UokcnUFkG1QuNf8jkum7mem5cNG659mE8e7p0pkXdnisisS/uTdHAYy67Z87lp+TX3Ef 6B5kVpwAthzY+F9tJ31zQrxxE4wcjc25iDntFkSdg85XXjiO9tUpdEfLuOLmwB2WCrvZGh D5MRKJlFVAFqOEJWChmVn2xD5xe6PO+cg3Fni8hqJGh8C1vPlOIXgsj3T7jE2ROQO7V659 E/8TrE3D2G28hWHR+iJZQirmnfb51BrzglPrGFdCrRBzBGG2/SqUE7aLgqXjsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=jQ0+zTZ2; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681333625; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qwR09VuV9E2/vly1SLSfWMjB51fJyaQtzn9wD9ZaomU=; b=davpJmv7noX9Pt+fTl/wNat5EZeWq9zkmPc5fAlY7UBq28XkPIX3rRM4UD4YDapdk7w4Ti FzScMHm2HA0AWnS4lfMrAkhuLDdEcd/AU3W0raVWV2wBMVPJ/jiUKoB3Ot6QNk7ZZUABH7 2G0c75jJkzPuHT+z9ZcAwFpy8eiceZoGWnWut6TWlClC5sulwhrZeZmB7PnQ8HsF0OBmrh YNa6O6XsGyY4Cnwt7252Bl5EEV9sYhEIGH3UtHBdEJabKD11+FEpi5a2f37e880t6zO2wV Ut8WalfBrpxKAcXWbuarfjsb9eI0fp4Y/Fe9rbXCwzkZ9EM+qO1ifyWi8uMjFw== X-Migadu-Queue-Id: F05C03ADE9 X-Migadu-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=jQ0+zTZ2; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 8.28 X-Spam-Score: 8.28 X-TUID: doka4rWlE8hB * gnu/packages/astronomy.scm (python-astroscrappy): New variable. --- gnu/packages/astronomy.scm | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index db290f5987..f162be6006 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1302,6 +1302,54 @@ (define-public python-astroquery to access online Astronomical data. Each web service has its own sub-package.") (license license:bsd-3))) +(define-public python-astroscrappy + (package + (name "python-astroscrappy") + (version "1.1.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "astroscrappy" version)) + (sha256 + (base32 "0shmfilvzpmlwz4fh0bx4kqmzr0y39fgga6vipxb5d1rx1y6q6by")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'preparations + (lambda _ (setenv "HOME" "/tmp"))) + (add-before 'install 'writable-compiler + (lambda _ (make-file-writable "astroscrappy/_compiler.c"))) + (add-before 'check 'writable-compiler + (lambda _ (make-file-writable "astroscrappy/_compiler.c"))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + ;; Extensions have to be rebuilt before running the tests. + (invoke "python" "setup.py" "build_ext" "--inplace") + (invoke "python" "-m" "pytest" "--pyargs" "astroscrappy"))))))) + (native-inputs + (list python-cython + python-extension-helpers + python-h5py + python-pandas + python-pytest-astropy + python-scikit-image + python-setuptools-scm + python-scipy)) + (propagated-inputs (list python-astropy python-numpy)) + (home-page "https://github.com/astropy/astroscrappy") + (synopsis "Speedy Cosmic Ray Annihilation Package in Python") + (description + "Astro-SCRAPPY is designed to detect cosmic rays in images (numpy +arrays), based on Pieter van Dokkum's L.A.Cosmic algorithm. Much of this was +originally adapted from cosmics.py written by Malte Tewes. This is designed to +be as fast as possible so some of the readability has been sacrificed, +specifically in the C code.") + (license license:bsd-3))) + (define-public python-cdflib (package (name "python-cdflib") -- 2.39.2