1{ lib
2, fetchPypi
3, buildPythonPackage
4, boost-histogram
5, histoprint
6, hatchling
7, hatch-vcs
8, numpy
9, pytestCheckHook
10, pytest-mpl
11, pythonOlder
12}:
13
14buildPythonPackage rec {
15 pname = "hist";
16 version = "2.7.2";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-JrGrgQ2LECIttdFh1KyvZKqgT+a6rtKWbUHB2sVgHQY=";
24 };
25
26 buildInputs = [
27 hatchling
28 hatch-vcs
29 ];
30
31 propagatedBuildInputs = [
32 boost-histogram
33 histoprint
34 numpy
35 ];
36
37 checkInputs = [
38 pytestCheckHook
39 pytest-mpl
40 ];
41
42 meta = with lib; {
43 description = "Histogramming for analysis powered by boost-histogram";
44 homepage = "https://hist.readthedocs.io/";
45 changelog = "https://github.com/scikit-hep/hist/releases/tag/v${version}";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ veprbl ];
48 };
49}