889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
31 lines
885 B
Nix
31 lines
885 B
Nix
{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ducc0";
|
|
version = "0.24.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.mpcdf.mpg.de";
|
|
owner = "mtr";
|
|
repo = "ducc";
|
|
rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}";
|
|
sha256 = "sFgEO6f9D3AFV62yLEocgrPrj03H60e2NtdA/Ws6lQw=";
|
|
};
|
|
|
|
buildInputs = [ pybind11 ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
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 ];
|
|
};
|
|
}
|