depot/third_party/nixpkgs/pkgs/development/python-modules/natasha/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

35 lines
744 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pymorphy2
, razdel
, navec
, slovnet
, yagry
, 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 yagry ipymarkup ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests/" ];
pythonImportCheck = [ "natasha" ];
meta = with lib; {
description = "NLP framework for Russian language";
homepage = "https://github.com/natasha/natasha";
license = licenses.mit;
maintainers = with maintainers; [ npatsakula ];
};
}