summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-04-14 14:14:43 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-04-30 13:20:52 +0100
commit3941126ebf97fc475c8add6039fe6a345c2202fa (patch)
treec8ef36954037549d6eb049ec76967257eb71c822 /gnu
parentcfb10c95ffc056eb607aee45e0f81610067b4257 (diff)
gnu: Add python-spacepy.
* gnu/packages/astronomy.scm (python-spacepy): New variable. Change-Id: I9ef1b2bdc40710ea40e7ac6b7369b7095bef5a88
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/astronomy.scm61
1 files changed, 61 insertions, 0 deletions
diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm
index bb4f3db25c..a5a1dbecbf 100644
--- a/gnu/packages/astronomy.scm
+++ b/gnu/packages/astronomy.scm
@@ -9533,6 +9533,67 @@ Computing Cluster, HPCC}
@end itemize")
(license license:bsd-3)))
+(define-public python-spacepy
+ (package
+ (name "python-spacepy")
+ (version "0.7.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/spacepy/spacepy")
+ (commit (string-append "release-" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1i9657j4qll3f8z20n9md93yh35n0vjj32k522bdqxq5pda8dng0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests:
+ #:test-flags
+ #~(list "--ignore=developer/"
+ ;; Tests depend on https://cdf.gsfc.nasa.gov/.
+ "--ignore=tests/test_all.py"
+ "--ignore=tests/test_coordinates.py"
+ "--ignore=tests/test_datamodel.py"
+ "--ignore=tests/test_irbempy.py"
+ "--ignore=tests/test_pycdf.py"
+ "--ignore=tests/test_pycdf_istp.py"
+ "--ignore=tests/test_time.py"
+ ;; AssertionError: Lists differ: ['[sp[38 chars]cePy UNRELEASED
+ ;; default test entry: value\n', [38 chars]]\n'] != ['[sp[38
+ ;; chars]cePy 0.7.0 default test entry: value\n', '#tes[33
+ ;; chars]]\n']
+ (string-append "--deselect=tests/test_base.py::"
+ "SpacepyConfigTests::"
+ "testWriteDefaultsMultipleSections"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'sanity-check 'set-HOME
+ (lambda _
+ (setenv "HOME" "/tmp")))
+ (add-before 'check 'remove-local-source
+ (lambda _
+ (delete-file-recursively "spacepy"))))))
+ (native-inputs
+ (list gfortran
+ python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-astropy
+ python-h5py
+ python-matplotlib
+ python-numpy
+ python-dateutil
+ python-scipy))
+ (home-page "https://github.com/spacepy/spacepy")
+ (synopsis "Tools for Space Science Applications")
+ (description
+ "SpacePy is a package for Python, targeted at the space sciences, that
+aims to make basic data analysis, modeling and visualization easier. It
+builds on the capabilities of NumPy and MatPlotLib packages.")
+ (license license:psfl)))
+
(define-public python-spacetrack
(package
(name "python-spacetrack")