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