diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-20 00:04:59 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-02-28 22:07:07 +0000 |
| commit | b05199e7a1c1d21bf678e2b1bbbcc4a04a94d79c (patch) | |
| tree | 4679eb4374c03071d59a554d2e85ece806ebd361 /gnu/packages/python-science.scm | |
| parent | a966cc63593434b644a4ff6ca2b132036c1cc3cf (diff) | |
gnu: Add python-quantities.
* gnu/packages/python-science.scm (python-quantities): New variable.
Change-Id: I40a28c0943a37d2c298b3031f5b22c09cc37b487
Diffstat (limited to 'gnu/packages/python-science.scm')
| -rw-r--r-- | gnu/packages/python-science.scm | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index e8836d178b3..dd00b158948 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -29,7 +29,7 @@ | |||
| 29 | ;;; Copyright © 2022 jgart <jgart@dismail.de> | 29 | ;;; Copyright © 2022 jgart <jgart@dismail.de> |
| 30 | ;;; Copyright © 2022 Sarah Morgensen <iskarian@mgsn.dev> | 30 | ;;; Copyright © 2022 Sarah Morgensen <iskarian@mgsn.dev> |
| 31 | ;;; Copyright © 2023, 2024 Troy Figiel <troy@troyfigiel.com> | 31 | ;;; Copyright © 2023, 2024 Troy Figiel <troy@troyfigiel.com> |
| 32 | ;;; Copyright © 2024-2025 Sharlatan Hellseher <sharlatanus@gmail.com> | 32 | ;;; Copyright © 2024-2026 Sharlatan Hellseher <sharlatanus@gmail.com> |
| 33 | ;;; Copyright © 2024 Marco Baggio <marco.baggio@mdc-berlin.de> | 33 | ;;; Copyright © 2024 Marco Baggio <marco.baggio@mdc-berlin.de> |
| 34 | ;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr> | 34 | ;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr> |
| 35 | ;;; Copyright © 2024 Rick Huijzer <ikbenrickhuyzer@gmail.com> | 35 | ;;; Copyright © 2024 Rick Huijzer <ikbenrickhuyzer@gmail.com> |
| @@ -2697,6 +2697,40 @@ or as a TikZ file for use in LaTeX documents; | |||
| 2697 | factorization routine for quasi-definite linear system.") | 2697 | factorization routine for quasi-definite linear system.") |
| 2698 | (license license:asl2.0))) | 2698 | (license license:asl2.0))) |
| 2699 | 2699 | ||
| 2700 | (define-public python-quantities | ||
| 2701 | (package | ||
| 2702 | (name "python-quantities") | ||
| 2703 | (version "0.16.4") | ||
| 2704 | (source | ||
| 2705 | (origin | ||
| 2706 | (method url-fetch) | ||
| 2707 | (uri (pypi-uri "quantities" version)) | ||
| 2708 | (sha256 | ||
| 2709 | (base32 "0dmzk17hd0c6lzjlipjpc52jdifknpvxq15javn19n3f9yvxxdpm")))) | ||
| 2710 | (build-system pyproject-build-system) | ||
| 2711 | (arguments | ||
| 2712 | (list | ||
| 2713 | #:phases | ||
| 2714 | #~(modify-phases %standard-phases | ||
| 2715 | (add-before 'check 'pre-check | ||
| 2716 | (lambda _ | ||
| 2717 | (setenv "PY_IGNORE_IMPORTMISMATCH" "1")))))) | ||
| 2718 | (native-inputs | ||
| 2719 | (list python-pytest | ||
| 2720 | python-setuptools | ||
| 2721 | python-setuptools-scm)) | ||
| 2722 | (propagated-inputs | ||
| 2723 | (list python-numpy)) | ||
| 2724 | (home-page "https://github.com/python-quantities/python-quantities") | ||
| 2725 | (synopsis "Support for physical quantities with units, based on NumPy") | ||
| 2726 | (description | ||
| 2727 | "Quantities is designed to handle arithmetic and conversions of physical | ||
| 2728 | quantities, which have a magnitude, dimensionality specified by various units, | ||
| 2729 | and possibly an uncertainty. It builds on the NumPy library and is designed | ||
| 2730 | to work with @code{numpy.ufuncs}, many of which are already supported.") | ||
| 2731 | ;; OSI approved, BSD like, see doc/user/license.rst. | ||
| 2732 | (license license:bsd-3))) | ||
| 2733 | |||
| 2700 | (define-public python-qutip | 2734 | (define-public python-qutip |
| 2701 | (package | 2735 | (package |
| 2702 | (name "python-qutip") | 2736 | (name "python-qutip") |
