depot/third_party/nixpkgs/pkgs/development/python-modules/boost-histogram/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

48 lines
848 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, boost
, numpy
, pytestCheckHook
, pytest-benchmark
, setuptools-scm
}:
buildPythonPackage rec {
pname = "boost-histogram";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "boost_histogram";
inherit version;
hash = "sha256-z5gmz8/hAzUJa1emH2xlafZfAVklnusiUcW/MdhZ11M=";
};
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 ];
};
}