guix_mirror_bot pushed a commit to branch astro-update
in repository guix.
commit 8c26129299bbc511275345fdbef8fbde67f8d2cc
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Fri Feb 20 00:04:59 2026 +0000
gnu: Add python-quantities.
* gnu/packages/python-science.scm (python-quantities): New variable.
Change-Id: I40a28c0943a37d2c298b3031f5b22c09cc37b487
---
gnu/packages/python-science.scm | 36 +++++++++++++++++++++++++++++++++++-
1 file changed, 35 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 594c2a829d..c6e2ebd74e 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -29,7 +29,7 @@
;;; Copyright © 2022 jgart <[email protected]>
;;; Copyright © 2022 Sarah Morgensen <[email protected]>
;;; Copyright © 2023, 2024 Troy Figiel <[email protected]>
-;;; Copyright © 2024-2025 Sharlatan Hellseher <[email protected]>
+;;; Copyright © 2024-2026 Sharlatan Hellseher <[email protected]>
;;; Copyright © 2024 Marco Baggio <[email protected]>
;;; Copyright © 2024 Nicolas Graves <[email protected]>
;;; Copyright © 2024 Rick Huijzer <[email protected]>
@@ -2677,6 +2677,40 @@ or as a TikZ file for use in LaTeX documents;
factorization routine for quasi-definite linear system.")
(license license:asl2.0)))
+(define-public python-quantities
+ (package
+ (name "python-quantities")
+ (version "0.16.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "quantities" version))
+ (sha256
+ (base32 "0dmzk17hd0c6lzjlipjpc52jdifknpvxq15javn19n3f9yvxxdpm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "PY_IGNORE_IMPORTMISMATCH" "1"))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-setuptools-scm))
+ (propagated-inputs
+ (list python-numpy))
+ (home-page "https://github.com/python-quantities/python-quantities")
+ (synopsis "Support for physical quantities with units, based on NumPy")
+ (description
+ "Quantities is designed to handle arithmetic and conversions of physical
+quantities, which have a magnitude, dimensionality specified by various units,
+and possibly an uncertainty. It builds on the NumPy library and is designed
+to work with @code{numpy.ufuncs}, many of which are already supported.")
+ ;; OSI approved, BSD like, see doc/user/license.rst.
+ (license license:bsd-3)))
+
(define-public python-qutip
(package
(name "python-qutip")