52 lines
927 B
Nix
52 lines
927 B
Nix
|
{
|
||
|
lib,
|
||
|
fetchPypi,
|
||
|
buildPythonPackage,
|
||
|
boost-histogram,
|
||
|
histoprint,
|
||
|
hatchling,
|
||
|
hatch-vcs,
|
||
|
numpy,
|
||
|
pytestCheckHook,
|
||
|
pytest-mpl,
|
||
|
pythonOlder,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "hist";
|
||
|
version = "2.8.0";
|
||
|
format = "pyproject";
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
hash = "sha256-Cj5gLdHSchvX8iKfRWcJ3eMj9vdJUvE7pOWYbDJ193s=";
|
||
|
};
|
||
|
|
||
|
buildInputs = [
|
||
|
hatchling
|
||
|
hatch-vcs
|
||
|
];
|
||
|
|
||
|
propagatedBuildInputs = [
|
||
|
boost-histogram
|
||
|
histoprint
|
||
|
numpy
|
||
|
];
|
||
|
|
||
|
checkInputs = [
|
||
|
pytestCheckHook
|
||
|
pytest-mpl
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Histogramming for analysis powered by boost-histogram";
|
||
|
mainProgram = "hist";
|
||
|
homepage = "https://hist.readthedocs.io/";
|
||
|
changelog = "https://github.com/scikit-hep/hist/releases/tag/v${version}";
|
||
|
license = licenses.bsd3;
|
||
|
maintainers = with maintainers; [ veprbl ];
|
||
|
};
|
||
|
}
|