1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 hatchling,
6 hatch-vcs,
7 click,
8 numpy,
9 uhi,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "histoprint";
15 version = "2.6.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "scikit-hep";
20 repo = "histoprint";
21 tag = "v${version}";
22 hash = "sha256-qMg0Ct39BjdcyWB3KxG74rVqVW4I0DGZ5GS7D3uYq3w=";
23 };
24
25 build-system = [
26 hatchling
27 hatch-vcs
28 ];
29
30 dependencies = [
31 click
32 numpy
33 uhi
34 ];
35
36 checkInputs = [ pytestCheckHook ];
37
38 meta = with lib; {
39 description = "Pretty print histograms to the console";
40 mainProgram = "histoprint";
41 homepage = "https://github.com/scikit-hep/histoprint";
42 license = licenses.mit;
43 maintainers = with maintainers; [ veprbl ];
44 };
45}