2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
importlib-metadata,
|
|
|
|
joblib,
|
|
|
|
llvmlite,
|
|
|
|
numba,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynndescent";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.5.13";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-10JUwO4KHu7IRZfV/on+3Pd4WT7qvjLC+XQSk0qYAPs=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
joblib
|
|
|
|
llvmlite
|
|
|
|
numba
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2021-02-05 17:12:51 +00:00
|
|
|
scipy
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-03 20:48:10 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pynndescent" ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Nearest Neighbor Descent";
|
|
|
|
homepage = "https://github.com/lmcinnes/pynndescent";
|
|
|
|
license = licenses.bsd2;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|