Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

66 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitLab,
cmake,
nanobind,
ninja,
scikit-build-core,
setuptools,
numpy,
pytestCheckHook,
scipy,
pytest-xdist,
}:
buildPythonPackage rec {
pname = "ducc0";
version = "0.39.0";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.mpcdf.mpg.de";
owner = "mtr";
repo = "ducc";
tag = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-VF4m0/kna1HEccK5ljFuNwXSYoak9TeFMyhBmUgupf0=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace-fail '"pybind11>=2.13.6", ' ""
'';
DUCC0_USE_NANOBIND = "";
DUCC0_OPTIMIZATION = "portable";
build-system = [
cmake
nanobind
ninja
scikit-build-core
setuptools
];
dontUseCmakeConfigure = true;
dependencies = [ numpy ];
nativeCheckInputs = [
pytestCheckHook
scipy
pytest-xdist
];
enabledTestPaths = [ "python/test" ];
pythonImportsCheck = [ "ducc0" ];
postInstall = ''
mkdir -p $out/include
cp -r ${src}/src/ducc0 $out/include
'';
meta = {
homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
description = "Efficient algorithms for Fast Fourier transforms and more";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ parras ];
};
}