nixpkgs/pkgs/development/python-modules/boost-histogram/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1016 B
Nix
Raw Normal View History

{
lib,
fetchPypi,
buildPythonPackage,
pythonOlder,
cmake,
pybind11,
nanobind,
ninja,
setuptools-scm,
boost,
numpy,
pytestCheckHook,
pytest-benchmark,
scikit-build-core,
}:
buildPythonPackage rec {
pname = "boost-histogram";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "boost_histogram";
inherit version;
hash = "sha256-BiPwEObFLl0Bh2dyOVloYJDbB/ww8NHYR1tdZjxd2yw=";
};
nativeBuildInputs = [ cmake ];
dontUseCmakeConfigure = true;
build-system = [
pybind11
nanobind
ninja
scikit-build-core
setuptools-scm
];
buildInputs = [ boost ];
dependencies = [ 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 ];
};
}