14 buildPythonPackage rec {
15 pname = "pynndescent";
17 format = "setuptools";
19 disabled = pythonOlder "3.6";
22 inherit pname version;
23 hash = "sha256-p8VSVpv2BKEB/VS7odJ8EjieBllF3uOmd3pRjGOkbys=";
26 propagatedBuildInputs = [
32 ] ++ lib.optionals (pythonOlder "3.8") [
41 # numpy.core._exceptions._UFuncNoLoopError
42 "test_sparse_nn_descent_query_accuracy_angular"
43 "test_nn_descent_query_accuracy_angular"
44 "test_alternative_distances"
45 # scipy: ValueError: Unknown Distance Metric: wminkowski
46 # https://github.com/scikit-learn/scikit-learn/pull/21741
47 "test_weighted_minkowski"
50 pythonImportsCheck = [
55 description = "Nearest Neighbor Descent";
56 homepage = "https://github.com/lmcinnes/pynndescent";
57 license = licenses.bsd2;
58 maintainers = with maintainers; [ mic92 ];