2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, boost
|
|
|
|
, numpy
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-benchmark
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "boost-histogram";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.3.2";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "boost_histogram";
|
|
|
|
inherit version;
|
2022-09-22 12:36:57 +00:00
|
|
|
hash = "sha256-4XXvvBBUonvFP7vpVHLKyeqTmZyR0GEYQNd2uZWI1Ro=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-benchmark
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python bindings for the C++14 Boost::Histogram library";
|
|
|
|
homepage = "https://github.com/scikit-hep/boost-histogram";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|