Subject: [bug#77371] [PATCH 08/12] gnu: Add python-hepunits.

From: Vinicius Monego <[email-masked]>
Date: Sat, 29 Mar 2025 23:01:01 +0000

* gnu/packages/python-science.scm (python-hepunits): New variable.

Change-Id: I174495c4fdacd21491e9e7d5abdd7d5dd0e5ffe8
---
 gnu/packages/python-science.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index c1fabfa7bd..876c68912a 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -1124,6 +1124,25 @@ (define-public python-tdda
 of regular expressions from text data and automatic test generation.")
     (license license:expat))) ; MIT License
 
+(define-public python-hepunits
+  (package
+    (name "python-hepunits")
+    (version "2.3.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "hepunits" version))
+       (sha256
+        (base32 "1n1nf2rz2d86qzjmcwykbc16jzsqb45vs8lyksg98b3jd8nwsd4l"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-hatch-vcs python-hatchling python-pytest))
+    (home-page "https://github.com/scikit-hep/hepunits")
+    (synopsis "Units and constants in the HEP system of units")
+    (description "@code{hepunits} collects the most commonly used units and
+constants in the HEP System of Units, as derived from the basic units
+originally defined by the CLHEP project.")
+    (license license:bsd-3)))
+
 (define-public python-trimesh
   (package
     (name "python-trimesh")
-- 
2.49.0