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-10-09 19:29:22 +00:00
|
|
|
version = "2.7.2";
|
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-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-JrGrgQ2LECIttdFh1KyvZKqgT+a6rtKWbUHB2sVgHQY=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|