depot/third_party/nixpkgs/pkgs/development/python-modules/hist/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

51 lines
927 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
boost-histogram,
histoprint,
hatchling,
hatch-vcs,
numpy,
pytestCheckHook,
pytest-mpl,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hist";
version = "2.7.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-+fm1aAmxkLtUZph4nMDX0ECTT8UUHSdjxuSdZegdvAs=";
};
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 ];
};
}