From patchwork Wed Mar 8 23:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 47805 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 429D116E09; Wed, 8 Mar 2023 23:27:11 +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=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,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 88B7D16E09 for ; Wed, 8 Mar 2023 23:27:09 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pa3Ba-0005BW-Fg; Wed, 08 Mar 2023 18:27:06 -0500 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 1pa3BY-0005Ar-Rk for guix-patches@gnu.org; Wed, 08 Mar 2023 18:27:04 -0500 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 1pa3BY-0001h2-J3 for guix-patches@gnu.org; Wed, 08 Mar 2023 18:27:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pa3BY-0008UE-Eu for guix-patches@gnu.org; Wed, 08 Mar 2023 18:27:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62061] [PATCH 3/3] gnu: Add python-poliastro. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Mar 2023 23:27:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62061 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62061@debbugs.gnu.org Cc: Sharlatan Hellseher Received: via spool by 62061-submit@debbugs.gnu.org id=B62061.167831800932563 (code B ref 62061); Wed, 08 Mar 2023 23:27:04 +0000 Received: (at 62061) by debbugs.gnu.org; 8 Mar 2023 23:26:49 +0000 Received: from localhost ([127.0.0.1]:50395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pa3BJ-0008T4-0u for submit@debbugs.gnu.org; Wed, 08 Mar 2023 18:26:49 -0500 Received: from mail-wr1-f42.google.com ([209.85.221.42]:42673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pa3BH-0008SR-6W for 62061@debbugs.gnu.org; Wed, 08 Mar 2023 18:26:47 -0500 Received: by mail-wr1-f42.google.com with SMTP id j2so187820wrh.9 for <62061@debbugs.gnu.org>; Wed, 08 Mar 2023 15:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678318001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4jpYohzxK29Pmm/YMRkC0ORNPgO9iRf/aYoreXK8KkM=; b=SQbBVBI2UucUMANtLGNWBJjUswD2Lu3Bh6pecJLeanFt4yaggGrItEqPqsmahh2sFw hcekQM7b6iWZOgz3ZgfGxEDVlLBcBxTAtMwSOaZtVUAOXqjuCapA12ikhQ4zvzpRjKF0 J8YnuWQLiIEzA92nrtzQ73GEX6LQxZKVtQayyPfmogKN81BX0CKYPP2xFUPN/teOi2wJ +aLFcnkzcQ9wTdnWGwm2FHz+rPuODjai3n5ZT+qFTLvy5xywUCh04Qccb5yG2wZzZJyy 3/h9lgiYohGd5qIjxDyI/BASiHVJ7LhswuxEzOJvXCCUfcQYoGxWcdOp2Aj/8JIKDgrr BqCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678318001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4jpYohzxK29Pmm/YMRkC0ORNPgO9iRf/aYoreXK8KkM=; b=LO2XTUEiol/q474qhvTiCFwbXX4dQ37yVltdJRyLlhYdg2HAh+UD14GaKcTfzTk13J ItDdj9qvmlcGtBKjjVlW1p7omP1LNBgEXKw24Aym6OStuMha+E3GyrXrX1FydQ/86wAi jFjhMp4/KrfPBdecKhh5O5bw3/dK/oNfRh9ft/iqaeIMru4drP2IUF4tppLKdUu1B/hx 7BbslfoCjrek5GuwZdJIhZwZFBe5mF6giwD7AkMqdwM04sm4zLsMKmraSPOumCnGz41/ 2/fXZmOoD86tAE/DAbDDSr4X+cl4A5ad+lxfc6Lev7mbKiiU705bAmELs4BFXxFlEHqt XRFw== X-Gm-Message-State: AO0yUKXhNvx0YOlDPIwSyAR3Zm8NBNp+lnIRRUJy4K8d4cEfvgoAgVOX EVWZ9al3oZmqJjtHE0pWyiECfNLiIHw= X-Google-Smtp-Source: AK7set/hPVecWg4qayn4b5JTS6GjKRTofbwTdquu8yqUcR8fe99FLA3G5o39g/2xibxdaWK0iN74ow== X-Received: by 2002:adf:ee90:0:b0:2c8:9cfe:9e29 with SMTP id b16-20020adfee90000000b002c89cfe9e29mr12725245wro.38.1678318001454; Wed, 08 Mar 2023 15:26:41 -0800 (PST) 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 f2-20020a5d4dc2000000b002be5bdbe40csm16190254wru.27.2023.03.08.15.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 15:26:41 -0800 (PST) From: Sharlatan Hellseher Date: Wed, 8 Mar 2023 23:26:37 +0000 Message-Id: <20230308232637.6788-3-sharlatanus@gmail.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230308232637.6788-1-sharlatanus@gmail.com> References: <20230308232637.6788-1-sharlatanus@gmail.com> 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-poliastro): New variable. --- gnu/packages/astronomy.scm | 74 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 6179b2dbf5..3301a40142 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -46,6 +46,7 @@ (define-module (gnu packages astronomy) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gps) + #:use-module (gnu packages graph) #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) #:use-module (gnu packages image) @@ -1453,6 +1454,79 @@ (define-public python-photutils of astronomical sources.") (license license:bsd-3))) +(define-public python-poliastro + (package + (name "python-poliastro") + (version "0.17.0") + (source + (origin + ;; PyPi tarball lacks tests. + (method git-fetch) + (uri (git-reference + (url "https://github.com/poliastro/poliastro") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1iclyjp0cvm6hp5qf4fzklszxvhj3idkxgb6a9h7xzg9bf5j5gi2")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; NOTE: Tests take about 7-10 minutes to pass. + (add-before 'check 'prepare-test-environment + (lambda _ + (setenv "HOME" "/tmp") + ;; TODO: Review failing tests later when any upstream + ;; suggestions are provided: + ;; https://github.com/poliastro/poliastro/issues/1618 + (substitute* "tests/test_czml.py" + (("def test_czml_add_trajectory") "def __off_test_czml_add_trajectory") + (("def test_czml_custom_packet") "def __off_test_czml_custom_packet") + (("def test_czml_ground_station") "def __off_test_czml_ground_station") + (("def test_czml_groundtrack") "def __off_test_czml_groundtrack") + (("def test_czml_preamble") "def __off_test_czml_preamble")))) + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "pytest" + ;; Skip tests that need remote data. + "-m" "not remote_data"))))))) + (native-inputs + (list python-coverage + python-hypothesis + python-mypy + python-flit-core + python-pytest + python-pytest-cov + python-pytest-doctestplus + python-pytest-mpl + python-pytest-mypy)) + (propagated-inputs + (list python-astropy + python-astroquery + python-czml3 + python-jplephem + python-matplotlib + python-numba + python-numpy + python-pandas + python-plotly + python-pyerfa + python-scipy)) + (home-page "https://www.poliastro.space/") + (synopsis "Astrodynamics in Python") + (description + "POLIASTRO is an Python library for interactive Astrodynamics and Orbital +Mechanics, with a focus on ease of use, speed, and quick visualization. It +provides a simple and intuitive API, and handles physical quantities with units. + +Some features include orbit propagation, solution of the Lambert's problem, +conversion between position and velocity vectors and classical orbital elements +and orbit plotting, among others. It focuses on interplanetary applications, but +can also be used to analyze artificial satellites in Low-Earth Orbit (LEO).") + (license license:expat))) + (define-public python-poppy (package (name "python-poppy")