1{ lib
2, fetchPypi
3, buildPythonPackage
4, click
5, numpy
6, setuptools
7, setuptools-scm
8, uhi
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "histoprint";
14 version = "2.4.0";
15 format = "pyproject";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "328f789d186e3bd76882d57b5aad3fa08c7870a856cc83bcdbad9f4aefbda94d";
20 };
21
22 buildInputs = [
23 setuptools
24 setuptools-scm
25 ];
26
27 propagatedBuildInputs = [
28 click
29 numpy
30 uhi
31 ];
32
33 SETUPTOOLS_SCM_PRETEND_VERSION = version;
34
35 checkInputs = [
36 pytestCheckHook
37 ];
38
39 meta = with lib; {
40 description = "Pretty print histograms to the console";
41 homepage = "https://github.com/scikit-hep/histoprint";
42 license = licenses.mit;
43 maintainers = with maintainers; [ veprbl ];
44 };
45}