python3Packages.pynndescent: Fix skbuild 1.2.0 compat

This commit is contained in:
Martin Weinelt 2023-01-03 22:54:24 +01:00
parent 0cee035e07
commit 6d0a0fda79

View file

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, importlib-metadata
, joblib
, llvmlite
@ -23,6 +24,18 @@ buildPythonPackage rec {
hash = "sha256-p8VSVpv2BKEB/VS7odJ8EjieBllF3uOmd3pRjGOkbys=";
};
patches = [
# Fix sklearn 1.2.0 compat; https://github.com/lmcinnes/pynndescent/issues/207
(fetchpatch {
url = "https://github.com/lmcinnes/pynndescent/commit/00444be2107b71169b853847e7b334623c58a4e3.patch";
hash = "sha256-mbe01BwroS5q6hENsj3NejmGGhmk2IeX4LD6Iq6PR0c=";
})
(fetchpatch {
url = "https://github.com/lmcinnes/pynndescent/commit/e56b92776a4a05f2dabb80d25479bd37e7ebd88e.patch";
hash = "sha256-zVTaW4syGEHh2HAGPyBN3YXqUGe55v/LxKLX/zjXT5Y=";
})
];
propagatedBuildInputs = [
joblib
llvmlite