Files
nixpkgs/pkgs/development/python-modules/histoprint/default.nix
2026-08-07 13:48:22 +02:00

47 lines
907 B
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
hatchling,
hatch-vcs,
click,
numpy,
uhi,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "histoprint";
version = "2.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "histoprint";
tag = "v${finalAttrs.version}";
hash = "sha256-RIW3azlQH1+F7MIygHIUiBj4Yr1iVEeamUPNGHC605c=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
click
numpy
uhi
];
checkInputs = [ pytestCheckHook ];
meta = {
description = "Pretty print histograms to the console";
mainProgram = "histoprint";
homepage = "https://github.com/scikit-hep/histoprint";
changelog = "https://github.com/scikit-hep/histoprint/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ veprbl ];
};
})