2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-02 22:02:43 +00:00
|
|
|
, importlib-metadata
|
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-02-07 01:22:34 +00:00
|
|
|
, setuptools
|
2021-09-18 10:52:07 +00:00
|
|
|
, pytestCheckHook
|
2022-02-20 05:27:41 +00:00
|
|
|
, pythonOlder
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynndescent";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.5.12";
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-BzYpH8u+39Xgo6KA9xpj+Osvi9lnDUwLUawbTQga33A=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +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
|
2022-11-02 22:02:43 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestCheckHook
|
2021-05-03 20:48:10 +00:00
|
|
|
];
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pynndescent"
|
|
|
|
];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|