diff options
| author | Spencer King <spencer.king@wustl.edu> | 2026-08-25 00:19:00 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-09-02 00:18:02 +0100 |
| commit | 15c1062770336af22a15c271babaa788c4922c48 (patch) | |
| tree | 744e9cd0881838ec2ab49c5c37aba98560125102 /gnu | |
| parent | f9cd9899015f31e03562fc7165e093213970298f (diff) | |
gnu: Add python-typedunits.
* gnu/packages/python-science.scm (python-typedunits): New variable.
Relates-to: guix/guix!10789
Reviewed-by: Hugo Buddelmeijer <hugo@buddelmeijer.nl>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-science.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 6cc1af1e4b6..ead1b29fcb4 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm | |||
| @@ -93,6 +93,7 @@ | |||
| 93 | #:use-module (gnu packages perl) | 93 | #:use-module (gnu packages perl) |
| 94 | #:use-module (gnu packages physics) | 94 | #:use-module (gnu packages physics) |
| 95 | #:use-module (gnu packages pkg-config) | 95 | #:use-module (gnu packages pkg-config) |
| 96 | #:use-module (gnu packages protobuf) | ||
| 96 | #:use-module (gnu packages python) | 97 | #:use-module (gnu packages python) |
| 97 | #:use-module (gnu packages python-build) | 98 | #:use-module (gnu packages python-build) |
| 98 | #:use-module (gnu packages python-check) | 99 | #:use-module (gnu packages python-check) |
| @@ -6261,6 +6262,44 @@ library.") | |||
| 6261 | tissue-specificity metrics for gene expression.") | 6262 | tissue-specificity metrics for gene expression.") |
| 6262 | (license license:gpl3+))) | 6263 | (license license:gpl3+))) |
| 6263 | 6264 | ||
| 6265 | (define-public python-typedunits | ||
| 6266 | (package | ||
| 6267 | (name "python-typedunits") | ||
| 6268 | (version "0.0.2") | ||
| 6269 | (source | ||
| 6270 | (origin | ||
| 6271 | (method git-fetch) | ||
| 6272 | (uri (git-reference | ||
| 6273 | (url "https://github.com/quantumlib/TypedUnits") | ||
| 6274 | (commit (string-append "v" version)))) | ||
| 6275 | (file-name (git-file-name name version)) | ||
| 6276 | (sha256 | ||
| 6277 | (base32 "0ir7xciv4inlsc6wvafwlbb4ij8i1a8pn76q7p1rgckh63vws03l")))) | ||
| 6278 | (build-system pyproject-build-system) | ||
| 6279 | (arguments | ||
| 6280 | (list | ||
| 6281 | #:phases | ||
| 6282 | #~(modify-phases %standard-phases | ||
| 6283 | (add-after 'unpack 'patch-requirements | ||
| 6284 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 6285 | (substitute* "requirements.txt" | ||
| 6286 | (("^cython.*\n") ""))))))) | ||
| 6287 | (native-inputs | ||
| 6288 | (list python-cython | ||
| 6289 | python-pytest | ||
| 6290 | python-setuptools)) | ||
| 6291 | (propagated-inputs | ||
| 6292 | (list python-attrs | ||
| 6293 | python-numpy | ||
| 6294 | python-protobuf-6 | ||
| 6295 | python-pyparsing)) | ||
| 6296 | (home-page "https://github.com/quantumlib/TypedUnits") | ||
| 6297 | (synopsis "Fast units and dimensions library") | ||
| 6298 | (description | ||
| 6299 | "This package provides a fast units and dimensions library with support | ||
| 6300 | for static dimensionality checking and protobuffer serialization.") | ||
| 6301 | (license license:asl2.0))) | ||
| 6302 | |||
| 6264 | (define-public python-uhi | 6303 | (define-public python-uhi |
| 6265 | (package | 6304 | (package |
| 6266 | (name "python-uhi") | 6305 | (name "python-uhi") |
