5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
45 lines
972 B
Nix
45 lines
972 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitLab,
|
|
numpy,
|
|
pybind11,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ducc0";
|
|
version = "0.34.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.mpcdf.mpg.de";
|
|
owner = "mtr";
|
|
repo = "ducc";
|
|
rev = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}";
|
|
hash = "sha256-lxNqB3Lt+n4vIH7cVW4DAwhjuPn49y+/3RLKVO8IuJM=";
|
|
};
|
|
|
|
buildInputs = [ pybind11 ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
setuptools
|
|
];
|
|
pytestFlagsArray = [ "python/test" ];
|
|
pythonImportsCheck = [ "ducc0" ];
|
|
|
|
meta = with lib; {
|
|
broken = stdenv.isDarwin;
|
|
homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
|
|
description = "Efficient algorithms for Fast Fourier transforms and more";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ parras ];
|
|
};
|
|
}
|