fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
841 B
Nix
43 lines
841 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
boost,
|
|
numpy,
|
|
pytestCheckHook,
|
|
pytest-benchmark,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boost-histogram";
|
|
version = "1.4.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
pname = "boost_histogram";
|
|
inherit version;
|
|
hash = "sha256-lxRvc19GfVBpdqBH8/I3zlmECpUv0jH19DH4l/sAbN0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-benchmark
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|