From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uHULF84ZCWRLdgEASxT56A (envelope-from ) for ; Thu, 09 Mar 2023 00:27:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kB/VFs4ZCWS+KQEAauVa8A (envelope-from ) for ; Thu, 09 Mar 2023 00:27:10 +0100 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 D50962F3DE for ; Thu, 9 Mar 2023 00:27:09 +0100 (CET) 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 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678318030; 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=4jpYohzxK29Pmm/YMRkC0ORNPgO9iRf/aYoreXK8KkM=; b=jqO9qrRbad69Ao5jlbFuOz07Fv7KKsLFuo9APXmFASxWj4XhIIjZB1qKOcls5bQ6urNkJG L7iK2ktNn8QOgLVtKtHui2WthpBqZk6HsU3ZmoAJwANkHGMTykQyT+9uQhjAfRouuQbgq2 mL+3795qscmhZWGVbThd2JMbR0TzRO5LxrEuJCiwTy2BCveWGVuacS8z6uIwmlouUbwjUZ S6IyAFHCOCUUEYuula6ofBg7SkO1OVAAJRXTBe9eTxjygWVqV+ym0hY5088Nw9KkLCarmU 4OAalbiLwFFRrdIMBfMvDyy8BKR5KS9lkUdAk0WZoV5UK2o27WRXOwSRD5tGuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SQbBVBI2; 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-Seal: i=1; s=key1; d=yhetil.org; t=1678318030; a=rsa-sha256; cv=none; b=Xn/k1L+AD9d88aZeZ1ySPd7fLfz5LqC5jmhn8k/9WT9jI7oPYfq+hbtKsxjY8WCsPDsKeb Cditgwpe0yuTf7EpCcQadaB9O+NbfTvgYI9ob7ZinZuMW9UYgri/8lgWnWqkL4vGhxTR+N k8a2WppSAQP0v/vEeIUHgcf3yhLS4Rn7WqmqJqKdDXZvyZ1Ux9ax1oO56Fi2nszQlqRL7k jJZtvkoScDFUMhEZ8qLBIpSSHFcqWt0ghB4Ou3n0qJvZD/UY6efbN9jJmqNqDPhqk5eGcG 499wMYKhcXGILQmPAh14hdycWYVdFBvPk1YU4Q5zSylOGVTrXi03Kr3v4gsTdw== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=SQbBVBI2; 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-Migadu-Spam-Score: 7.30 X-Spam-Score: 7.30 X-Migadu-Queue-Id: D50962F3DE X-Migadu-Scanner: scn1.migadu.com X-TUID: kloFO6JAYvTm * 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") -- 2.39.1