From 879717af94590275594975dcf594a804005d1e54 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Tue, 13 Aug 2024 15:42:53 -0400 Subject: [PATCH 1/2] python312Packages.medvol: init at 0.0.15 --- .../python-modules/medvol/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/medvol/default.nix diff --git a/pkgs/development/python-modules/medvol/default.nix b/pkgs/development/python-modules/medvol/default.nix new file mode 100644 index 0000000000000..79eec9d2cb644 --- /dev/null +++ b/pkgs/development/python-modules/medvol/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + numpy, + simpleitk, +}: + +buildPythonPackage rec { + pname = "medvol"; + version = "0.0.15"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "MIC-DKFZ"; + repo = "medvol"; + rev = "v${version}"; + hash = "sha256-JOw0ODx5yuBY5FyXy9z5C/NE/iok5GwiInalgXW/1J8="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + numpy + simpleitk + ]; + + doCheck = false; # no tests + + pythonImportsCheck = [ "medvol" ]; + + meta = { + description = "Wrapper for loading medical 3D image volumes such as NIFTI or NRRD images"; + homepage = "https://github.com/MIC-DKFZ/medvol"; + changelog = "https://github.com/MIC-DKFZ/MedVol/releases/tag/v${version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b98b90954c29f..01b118d830b79 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7975,6 +7975,8 @@ self: super: with self; { medpy = callPackage ../development/python-modules/medpy { }; + medvol = callPackage ../development/python-modules/medvol { }; + meeko = callPackage ../development/python-modules/meeko { }; meep = callPackage ../development/python-modules/meep { }; From b17b5e480591f099939336b37542e9812fc32619 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Tue, 13 Aug 2024 15:48:32 -0400 Subject: [PATCH 2/2] python312Packages.napari-nifti: init at 0.0.17 --- .../python-modules/napari-nifti/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/napari-nifti/default.nix diff --git a/pkgs/development/python-modules/napari-nifti/default.nix b/pkgs/development/python-modules/napari-nifti/default.nix new file mode 100644 index 0000000000000..c6f2f67abb100 --- /dev/null +++ b/pkgs/development/python-modules/napari-nifti/default.nix @@ -0,0 +1,39 @@ +{ + lib, + buildPythonPackage, + pythonOlder, + fetchFromGitHub, + setuptools, + medvol, +}: + +buildPythonPackage rec { + pname = "napari-nifti"; + version = "0.0.17"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "MIC-DKFZ"; + repo = "napari-nifti"; + rev = "refs/tags/v${version}"; + hash = "sha256-JDyJMg6rsGkfEHBwqKc2L6oRO5Y1MJJlEjUuuqp7URQ="; + }; + + build-system = [ setuptools ]; + + dependencies = [ medvol ]; + + pythonImportsCheck = [ "napari_nifti" ]; + + doCheck = false; # no tests + + meta = { + description = "Napari plugin for reading and writing NIFTI files"; + homepage = "https://github.com/MIC-DKFZ/napari-nifti"; + changelog = "https://github.com/MIC-DKFZ/napari-nifti/releases/tag/v${version}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ bcdarwin ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 01b118d830b79..7579546d76528 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8964,6 +8964,8 @@ self: super: with self; { napari-console = callPackage ../development/python-modules/napari-console { }; + napari-nifti = callPackage ../development/python-modules/napari-nifti { }; + napari-npe2 = callPackage ../development/python-modules/napari-npe2 { }; napari-plugin-engine = callPackage ../development/python-modules/napari-plugin-engine { };