fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
783 B
Nix
43 lines
783 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pymorphy2,
|
|
razdel,
|
|
navec,
|
|
slovnet,
|
|
yargy,
|
|
ipymarkup,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "natasha";
|
|
version = "1.6.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Rgguazgq06a8B9jeRnfHD5VTR+Xrd+8OCsQUfaGLEq0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pymorphy2
|
|
navec
|
|
razdel
|
|
slovnet
|
|
yargy
|
|
ipymarkup
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pytestFlagsArray = [ "tests/" ];
|
|
pythonImportsCheck = [ "natasha" ];
|
|
|
|
meta = with lib; {
|
|
description = "NLP framework for Russian language";
|
|
homepage = "https://github.com/natasha/natasha";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ npatsakula ];
|
|
};
|
|
}
|