lol

python3Packages.ducc0: 0.36.0 -> 0.37.1 (#388941)

authored by

Nick Cao and committed by
GitHub
a091446c cfa9d2a0

+35 -15
+35 -15
pkgs/development/python-modules/ducc0/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitLab, 5 + cmake, 6 + nanobind, 7 + ninja, 8 + scikit-build-core, 9 + setuptools, 5 10 numpy, 6 - pybind11, 7 11 pytestCheckHook, 8 - pythonOlder, 9 - setuptools, 12 + scipy, 13 + pytest-xdist, 10 14 }: 11 15 12 16 buildPythonPackage rec { 13 17 pname = "ducc0"; 14 - version = "0.36.0"; 18 + version = "0.37.1"; 15 19 pyproject = true; 16 20 17 - disabled = pythonOlder "3.8"; 18 - 19 21 src = fetchFromGitLab { 20 22 domain = "gitlab.mpcdf.mpg.de"; 21 23 owner = "mtr"; 22 24 repo = "ducc"; 23 - rev = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}"; 24 - hash = "sha256-S/H3+EykNxqbs8Tca3T95SK3Hzst49hOPkO0ocs80t0="; 25 + tag = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}"; 26 + hash = "sha256-aBKbDDUUiHIpVX7NtNJOQAH/hov7Zj5O5bE6J25ck10="; 25 27 }; 26 28 27 - buildInputs = [ pybind11 ]; 28 - propagatedBuildInputs = [ numpy ]; 29 + postPatch = '' 30 + substituteInPlace pyproject.toml --replace-fail '"pybind11>=2.6.0", ' "" 31 + ''; 32 + 33 + DUCC0_USE_NANOBIND = ""; 34 + DUCC0_OPTIMIZATION = "portable"; 35 + 36 + build-system = [ 37 + cmake 38 + nanobind 39 + ninja 40 + scikit-build-core 41 + setuptools 42 + ]; 43 + dontUseCmakeConfigure = true; 44 + dependencies = [ numpy ]; 29 45 30 46 nativeCheckInputs = [ 31 47 pytestCheckHook 32 - setuptools 48 + scipy 49 + pytest-xdist 33 50 ]; 34 51 pytestFlagsArray = [ "python/test" ]; 35 52 pythonImportsCheck = [ "ducc0" ]; 36 53 37 - DUCC0_OPTIMIZATION = "portable-strip"; 54 + postInstall = '' 55 + mkdir -p $out/include 56 + cp -r ${src}/src/ducc0 $out/include 57 + ''; 38 58 39 - meta = with lib; { 59 + meta = { 40 60 homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc"; 41 61 description = "Efficient algorithms for Fast Fourier transforms and more"; 42 - license = licenses.gpl2Plus; 43 - maintainers = with maintainers; [ parras ]; 62 + license = lib.licenses.gpl2Plus; 63 + maintainers = with lib.maintainers; [ parras ]; 44 64 }; 45 65 }