mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 02:37:54 +00:00
Merge pull request #284229 from fabaff/pymatting-fix
python311Packages.pymatting: refactor
This commit is contained in:
commit
5f5d111816
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user