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