nixpkgs/pkgs/development/python-modules/ducc0/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

33 lines
921 B
Nix

{ stdenv, lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }:
buildPythonPackage rec {
pname = "ducc0";
version = "0.32.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitLab {
domain = "gitlab.mpcdf.mpg.de";
owner = "mtr";
repo = "ducc";
rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}";
hash = "sha256-D+Gt5RrzljZQHBijaPuCuNsK08VxxJoWhqxSDu4bjH0=";
};
buildInputs = [ pybind11 ];
propagatedBuildInputs = [ numpy ];
nativeCheckInputs = [ 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 ];
};
}