nixpkgs/pkgs/development/python-modules/ducc0/default.nix
2022-10-30 19:23:16 +01:00

32 lines
892 B
Nix

{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }:
buildPythonPackage rec {
pname = "ducc0";
version = "0.27.0";
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
domain = "gitlab.mpcdf.mpg.de";
owner = "mtr";
repo = "ducc";
rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}";
sha256 = "sha256-Z3eWuLuuA264z1ccdVp1YwAjDrLIXFxvTt/gC/zBE6o=";
};
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 ];
};
}