at 24.05-pre 896 B view raw
1{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }: 2 3buildPythonPackage rec { 4 pname = "ducc0"; 5 version = "0.32.0"; 6 7 disabled = pythonOlder "3.8"; 8 9 src = fetchFromGitLab { 10 domain = "gitlab.mpcdf.mpg.de"; 11 owner = "mtr"; 12 repo = "ducc"; 13 rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}"; 14 hash = "sha256-D+Gt5RrzljZQHBijaPuCuNsK08VxxJoWhqxSDu4bjH0="; 15 }; 16 17 buildInputs = [ pybind11 ]; 18 propagatedBuildInputs = [ numpy ]; 19 20 nativeCheckInputs = [ 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}