2022-04-03 18:54:34 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-01-20 10:41:00 +00:00
|
|
|
, hatch-vcs
|
|
|
|
, hatchling
|
2022-04-03 18:54:34 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hepunits";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "2.3.1";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-sRdLuk1XW5k5wB80HiTZvb4ODNTMTOLn13aS2hkUXPs=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2022-04-03 18:54:34 +00:00
|
|
|
nativeBuildInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2022-04-03 18:54:34 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-03 18:54:34 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|