nixpkgs/pkgs/development/python-modules/hist/default.nix
Fabian Affolter 1086eb8574
python310Packages.hist: add changelog to meta
- disable on unsupported Python releases
2023-07-27 11:05:17 +02:00

50 lines
888 B
Nix

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