From patchwork Fri Apr 21 20:04:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 49359 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4D2A927BBE9; Fri, 21 Apr 2023 21:06:20 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D0B1A27BBE2 for ; Fri, 21 Apr 2023 21:06:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ppx19-0004Eb-LQ; Fri, 21 Apr 2023 16:06:03 -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 1ppx18-0004ES-Ia for guix-patches@gnu.org; Fri, 21 Apr 2023 16:06:02 -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 1ppx18-0003u2-BK for guix-patches@gnu.org; Fri, 21 Apr 2023 16:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ppx18-0003Zd-6h for guix-patches@gnu.org; Fri, 21 Apr 2023 16:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62801] [PATCH v2 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: Fri, 21 Apr 2023 20: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.168210750813659 (code B ref 62801); Fri, 21 Apr 2023 20:06:02 +0000 Received: (at 62801) by debbugs.gnu.org; 21 Apr 2023 20:05:08 +0000 Received: from localhost ([127.0.0.1]:41228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppx0G-0003YF-3N for submit@debbugs.gnu.org; Fri, 21 Apr 2023 16:05:08 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:62632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ppx03-0003WL-Qc for 62801@debbugs.gnu.org; Fri, 21 Apr 2023 16:04:59 -0400 Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-3f09b9ac51dso60861135e9.0 for <62801@debbugs.gnu.org>; Fri, 21 Apr 2023 13:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682107490; x=1684699490; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9ioXy1cqCuFb1oNZHBoQenO+jqm0U8vGvTRTnIN4m6g=; b=cTGsCBk7BXtUTREqVRK6Idhz3g4NLx9ZHpYSKVYvjE1FSH8AkfQgV9CG0PixqgVabr IitH+zkZNNjzx0s/hEd+Ev7JdlJQ68LTjwK8ER9ZVlRmPScZ3zQ0SyZWJCMcINYFRuBe Iv26kIAFkhEB+xcJjKJ77Ko0b9KaGpkabrGBgxWa1jHNCwBiYbEegeWPe9BVeYZpQU80 E04e+7il3zGgFwaA9hdSYUALGc9pUEiIpFJ+cAWlBgi4xYYVlO4ATh+UYwAjuPjFOdHB XxjdJrt5P+z0V3wSl0llhsRM4+4ZXzylfd8TFYJbNjuJECMb8wu1R+ql+Tst9T4zZ8S4 yiiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682107490; x=1684699490; 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=9ioXy1cqCuFb1oNZHBoQenO+jqm0U8vGvTRTnIN4m6g=; b=lxm4jMIS4+e6iYSEbyRW10yIjG4VhgVw5xftIu2qOQO1u2tSNWWjCqEmgMHPnLCzEy Fvn/XvThgAwEV4T0xC04uR4QGXInSvfmdzL5o+UjBEFsUDDqrD9fNuHZyOyhNygzgBg2 RFDDfiSLy4iJDRq8VlhboGyxGIzHWbkKavnDNnQGG48TL2Z9/sg+xxjEUkD5pZIwBYe3 slDyO99YTGF7121arZ7wJnsirFSl9yL08otoAYdoEnyBMegd6W3RX+EsoGbIaK0vU/QX s3vCxaKmK+mizUB8W4dmuxcKvt0p+3ABqZi+RHy3nIbDjv2DBXIrdD4IBNnIZ+Nia0Ta YNWw== X-Gm-Message-State: AAQBX9d+aSr0vfjBGfQHKvTiF5riJrdPSJT1crmc52yN8ZRheHixHD1D O+bDOH7to64kW3pFISJvSyhP4kb4VIE= X-Google-Smtp-Source: AKy350bvOxhx3YG3f5PQqx5FjVmTXOrfMpe4tt3y1jOgFrg4/trDaGljhURCJBB0YYfTEWY9dQcUaQ== X-Received: by 2002:adf:e749:0:b0:2fa:88d3:f8b8 with SMTP id c9-20020adfe749000000b002fa88d3f8b8mr8368793wrn.12.1682107489796; Fri, 21 Apr 2023 13:04:49 -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 r17-20020adfdc91000000b002ff2c39d072sm5062721wrj.104.2023.04.21.13.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 13:04:49 -0700 (PDT) From: Sharlatan Hellseher Date: Fri, 21 Apr 2023 21:04:43 +0100 Message-Id: <20230421200446.1899-1-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (python-astroscrappy): New variable. --- gnu/packages/astronomy.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 97a3255ef9..fb841ed65d 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -1302,6 +1302,50 @@ (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 + #:test-flags #~(list "--pyargs" "astroscrappy") + #: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 'tests-preparation + (lambda _ + (make-file-writable "astroscrappy/_compiler.c") + (invoke "python" "setup.py" "build_ext" "--inplace")))))) + (native-inputs + (list python-cython + python-extension-helpers + python-h5py + python-pandas + python-pytest-astropy + python-scikit-image + python-scipy + python-setuptools-scm)) + (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")