Loading pkgs/development/python-modules/ducc0/default.nix +35 −15 Original line number Diff line number Diff line Loading @@ -2,44 +2,64 @@ lib, buildPythonPackage, fetchFromGitLab, cmake, nanobind, ninja, scikit-build-core, setuptools, numpy, pybind11, pytestCheckHook, pythonOlder, setuptools, scipy, pytest-xdist, }: buildPythonPackage rec { pname = "ducc0"; version = "0.36.0"; version = "0.37.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitLab { domain = "gitlab.mpcdf.mpg.de"; owner = "mtr"; repo = "ducc"; rev = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}"; hash = "sha256-S/H3+EykNxqbs8Tca3T95SK3Hzst49hOPkO0ocs80t0="; tag = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}"; hash = "sha256-aBKbDDUUiHIpVX7NtNJOQAH/hov7Zj5O5bE6J25ck10="; }; buildInputs = [ pybind11 ]; propagatedBuildInputs = [ numpy ]; postPatch = '' substituteInPlace pyproject.toml --replace-fail '"pybind11>=2.6.0", ' "" ''; DUCC0_USE_NANOBIND = ""; DUCC0_OPTIMIZATION = "portable"; build-system = [ cmake nanobind ninja scikit-build-core setuptools ]; dontUseCmakeConfigure = true; dependencies = [ numpy ]; nativeCheckInputs = [ pytestCheckHook setuptools scipy pytest-xdist ]; pytestFlagsArray = [ "python/test" ]; pythonImportsCheck = [ "ducc0" ]; DUCC0_OPTIMIZATION = "portable-strip"; postInstall = '' mkdir -p $out/include cp -r ${src}/src/ducc0 $out/include ''; meta = with lib; { meta = { homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc"; description = "Efficient algorithms for Fast Fourier transforms and more"; license = licenses.gpl2Plus; maintainers = with maintainers; [ parras ]; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ parras ]; }; } Loading
pkgs/development/python-modules/ducc0/default.nix +35 −15 Original line number Diff line number Diff line Loading @@ -2,44 +2,64 @@ lib, buildPythonPackage, fetchFromGitLab, cmake, nanobind, ninja, scikit-build-core, setuptools, numpy, pybind11, pytestCheckHook, pythonOlder, setuptools, scipy, pytest-xdist, }: buildPythonPackage rec { pname = "ducc0"; version = "0.36.0"; version = "0.37.1"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitLab { domain = "gitlab.mpcdf.mpg.de"; owner = "mtr"; repo = "ducc"; rev = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}"; hash = "sha256-S/H3+EykNxqbs8Tca3T95SK3Hzst49hOPkO0ocs80t0="; tag = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}"; hash = "sha256-aBKbDDUUiHIpVX7NtNJOQAH/hov7Zj5O5bE6J25ck10="; }; buildInputs = [ pybind11 ]; propagatedBuildInputs = [ numpy ]; postPatch = '' substituteInPlace pyproject.toml --replace-fail '"pybind11>=2.6.0", ' "" ''; DUCC0_USE_NANOBIND = ""; DUCC0_OPTIMIZATION = "portable"; build-system = [ cmake nanobind ninja scikit-build-core setuptools ]; dontUseCmakeConfigure = true; dependencies = [ numpy ]; nativeCheckInputs = [ pytestCheckHook setuptools scipy pytest-xdist ]; pytestFlagsArray = [ "python/test" ]; pythonImportsCheck = [ "ducc0" ]; DUCC0_OPTIMIZATION = "portable-strip"; postInstall = '' mkdir -p $out/include cp -r ${src}/src/ducc0 $out/include ''; meta = with lib; { meta = { homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc"; description = "Efficient algorithms for Fast Fourier transforms and more"; license = licenses.gpl2Plus; maintainers = with maintainers; [ parras ]; license = lib.licenses.gpl2Plus; maintainers = with lib.maintainers; [ parras ]; }; }