about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/yargy/default.nix
blob: 30ada41f87b02faefcdd8d5b086ac135d0922c05 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, buildPythonPackage
, fetchPypi
, pymorphy2
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "yargy";
  version = "0.16.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-yRfu+zKkDCPEa2yojWiScHLdAKuU6Q/V3GqwpitZtZM=";
  };

  propagatedBuildInputs = [ pymorphy2 ];
  pythonImportCheck = [ "yargy" ];
  nativeCheckInputs = [ pytestCheckHook ];
  pytestFlagsArray = [ "tests" ];

  meta = with lib; {
    description = "Rule-based facts extraction for Russian language";
    homepage = "https://github.com/natasha/yargu";
    license = licenses.mit;
    maintainers = with maintainers; [ npatsakula ];
  };
}