Unverified Commit 5f5d1118 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #284229 from fabaff/pymatting-fix

python311Packages.pymatting: refactor
parents cf9e2b1b f6c98e0c
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
diff --git a/tests/test_kdtree.py b/tests/test_kdtree.py
index 0110083..049fa07 100644
--- a/tests/test_kdtree.py
+++ b/tests/test_kdtree.py
@@ -23,7 +23,7 @@ def run_kdtree():
 
     tree = cKDTree(data_points)
 
-    distances2, indices2 = tree.query(query_points, k=k, n_jobs=-1)
+    distances2, indices2 = tree.query(query_points, k=k)
 
     t2 = time.perf_counter()
 
+11 −6
Original line number Diff line number Diff line
@@ -4,14 +4,15 @@
, numba
, numpy
, pillow
, scipy
, pytestCheckHook
,
, scipy
, setuptools
}:

buildPythonPackage rec {
  pname = "pymatting";
  version = "1.1.10";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pymatting";
@@ -20,7 +21,9 @@ buildPythonPackage rec {
    hash = "sha256-wHCTqcBvVN/pTXH3iW57DPpMEsnehutRQB5NaugS6Zs=";
  };

  patches = [ ./01-kdtree-signature.patch ];
  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    numba
@@ -29,12 +32,14 @@ buildPythonPackage rec {
    scipy
  ];

  pythonImportsCheck = [ "pymatting" ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "pymatting"
  ];

  disabledTests = [
    # no access to input data set
    # see: https://github.com/pymatting/pymatting/blob/master/tests/download_images.py