python311Packages.pynndescent: fix build

This commit is contained in:
Robert Schütz 2024-01-28 20:47:03 -08:00
parent ae5c332cbb
commit 447be53c4f

View File

@ -1,13 +1,13 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, importlib-metadata
, joblib
, llvmlite
, numba
, scikit-learn
, scipy
, setuptools
, pytestCheckHook
, pythonOlder
}:
@ -15,7 +15,7 @@
buildPythonPackage rec {
pname = "pynndescent";
version = "0.5.11";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
@ -24,12 +24,8 @@ buildPythonPackage rec {
hash = "sha256-b0TO2dWp2iyH2bL/8wu1MIVAwGV2BeTVzeftMnW7rVA=";
};
patches = [
# https://github.com/lmcinnes/pynndescent/pull/224
(fetchpatch {
url = "https://github.com/lmcinnes/pynndescent/commit/86e0d716a3a4d5f4e6a0a3c2952f6fe339524e96.patch";
hash = "sha256-dfnT5P9Qsn/nSAr4Ysqo/olbLLfoZXvBRz33yzhN3J4=";
})
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
@ -46,16 +42,6 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# numpy.core._exceptions._UFuncNoLoopError
"test_sparse_nn_descent_query_accuracy_angular"
"test_nn_descent_query_accuracy_angular"
"test_alternative_distances"
# scipy: ValueError: Unknown Distance Metric: wminkowski
# https://github.com/scikit-learn/scikit-learn/pull/21741
"test_weighted_minkowski"
];
pythonImportsCheck = [
"pynndescent"
];