python311Packages.pymatting: refactor

This commit is contained in:
Fabian Affolter
2024-01-29 09:43:13 +01:00
parent 8ef07bd0ea
commit f6c98e0c6d
2 changed files with 11 additions and 19 deletions
@@ -1,13 +0,0 @@
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()
@@ -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