1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 pythonOlder,
6 boost,
7 numpy,
8 pytestCheckHook,
9 pytest-benchmark,
10 setuptools-scm,
11}:
12
13buildPythonPackage rec {
14 pname = "boost-histogram";
15 version = "1.4.1";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchPypi {
21 pname = "boost_histogram";
22 inherit version;
23 hash = "sha256-lxRvc19GfVBpdqBH8/I3zlmECpUv0jH19DH4l/sAbN0=";
24 };
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 buildInputs = [ boost ];
29
30 propagatedBuildInputs = [ numpy ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 pytest-benchmark
35 ];
36
37 meta = with lib; {
38 description = "Python bindings for the C++14 Boost::Histogram library";
39 homepage = "https://github.com/scikit-hep/boost-histogram";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ veprbl ];
42 };
43}