Skip to content

Commit

Permalink
python312Packages.napari-nifti: init at 0.0.17 (NixOS#334471)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Dec 2, 2024
2 parents 61e061e + b17b5e4 commit 741c4b4
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/medvol/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/napari-nifti/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7979,6 +7979,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 { };
Expand Down Expand Up @@ -8968,6 +8970,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 { };
Expand Down

0 comments on commit 741c4b4

Please sign in to comment.