1{
2 stdenv,
3 lib,
4 buildPythonPackage,
5 fetchFromGitLab,
6 numpy,
7 pybind11,
8 pytestCheckHook,
9 pythonOlder,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "ducc0";
15 version = "0.34.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitLab {
21 domain = "gitlab.mpcdf.mpg.de";
22 owner = "mtr";
23 repo = "ducc";
24 rev = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}";
25 hash = "sha256-lxNqB3Lt+n4vIH7cVW4DAwhjuPn49y+/3RLKVO8IuJM=";
26 };
27
28 buildInputs = [ pybind11 ];
29 propagatedBuildInputs = [ numpy ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 setuptools
34 ];
35 pytestFlagsArray = [ "python/test" ];
36 pythonImportsCheck = [ "ducc0" ];
37
38 meta = with lib; {
39 broken = stdenv.isDarwin;
40 homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
41 description = "Efficient algorithms for Fast Fourier transforms and more";
42 license = licenses.gpl2Plus;
43 maintainers = with maintainers; [ parras ];
44 };
45}