2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pymorphy2
|
|
|
|
, razdel
|
|
|
|
, navec
|
|
|
|
, slovnet
|
2024-01-02 11:29:13 +00:00
|
|
|
, yargy
|
2023-10-09 19:29:22 +00:00
|
|
|
, ipymarkup
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "natasha";
|
|
|
|
version = "1.6.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-Rgguazgq06a8B9jeRnfHD5VTR+Xrd+8OCsQUfaGLEq0=";
|
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
propagatedBuildInputs = [ pymorphy2 navec razdel slovnet yargy ipymarkup ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "tests/" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonImportsCheck = [ "natasha" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "NLP framework for Russian language";
|
|
|
|
homepage = "https://github.com/natasha/natasha";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ npatsakula ];
|
|
|
|
};
|
|
|
|
}
|