Files
nixpkgs/pkgs/development/python-modules/hepunits/default.nix
2026-10-10 13:08:24 +02:00

41 lines
810 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatch-vcs,
hatchling,
pint,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "hepunits";
version = "2.4.7";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-376enN8mWu6hiWNSyl61BgnhXUl6A8BGa6SpIHY/Yzc=";
};
build-system = [
hatch-vcs
hatchling
];
nativeCheckInputs = [
pytestCheckHook
pint
];
pythonImportsCheck = [ "hepunits" ];
meta = {
description = "Units and constants in the HEP system of units";
homepage = "https://github.com/scikit-hep/hepunits";
changelog = "https://github.com/scikit-hep/hepunits/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ doronbehar ];
};
})