python3.pkgs.pynndescent: init at 0.5.1
This commit is contained in:
parent
513a3ea665
commit
1924bb8b14
52
pkgs/development/python-modules/pynndescent/default.nix
Normal file
52
pkgs/development/python-modules/pynndescent/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, nose
|
||||
, scikitlearn
|
||||
, scipy
|
||||
, numba
|
||||
, llvmlite
|
||||
, joblib
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pynndescent";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "74a05a54d13573a38878781d44812ac6df97d8762a56f9bb5dd87a99911820fe";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# fixes tests, included in next version
|
||||
(fetchpatch {
|
||||
url = "https://github.com/lmcinnes/pynndescent/commit/ef5d8c3c3bfe976063b6621e3e0734c0c22d813b.patch";
|
||||
sha256 = "sha256-49n3kevs3wpzd4FfZVKmNpF2o1V8pJs4KOx8zCAhR3s=";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
scikitlearn
|
||||
scipy
|
||||
numba
|
||||
llvmlite
|
||||
joblib
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Nearest Neighbor Descent";
|
||||
homepage = "https://github.com/lmcinnes/pynndescent";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.mic92 ];
|
||||
};
|
||||
}
|
@ -4849,6 +4849,8 @@ in {
|
||||
|
||||
pkuseg = callPackage ../development/python-modules/pkuseg { };
|
||||
|
||||
pynndescent = callPackage ../development/python-modules/pynndescent { };
|
||||
|
||||
pysbd = callPackage ../development/python-modules/pysbd { };
|
||||
|
||||
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
||||
|
Loading…
Reference in New Issue
Block a user