2022-09-20 20:03:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
2024-09-29 15:03:53 +00:00
|
|
|
cmake,
|
|
|
|
pybind11,
|
|
|
|
nanobind,
|
|
|
|
ninja,
|
|
|
|
setuptools-scm,
|
2022-09-20 20:03:15 +00:00
|
|
|
boost,
|
|
|
|
numpy,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytest-benchmark,
|
2024-09-29 15:03:53 +00:00
|
|
|
scikit-build-core,
|
2022-09-20 20:03:15 +00:00
|
|
|
}:
|
2021-05-29 03:32:44 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "boost-histogram";
|
2024-09-29 15:03:53 +00:00
|
|
|
version = "1.5.0";
|
|
|
|
pyproject = true;
|
2022-09-20 20:03:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2021-05-29 03:32:44 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "boost_histogram";
|
|
|
|
inherit version;
|
2024-09-29 15:03:53 +00:00
|
|
|
hash = "sha256-BiPwEObFLl0Bh2dyOVloYJDbB/ww8NHYR1tdZjxd2yw=";
|
2021-05-29 03:32:44 +00:00
|
|
|
};
|
|
|
|
|
2024-09-29 15:03:53 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
pybind11
|
|
|
|
nanobind
|
|
|
|
ninja
|
|
|
|
scikit-build-core
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2022-02-08 17:08:13 +00:00
|
|
|
|
2022-09-20 20:03:15 +00:00
|
|
|
buildInputs = [ boost ];
|
2022-02-08 17:08:13 +00:00
|
|
|
|
2024-09-29 15:03:53 +00:00
|
|
|
dependencies = [ numpy ];
|
2021-05-29 03:32:44 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-20 20:03:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-benchmark
|
|
|
|
];
|
2021-05-29 03:32:44 +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 ];
|
|
|
|
};
|
|
|
|
}
|