2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
pytestCheckHook,
|
2022-04-03 18:54:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hepunits";
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "2.3.5";
|
2023-01-20 10:41:00 +00:00
|
|
|
format = "pyproject";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-lDTNLWpyLJSenp4ivQtZWH9pAlvTc1blxwY18bNwNtg=";
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|