From patchwork Sun Jan 9 04:38:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 36179 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 35A1727BBEA; Sun, 9 Jan 2022 04:39:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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 0108127BBE9 for ; Sun, 9 Jan 2022 04:39:12 +0000 (GMT) Received: from localhost ([::1]:43208 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6Pz5-0000rS-5U for patchwork@mira.cbaines.net; Sat, 08 Jan 2022 23:39:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6Pyw-0000q5-Ve for guix-patches@gnu.org; Sat, 08 Jan 2022 23:39:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56177) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6Pyw-0004Dl-NR for guix-patches@gnu.org; Sat, 08 Jan 2022 23:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6Pyw-00081e-KU for guix-patches@gnu.org; Sat, 08 Jan 2022 23:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53135] [PATCH 4/5] gnu: Add python-photutils. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jan 2022 04:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53135 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53135@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 53135-submit@debbugs.gnu.org id=B53135.164170313930829 (code B ref 53135); Sun, 09 Jan 2022 04:39:02 +0000 Received: (at 53135) by debbugs.gnu.org; 9 Jan 2022 04:38:59 +0000 Received: from localhost ([127.0.0.1]:49077 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6Pys-000819-M8 for submit@debbugs.gnu.org; Sat, 08 Jan 2022 23:38:58 -0500 Received: from mout02.posteo.de ([185.67.36.66]:47253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6Pyr-00080g-A8 for 53135@debbugs.gnu.org; Sat, 08 Jan 2022 23:38:57 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id AD5CB240101 for <53135@debbugs.gnu.org>; Sun, 9 Jan 2022 05:38:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641703131; bh=/E2V/tUXSHcgpY6sQMxEkiDig0/IlX8ChCfHUHpGvQU=; h=From:To:Cc:Subject:Date:From; b=pv1yPIf1Nv4n+BKcIRZHEhCID2I1mYPkoJGwarjZTg3TiLDxFb9oVcQamtmdhhefn PZ66Qf6Pgj8RDl5Gb8Wp9nWa4kFvQvk6hvctdsoQNi68UjUxWM8Pw1K5G2ykDHNqby QHa2t+9lTt7oCfqRs4LjPO7kTIxKzNFFPOgcAtFWa+pwjR27aXCriw1gV2ESNVoLq6 Si+vSMUu2kEGOH+sGEKG6pgn19JZ9VdeH2st7c6l/I6bDBADIUoTsxB0ovqLwVJ38r Ko20KYcJwAMzFSSfGK987EHgRQKM8BZPQvZnGr56V/WUZ2rNmL3EckLi/GWQxum4XB p4L2qpsFVfXEA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JWkk25y08z9rxP; Sun, 9 Jan 2022 05:38:50 +0100 (CET) From: Vinicius Monego Date: Sun, 9 Jan 2022 04:38:40 +0000 Message-Id: <20220109043841.28296-2-monego@posteo.net> In-Reply-To: <20220109043841.28296-1-monego@posteo.net> References: <20220109043841.28296-1-monego@posteo.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (python-photutils): New variable. --- gnu/packages/astronomy.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 1573003c7e..20961e1436 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -789,6 +789,40 @@ astronomy and astrophysics.") to access online Astronomical data. Each web service has its own sub-package.") (license license:bsd-3))) +(define-public python-photutils + (package + (name "python-photutils") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "photutils" version)) + (sha256 + (base32 "1a8djakaya6w5iv9237gkcz39brqzgrfs2wqrl0izi1s85cfdymn")))) + (build-system python-build-system) + (arguments + `(#:test-target "pytest" + #:phases + (modify-phases %standard-phases + ;; This file is opened in both install and check phases. + (add-before 'install 'writable-compiler + (lambda _ (make-file-writable "photutils/_compiler.c"))) + (add-before 'check 'writable-compiler + (lambda _ (make-file-writable "photutils/_compiler.c")))))) + (propagated-inputs + (list python-astropy python-numpy)) + (native-inputs + (list python-cython + python-extension-helpers + python-pytest-astropy + python-pytest-runner + python-setuptools-scm)) + (home-page "https://github.com/astropy/photutils") + (synopsis "Source detection and photometry") + (description "Photutils is an Astropy package for detection and photometry +of astronomical sources.") + (license license:bsd-3))) + (define-public python-pyvo (package (name "python-pyvo")