nixpkgs/pkgs/development/python-modules/scipp/default.nix
2026-02-07 19:19:47 +00:00

107 lines
1.5 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
# build-system
scikit-build-core,
setuptools,
setuptools-scm,
# nativeBuildInputs
cmake,
ninja,
# dependencies
numpy,
units-llnl,
# buildInputs
boost,
eigen,
gtest,
pybind11,
onetbb,
# tests
pytestCheckHook,
scipy,
beautifulsoup4,
ipython,
matplotlib,
pandas,
numba,
xarray,
h5py,
hypothesis,
}:
buildPythonPackage rec {
pname = "scipp";
version = "26.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "scipp";
repo = "Scipp";
tag = version;
hash = "sha256-4Ha2Gz6yYBCYBGXMWPJjuooyKeJJBBVmmByFXbTLans=";
};
env = {
SKIP_REMOTE_SOURCES = "true";
};
build-system = [
scikit-build-core
setuptools
setuptools-scm
];
nativeBuildInputs = [
cmake
ninja
];
dontUseCmakeConfigure = true;
dependencies = [
numpy
];
buildInputs = [
boost
eigen
gtest
pybind11
units-llnl.passthru.top-level
onetbb
];
nativeCheckInputs = [
pytestCheckHook
scipy
beautifulsoup4
ipython
matplotlib
pandas
numba
xarray
h5py
hypothesis
];
pytestFlags = [
# See https://github.com/scipp/scipp/issues/3721
"--hypothesis-profile=ci"
];
pythonImportsCheck = [
"scipp"
];
meta = {
description = "Multi-dimensional data arrays with labeled dimensions";
homepage = "https://scipp.github.io";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ doronbehar ];
};
}