depot/third_party/nixpkgs/pkgs/development/python-modules/hist/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

49 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 ];
};
}