push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# nativeBuildInputs
cmake,
# build-system
pybind11,
nanobind,
ninja,
scikit-build-core,
setuptools-scm,
# buildInputs
boost,
# dependencies
numpy,
# tests
pytestCheckHook,
pytest-benchmark,
pytest-xdist,
cloudpickle,
hypothesis,
}:
buildPythonPackage rec {
pname = "boost-histogram";
version = "1.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-hep";
repo = "boost-histogram";
tag = "v${version}";
hash = "sha256-kduE5v1oQT76MRxMuGo+snCBdJ+yOjkOJFO45twcUIs=";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
dontUseCmakeConfigure = true;
build-system = [
pybind11
nanobind
ninja
scikit-build-core
setuptools-scm
];
buildInputs = [ boost ];
dependencies = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
pytest-benchmark
pytest-xdist
cloudpickle
hypothesis
];
pytestFlags = [ "--benchmark-disable" ];
disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
# Segfaults: boost_histogram/_internal/hist.py", line 799 in sum
# Fatal Python error: Segmentation fault
"test_numpy_conversion_4"
];
pythonImportsCheck = [ "boost_histogram" ];
meta = {
description = "Python bindings for the C++14 Boost::Histogram library";
homepage = "https://github.com/scikit-hep/boost-histogram";
changelog = "https://github.com/scikit-hep/boost-histogram/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ veprbl ];
};
}