Merge pull request #284229 from fabaff/pymatting-fix

python311Packages.pymatting: refactor
This commit is contained in:
Fabian Affolter 2024-01-29 20:15:25 +01:00 committed by GitHub
commit 5f5d111816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 19 deletions

View File

@ -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()

View File

@ -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