Skip to content

Commit 741c4b4

Browse files
python312Packages.napari-nifti: init at 0.0.17 (#334471)
2 parents 61e061e + b17b5e4 commit 741c4b4

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
pythonOlder,
5+
fetchFromGitHub,
6+
setuptools,
7+
numpy,
8+
simpleitk,
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "medvol";
13+
version = "0.0.15";
14+
pyproject = true;
15+
16+
disabled = pythonOlder "3.8";
17+
18+
src = fetchFromGitHub {
19+
owner = "MIC-DKFZ";
20+
repo = "medvol";
21+
rev = "v${version}";
22+
hash = "sha256-JOw0ODx5yuBY5FyXy9z5C/NE/iok5GwiInalgXW/1J8=";
23+
};
24+
25+
build-system = [ setuptools ];
26+
27+
dependencies = [
28+
numpy
29+
simpleitk
30+
];
31+
32+
doCheck = false; # no tests
33+
34+
pythonImportsCheck = [ "medvol" ];
35+
36+
meta = {
37+
description = "Wrapper for loading medical 3D image volumes such as NIFTI or NRRD images";
38+
homepage = "https://github.com/MIC-DKFZ/medvol";
39+
changelog = "https://github.com/MIC-DKFZ/MedVol/releases/tag/v${version}";
40+
license = lib.licenses.asl20;
41+
maintainers = with lib.maintainers; [ bcdarwin ];
42+
};
43+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
pythonOlder,
5+
fetchFromGitHub,
6+
setuptools,
7+
medvol,
8+
}:
9+
10+
buildPythonPackage rec {
11+
pname = "napari-nifti";
12+
version = "0.0.17";
13+
pyproject = true;
14+
15+
disabled = pythonOlder "3.8";
16+
17+
src = fetchFromGitHub {
18+
owner = "MIC-DKFZ";
19+
repo = "napari-nifti";
20+
rev = "refs/tags/v${version}";
21+
hash = "sha256-JDyJMg6rsGkfEHBwqKc2L6oRO5Y1MJJlEjUuuqp7URQ=";
22+
};
23+
24+
build-system = [ setuptools ];
25+
26+
dependencies = [ medvol ];
27+
28+
pythonImportsCheck = [ "napari_nifti" ];
29+
30+
doCheck = false; # no tests
31+
32+
meta = {
33+
description = "Napari plugin for reading and writing NIFTI files";
34+
homepage = "https://github.com/MIC-DKFZ/napari-nifti";
35+
changelog = "https://github.com/MIC-DKFZ/napari-nifti/releases/tag/v${version}";
36+
license = lib.licenses.asl20;
37+
maintainers = with lib.maintainers; [ bcdarwin ];
38+
};
39+
}

pkgs/top-level/python-packages.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7979,6 +7979,8 @@ self: super: with self; {
79797979

79807980
medpy = callPackage ../development/python-modules/medpy { };
79817981

7982+
medvol = callPackage ../development/python-modules/medvol { };
7983+
79827984
meeko = callPackage ../development/python-modules/meeko { };
79837985

79847986
meep = callPackage ../development/python-modules/meep { };
@@ -8968,6 +8970,8 @@ self: super: with self; {
89688970

89698971
napari-console = callPackage ../development/python-modules/napari-console { };
89708972

8973+
napari-nifti = callPackage ../development/python-modules/napari-nifti { };
8974+
89718975
napari-npe2 = callPackage ../development/python-modules/napari-npe2 { };
89728976

89738977
napari-plugin-engine = callPackage ../development/python-modules/napari-plugin-engine { };

0 commit comments

Comments
 (0)