nixpkgs/pkgs/development/python-modules/hepunits/default.nix
2023-01-05 01:10:09 +01:00

36 lines
632 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, hatch-vcs
, hatchling
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "hepunits";
version = "2.3.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-M7mumot7OvNVFBp0kBy1qlV9zi5MmZKgow7wRDobIgY=";
};
nativeBuildInputs = [
hatch-vcs
hatchling
];
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 ];
};
}