depot/third_party/nixpkgs/pkgs/development/python-modules/boost-histogram/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

28 lines
767 B
Nix

{ lib, fetchPypi, buildPythonPackage, isPy3k, boost, numpy, pytestCheckHook, pytest-benchmark, setuptools-scm }:
buildPythonPackage rec {
pname = "boost-histogram";
version = "1.3.1";
disabled = !isPy3k;
src = fetchPypi {
pname = "boost_histogram";
inherit version;
sha256 = "sha256-Mc05Zlbzo3g04H0wTNuE2ZBrwhcmJqPZL+V30IvPQQ8=";
};
nativeBuildInputs = [ setuptools-scm ];
buildInputs = [ boost ];
propagatedBuildInputs = [ numpy ];
checkInputs = [ 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 ];
};
}