1{ lib
2, buildPythonPackage
3, fetchPypi
4, pymorphy2
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "yargy";
10 version = "0.16.0";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-yRfu+zKkDCPEa2yojWiScHLdAKuU6Q/V3GqwpitZtZM=";
16 };
17
18 propagatedBuildInputs = [ pymorphy2 ];
19 pythonImportCheck = [ "yargy" ];
20 nativeCheckInputs = [ pytestCheckHook ];
21 pytestFlagsArray = [ "tests" ];
22
23 meta = with lib; {
24 description = "Rule-based facts extraction for Russian language";
25 homepage = "https://github.com/natasha/yargu";
26 license = licenses.mit;
27 maintainers = with maintainers; [ npatsakula ];
28 };
29}