From patchwork Sun Jan 9 04:37:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vinicius Monego X-Patchwork-Id: 36177 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 E4F8427BBEA; Sun, 9 Jan 2022 04:38:10 +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 9224827BBE9 for ; Sun, 9 Jan 2022 04:38:10 +0000 (GMT) Received: from localhost ([::1]:42262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n6Py5-0008U8-PC for patchwork@mira.cbaines.net; Sat, 08 Jan 2022 23:38:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n6Pxy-0008TH-DV for guix-patches@gnu.org; Sat, 08 Jan 2022 23:38:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:56164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n6Pxy-000494-4i for guix-patches@gnu.org; Sat, 08 Jan 2022 23:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n6Pxy-0007z8-0X for guix-patches@gnu.org; Sat, 08 Jan 2022 23:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53135] [PATCH 1/5] gnu: Add python-pyvo. References: <20220109043522.27612-1-monego@posteo.net> In-Reply-To: <20220109043522.27612-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Jan 2022 04:38:01 +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.164170307230664 (code B ref 53135); Sun, 09 Jan 2022 04:38:01 +0000 Received: (at 53135) by debbugs.gnu.org; 9 Jan 2022 04:37:52 +0000 Received: from localhost ([127.0.0.1]:49063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6Pxo-0007yW-9i for submit@debbugs.gnu.org; Sat, 08 Jan 2022 23:37:52 -0500 Received: from mout01.posteo.de ([185.67.36.65]:48001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6Pxm-0007yE-Gl for 53135@debbugs.gnu.org; Sat, 08 Jan 2022 23:37:51 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8EB90240026 for <53135@debbugs.gnu.org>; Sun, 9 Jan 2022 05:37:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641703064; bh=825NWjfrp8N8WwsXtPiwEom4KagVY4ECaZ/FgFZ8yOc=; h=From:To:Cc:Subject:Date:From; b=iReLhilw/fyeK1LwT9DZZ6nNrCyZshwk71fenz4YZ92TCDkinHCuodQW30h5ANvf0 jgwsr2dTjbCorJkf4/gP4igZOvYwE2tHCGiTgaBYlMaWsOy4iiB7OPmxbz4j04ESF0 OLfuASOVr3s/Oasrdyn8n7G3aZ3n31ZZiwlSrZDC+ncL+zxrcLlTLs3yNt9DxyoqMt mBvH4/yLrwYbUTigRwwX2DJAC/eV+9v/2L9bEqMjKY8+Ysv8X8zrWjaZ9yCBiTiTUv FiktD14QEgjNWVo31Mqcu428rjxaot+AysMfg+qQGpoDg0l4HD4IdcLbE/ER9yCw12 DItEihRrl2toA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JWkhl2rYNz9rxN; Sun, 9 Jan 2022 05:37:42 +0100 (CET) From: Vinicius Monego Date: Sun, 9 Jan 2022 04:37:22 +0000 Message-Id: <20220109043726.28142-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-pyvo): New variable. --- gnu/packages/astronomy.scm | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index a7a07fa3a8..ef85ec79e0 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -6,7 +6,7 @@ ;;; Copyright © 2020 R Veera Kumar ;;; Copyright © 2020, 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sharlatan Hellseher -;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2021, 2022 Vinicius Monego ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Foo Chuan Wei ;;; @@ -55,6 +55,7 @@ #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) + #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages time) @@ -705,6 +706,40 @@ much of the core functionality and some common tools needed for performing astronomy and astrophysics.") (license license:bsd-3))) +(define-public python-pyvo + (package + (name "python-pyvo") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyvo" version)) + (sha256 + (base32 "1lap703wxbyxqlbk85myirp4pkdnc6cg10xhfajfsvz5k0hm5ffw")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest" "--pyargs" "pyvo" "-k" + (string-append ; these tests use the network + "not test_access_with_string" + " and not test_access_with_list" + " and not test_access_with_expansion")))))))) + (native-inputs + (list python-pytest-astropy python-requests-mock)) + (propagated-inputs + (list python-astropy python-mimeparse python-pillow python-requests)) + (home-page "https://github.com/astropy/pyvo") + (synopsis "Access Virtual Observatory data and services") + (description + "PyVO is a package providing access to remote data and services of the +Virtual observatory (VO) using Python.") + (license license:bsd-3))) + (define-public python-astral (package (name "python-astral")