about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Lahfa <masterancpp@gmail.com>2023-05-15 10:11:29 +0200
committerGitHub <noreply@github.com>2023-05-15 10:11:29 +0200
commit054175b2a1f5379544aed384e4c4af1f379c4ace (patch)
tree80b0bc92e4665105516f438422802b0720dbdf70
parentabeb0f46c6e97f240d8c41a2dbddc961c20ae22b (diff)
parentc23d2709c1b16cce9e8bb7c3b47f5a35d4a232af (diff)
downloadnixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.tar
nixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.tar.gz
nixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.tar.bz2
nixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.tar.lz
nixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.tar.xz
nixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.tar.zst
nixlib-054175b2a1f5379544aed384e4c4af1f379c4ace.zip
Merge pull request #231900 from bcdarwin/unbreak-intensity-normalization
python310Packages.intensity-normalization: unbreak
-rw-r--r--pkgs/development/python-modules/intensity-normalization/default.nix24
1 files changed, 17 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/intensity-normalization/default.nix b/pkgs/development/python-modules/intensity-normalization/default.nix
index 0abbf3e31104..4f4692dbfad4 100644
--- a/pkgs/development/python-modules/intensity-normalization/default.nix
+++ b/pkgs/development/python-modules/intensity-normalization/default.nix
@@ -3,13 +3,17 @@
 , fetchPypi
 , pythonOlder
 , pytestCheckHook
+, pythonRelaxDepsHook
 , matplotlib
 , nibabel
 , numpy
+, pydicom
+, pymedio
 , scikit-fuzzy
 , scikitimage
 , scikit-learn
 , scipy
+, simpleitk
 , statsmodels
 }:
 
@@ -26,25 +30,32 @@ buildPythonPackage rec {
     hash = "sha256-Yjd4hXmbT87xNKSqc6zkKNisOVhQzQAUZI5wBiI/UBk=";
   };
 
+  postPatch = ''
+    substituteInPlace setup.cfg --replace "!=3.10.*," "" --replace "!=3.11.*" ""
+    substituteInPlace setup.cfg --replace "pytest-runner" ""
+  '';
+
+  nativeBuildInputs = [ pythonRelaxDepsHook ];
+  pythonRelaxDeps = [ "nibabel" ];
+
   propagatedBuildInputs = [
     matplotlib
     nibabel
     numpy
+    pydicom
+    pymedio
     scikit-fuzzy
     scikitimage
     scikit-learn
     scipy
+    simpleitk
     statsmodels
   ];
 
   nativeCheckInputs = [
     pytestCheckHook
   ];
-
-  postPatch = ''
-    substituteInPlace setup.cfg \
-      --replace "pytest-runner" ""
-  '';
+  pytestFlagsArray = [ "tests" ];
 
   pythonImportsCheck = [
     "intensity_normalization"
@@ -53,12 +64,11 @@ buildPythonPackage rec {
     "intensity_normalization.util"
   ];
 
+
   meta = with lib; {
     homepage = "https://github.com/jcreinhold/intensity-normalization";
     description = "MRI intensity normalization tools";
     maintainers = with maintainers; [ bcdarwin ];
     license = licenses.asl20;
-    # depends on simpleitk python wrapper which is not packaged yet
-    broken = true;
   };
 }