Files
nixpkgs/pkgs/development/python-modules/hist/default.nix
T
2026-02-28 12:06:20 +00:00

51 lines
932 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
boost-histogram,
histoprint,
hatchling,
hatch-vcs,
numpy,
pytestCheckHook,
pytest-mpl,
}:
buildPythonPackage (finalAttrs: {
pname = "hist";
version = "2.10.1";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-3sjmrHmm1k7Ihzzzaz7wOUx5r/Ow6Kvtcf3Hf9xCGy4=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
boost-histogram
histoprint
numpy
];
checkInputs = [
pytestCheckHook
pytest-mpl
];
pythonImportsCheck = [ "hist" ];
meta = {
description = "Histogramming for analysis powered by boost-histogram";
mainProgram = "";
homepage = "https://hist.readthedocs.io/";
changelog = "https://github.com/scikit-hep/hist/releases/tag/v${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
};
})