567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
46 lines
786 B
Nix
46 lines
786 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildPythonPackage,
|
|
hatchling,
|
|
hatch-vcs,
|
|
click,
|
|
numpy,
|
|
uhi,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "histoprint";
|
|
version = "2.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scikit-hep";
|
|
repo = "histoprint";
|
|
tag = "v${version}";
|
|
hash = "sha256-qMg0Ct39BjdcyWB3KxG74rVqVW4I0DGZ5GS7D3uYq3w=";
|
|
};
|
|
|
|
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";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|