about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hepunits
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2022-03-27 13:43:01 +0300
committerDoron Behar <doron.behar@gmail.com>2022-03-30 08:44:39 +0300
commit55ea018afa663f0257979fdfb2f57fe7836633cd (patch)
tree8799f7a6bfb83703fec91e635dd13dcd99ec8b9e /pkgs/development/python-modules/hepunits
parentb83be4516ebb10ec94c2837254937beb45826c7f (diff)
python3.pkgs.hepunits: init at 2.2.0
Diffstat (limited to 'pkgs/development/python-modules/hepunits')
-rw-r--r--pkgs/development/python-modules/hepunits/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/hepunits/default.nix b/pkgs/development/python-modules/hepunits/default.nix
new file mode 100644
index 0000000000000..9bfd4de36f789
--- /dev/null
+++ b/pkgs/development/python-modules/hepunits/default.nix
@@ -0,0 +1,31 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, setuptools-scm
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "hepunits";
+  version = "2.2.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "sha256-6A5hb+8oF/PGbHXcDkHtJjYkiMzgX5Stz977jgXry1g=";
+  };
+  nativeBuildInputs = [
+    setuptools-scm
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  meta = {
+    description = "Units and constants in the HEP system of units";
+    homepage = "https://github.com/scikit-hep/hepunits";
+    license = lib.licenses.bsd3;
+    maintainers = with lib.maintainers; [ doronbehar ];
+  };
+}
+