From 853501a25dfa4eb5ae217e0c0a770b75977b3131 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 12 Nov 2025 12:19:07 +0000 Subject: [PATCH] gnu: Add python-spacetrack. * gnu/packages/astronomy.scm (python-spacetrack): New variable. Change-Id: I9ab6910016b5861a339ae6c2485b4d9f6712415a --- gnu/packages/astronomy.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 3be8302c4a648e54dcb3260eb7f2bc17ea877bbe..9a5b9a8b3714a4db5136785ff6d50d579de1ebbd 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -8921,6 +8921,50 @@ Computing Cluster, HPCC} @end itemize") (license license:bsd-3))) +(define-public python-spacetrack + (package + (name "python-spacetrack") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "spacetrack" version)) + (sha256 + (base32 "0x2c8gag0h8435a5xzqfpm7sw98s908r40y4xjh9c16yvv1m8jzy")))) + (build-system pyproject-build-system) + (arguments + (list + ;; tests: 75 passed, 1 deselected, 19 warnings + #:test-flags + #~(list "--asyncio-mode=auto" + ;; One test fails with assertion not equal. + "--deselect=tests/test_aio.py::test_modeldef_not_used_trio"))) + (native-inputs + (list nss-certs-for-test + python-pytest + python-pytest-asyncio + python-respx + python-setuptools)) + (propagated-inputs + (list python-filelock-next + python-httpx + python-logbook + python-outcome + python-platformdirs + python-dateutil + python-represent + python-rush + python-sniffio)) + (home-page "https://github.com/python-astrodynamics/spacetrack") + (synopsis "Python client for space-track.org") + (description + "@code{spacetrack} is a python module for @url{https://www.space-track.org/, +Space-Track} which promotes space flight safety, protection of the space +environment and the peaceful use of space worldwide by sharing space +situational awareness services and information with international satellite +owners/operators, academia and other entities.") + (license license:expat))) + (define-public python-specreduce (package (name "python-specreduce")