python312Packages.napari-nifti: init at 0.0.17 (#334471)

This commit is contained in:
Wolfgang Walther 2024-12-02 12:24:35 +01:00 committed by GitHub
commit 741c4b4490
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 86 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 ];
};
}

View File

@ -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 { };
@ -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 { };