summary refs log tree commit diff
path: root/pkgs/development/python-modules/regional/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/regional/default.nix')
-rw-r--r--pkgs/development/python-modules/regional/default.nix26
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/regional/default.nix b/pkgs/development/python-modules/regional/default.nix
index 62d6ab1ea6d..0fc894e9f01 100644
--- a/pkgs/development/python-modules/regional/default.nix
+++ b/pkgs/development/python-modules/regional/default.nix
@@ -4,38 +4,48 @@
 , numpy
 , scipy
 , matplotlib
-, pytest
+, pytestCheckHook
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "regional";
   version = "1.1.2";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "freeman-lab";
     repo = pname;
     rev = "e3a29c58982e5cd3d5700131ac96e5e0b84fb981"; # no tags in repo
-    sha256 = "03qgm35q9sa5cy0kkw4bj60zfylw0isfzb96nlhdfrsigzs2zkxv";
+    hash = "sha256-u88v9H9RZ9cgtSat73QEnHr3gZGL8DmBZ0XphMuoDw8=";
   };
 
   propagatedBuildInputs = [
+    matplotlib
     numpy
     scipy
-    matplotlib
   ];
 
   nativeCheckInputs = [
-    pytest
+    pytestCheckHook
   ];
 
-  checkPhase = ''
-    pytest
-  '';
+  pythonImportsCheck = [
+    "regional"
+  ];
+
+  disabledTests = [
+    "test_dilate"
+    "test_outline"
+    "test_mask"
+  ];
 
   meta = with lib; {
     description = "Simple manipualtion and display of spatial regions";
     homepage = "https://github.com/freeman-lab/regional";
     license = licenses.mit;
-    maintainers = [ maintainers.costrouc ];
+    maintainers = with maintainers; [ costrouc ];
   };
 }