Commit 4254e3aa authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.ducc0: cleanup

parent e278d70d
Loading
Loading
Loading
Loading
+14 −7
Original line number Diff line number Diff line
@@ -2,18 +2,24 @@
  lib,
  buildPythonPackage,
  fetchFromGitLab,

  # build-system
  cmake,
  nanobind,
  ninja,
  scikit-build-core,
  setuptools,

  # dependencies
  numpy,

  # tests
  pytest-xdist,
  pytestCheckHook,
  scipy,
  pytest-xdist,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "ducc0";
  version = "0.41.0";
  pyproject = true;
@@ -22,7 +28,7 @@ buildPythonPackage rec {
    domain = "gitlab.mpcdf.mpg.de";
    owner = "mtr";
    repo = "ducc";
    tag = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] version}";
    tag = "ducc0_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
    hash = "sha256-OeTTrIcvY9bhnctc6h1xUdSriQN4RNy3vjxWKKlT0ew=";
  };

@@ -46,22 +52,23 @@ buildPythonPackage rec {
  dependencies = [ numpy ];

  nativeCheckInputs = [
    pytest-xdist
    pytestCheckHook
    scipy
    pytest-xdist
  ];
  enabledTestPaths = [ "python/test" ];
  pythonImportsCheck = [ "ducc0" ];

  postInstall = ''
    mkdir -p $out/include
    cp -r ${src}/src/ducc0 $out/include
    cp -r ${finalAttrs.src}/src/ducc0 $out/include
  '';

  meta = {
    homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
    description = "Efficient algorithms for Fast Fourier transforms and more";
    homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc";
    changelog = "https://gitlab.mpcdf.mpg.de/mtr/ducc/-/blob/${finalAttrs.src.tag}/ChangeLog?ref_type=tags";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ parras ];
  };
}
})