1{ lib, fetchPypi, buildPythonPackage, isPy3k, boost, numpy, pytestCheckHook, pytest-benchmark }:
2
3buildPythonPackage rec {
4 pname = "boost-histogram";
5 version = "1.2.1";
6 disabled = !isPy3k;
7
8 src = fetchPypi {
9 pname = "boost_histogram";
10 inherit version;
11 sha256 = "a27842b2f1cfecc509382da2b25b03056354696482b38ec3c0220af0fc9b7579";
12 };
13
14 buildInputs = [ boost ];
15 propagatedBuildInputs = [ numpy ];
16
17 checkInputs = [ pytestCheckHook pytest-benchmark ];
18
19 meta = with lib; {
20 description = "Python bindings for the C++14 Boost::Histogram library";
21 homepage = "https://github.com/scikit-hep/boost-histogram";
22 license = licenses.bsd3;
23 platforms = platforms.unix;
24 maintainers = with maintainers; [ veprbl ];
25 };
26}