1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-23 18:50:32 +02:00

gnu: Remove python-poliastro.

* gnu/packages/astronomy.scm (python-poliastro): Delete variable.

Fixes: guix/guix#6387
Change-Id: I2380f793aca8bb1b19b6803e75849e1ab76eebb5
This commit is contained in:
Sharlatan Hellseher
2026-03-15 20:39:41 +00:00
parent 7a49d6317d
commit 959cf334b9

View File

@@ -7265,96 +7265,6 @@ binned galaxy positions or shear) in cylindrical projection, but its core
functionality is more general.")
(license license:bsd-3)))
;; XXX: The project is archived, maintained fork is available see
;; <https://github.com/poliastro/poliastro/issues/1640>.
;; Maintained fork <https://github.com/pleiszenburg/hapsira>.
(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
#:test-flags
#~(list "-m" "not remote_data"
;; TODO: Review failing tests later when any upstream
;; suggestions are provided:
;; https://github.com/poliastro/poliastro/issues/1618
"--ignore=tests/test_czml.py"
"-k" (string-append
;; This fails with "ufunc 'isfinite' not
;; supported for the input types"
"not test_porkchop_plotting"
" and not test_maneuver_constructor_raises_error_if_invalid_delta_v"))
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "pyproject.toml"
(("5.0,<6") "5.0,<7"))))
(add-after 'unpack 'matplotlib-compatibility
(lambda _
(substitute* "src/poliastro/plotting/static.py"
(("import numpy as np.*" m)
(string-append m "\
import itertools\n"))
(("( +)self._ax = ax.*" m indent)
(string-append m indent
"\
self.colors = itertools.cycle(plt.rcParams[\"axes.prop_cycle\"].by_key()[\"color\"])\n"))
(("color = next\\(self._ax._get_lines.prop_cycler\\)\\[\"color\"\\]")
"color = next(self.colors)"))))
;; NOTE: Tests take about 7-10 minutes to pass.
(add-before 'check 'prepare-test-environment
(lambda _
(setenv "HOME" "/tmp"))))))
(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-6
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 a 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")