python311Packages.navec: init at 0.10.0

This commit is contained in:
Patsakula Nikita 2023-09-08 14:16:06 +03:00
parent 9e227c3bbd
commit 64c2435488
No known key found for this signature in database
GPG key ID: 954300EE01218A33
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, razdel
, gensim
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "navec";
version = "0.10.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-TyNHSxwnmvbGBfhOeHPofEfKWLDFOKP50w2QxgnJ/SE=";
};
propagatedBuildInputs = [ numpy razdel ];
nativeCheckInputs = [ pytestCheckHook gensim ];
# TODO: remove when gensim usage will be fixed in `navec`.
disabledTests = [ "test_gensim" ];
pythonImportCheck = [ "navec" ];
meta = with lib; {
description = "Compact high quality word embeddings for Russian language";
homepage = "https://github.com/natasha/navec";
license = licenses.mit;
maintainers = with maintainers; [ npatsakula ];
};
}

View file

@ -6991,6 +6991,8 @@ self: super: with self; {
nanoleaf = callPackage ../development/python-modules/nanoleaf { };
navec = callPackage ../development/python-modules/navec { };
nomadnet = callPackage ../development/python-modules/nomadnet { };
nox = callPackage ../development/python-modules/nox { };