2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }:
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ducc0";
|
2022-11-02 22:02:43 +00:00
|
|
|
version = "0.27.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.mpcdf.mpg.de";
|
|
|
|
owner = "mtr";
|
|
|
|
repo = "ducc";
|
|
|
|
rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}";
|
2022-11-02 22:02:43 +00:00
|
|
|
sha256 = "sha256-Z3eWuLuuA264z1ccdVp1YwAjDrLIXFxvTt/gC/zBE6o=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pybind11 ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "python/test" ];
|
|
|
|
pythonImportsCheck = [ "ducc0" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
|
|
|
|
description = "Efficient algorithms for Fast Fourier transforms and more";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ parras ];
|
|
|
|
};
|
|
|
|
}
|