28 buildPythonPackage rec {
29 pname = "boost-histogram";
33 src = fetchFromGitHub {
35 repo = "boost-histogram";
36 rev = "refs/tags/v${version}";
37 hash = "sha256-GsgzJqZTrtc4KRkGn468m0e+sgX9rzJdwA9JMPSSPWk=";
40 nativeBuildInputs = [ cmake ];
42 dontUseCmakeConfigure = true;
52 buildInputs = [ boost ];
54 dependencies = [ numpy ];
61 disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
62 # Segfaults: boost_histogram/_internal/hist.py", line 799 in sum
63 # Fatal Python error: Segmentation fault
64 "test_numpy_conversion_4"
68 description = "Python bindings for the C++14 Boost::Histogram library";
69 homepage = "https://github.com/scikit-hep/boost-histogram";
70 changelog = "https://github.com/scikit-hep/boost-histogram/releases/tag/v${version}";
71 license = lib.licenses.bsd3;
72 maintainers = with lib.maintainers; [ veprbl ];