From 2f48033f2560e4ff2c8b14227a0c4b4747c0a06f Mon Sep 17 00:00:00 2001 From: Philipp Arras Date: Tue, 10 May 2022 18:07:38 +0200 Subject: [PATCH 1/2] maintainers: add parras --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 4b79597ae682..6ab9e37f8ad0 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9592,6 +9592,12 @@ githubId = 14935550; name = "Brad Pfannmuller"; }; + parras = { + email = "c@philipp-arras.de"; + github = "phiadaarr"; + githubId = 33826198; + name = "Philipp Arras"; + }; pashashocky = { email = "pashashocky@gmail.com"; github = "pashashocky"; From 47055affcb95053bb9458d08ec20e694f056cef4 Mon Sep 17 00:00:00 2001 From: Philipp Arras Date: Tue, 10 May 2022 18:07:04 +0200 Subject: [PATCH 2/2] python3Packages.ducc0: init at 0.23.0 --- .../python-modules/ducc0/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/ducc0/default.nix diff --git a/pkgs/development/python-modules/ducc0/default.nix b/pkgs/development/python-modules/ducc0/default.nix new file mode 100644 index 000000000000..6b84db43d4d1 --- /dev/null +++ b/pkgs/development/python-modules/ducc0/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchFromGitLab, pythonOlder, pytestCheckHook, pybind11, numpy }: + +buildPythonPackage rec { + pname = "ducc0"; + version = "0.23.0"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitLab { + domain = "gitlab.mpcdf.mpg.de"; + owner = "mtr"; + repo = "ducc"; + rev = "ducc0_${lib.replaceStrings ["."] ["_"] version}"; + sha256 = "dOc3TihtoRuLfniC9zQ1MEbnvGJHzFZfZ8+J8Dnw6Lk="; + }; + + buildInputs = [ pybind11 ]; + propagatedBuildInputs = [ numpy ]; + + checkInputs = [ pytestCheckHook ]; + pytestFlagsArray = [ "python/test" ]; + pythonImportsCheck = [ "ducc0" ]; + + meta = with lib; { + homepage = "https://gitlab.mpcdf.mpg.de/mtr/ducc"; + description = "Efficient algorithms for Fast Fourier transforms and more"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ parras ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d6bd5ee8e9aa..1fb7d402f98e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2514,6 +2514,8 @@ in { dtlssocket = callPackage ../development/python-modules/dtlssocket { }; + ducc0 = callPackage ../development/python-modules/ducc0 { }; + duckdb = callPackage ../development/python-modules/duckdb { inherit (pkgs) duckdb; };