2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, boost-histogram
|
|
|
|
, histoprint
|
|
|
|
, hatchling
|
|
|
|
, hatch-vcs
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-mpl
|
2023-08-04 22:07:22 +00:00
|
|
|
, pythonOlder
|
2023-02-16 17:41:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hist";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.7.1";
|
2023-02-16 17:41:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-/74xTCvQPDQrnxaNznFa2PNigesjFyoAlwiCqTRP6Yg=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
hatchling
|
|
|
|
hatch-vcs
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
boost-histogram
|
|
|
|
histoprint
|
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-mpl
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Histogramming for analysis powered by boost-histogram";
|
2023-08-04 22:07:22 +00:00
|
|
|
homepage = "https://hist.readthedocs.io/";
|
|
|
|
changelog = "https://github.com/scikit-hep/hist/releases/tag/v${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|