1{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }:
2
3buildPythonPackage rec {
4 pname = "ducc0";
5 version = "0.27.0";
6
7 disabled = pythonOlder "3.7";
8
9 src = fetchFromGitLab {
10 domain = "gitlab.mpcdf.mpg.de";
11 owner = "mtr";
12 repo = "ducc";
13 rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}";
14 sha256 = "sha256-Z3eWuLuuA264z1ccdVp1YwAjDrLIXFxvTt/gC/zBE6o=";
15 };
16
17 buildInputs = [ pybind11 ];
18 propagatedBuildInputs = [ numpy ];
19
20 checkInputs = [ pytestCheckHook ];
21 pytestFlagsArray = [ "python/test" ];
22 pythonImportsCheck = [ "ducc0" ];
23
24 meta = with lib; {
25 broken = stdenv.isDarwin;
26 homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
27 description = "Efficient algorithms for Fast Fourier transforms and more";
28 license = licenses.gpl2Plus;
29 maintainers = with maintainers; [ parras ];
30 };
31}