diff options
Diffstat (limited to 'pkgs/development/python-modules/yargy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/yargy/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/yargy/default.nix b/pkgs/development/python-modules/yargy/default.nix new file mode 100644 index 000000000000..30ada41f87b0 --- /dev/null +++ b/pkgs/development/python-modules/yargy/default.nix @@ -0,0 +1,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 ]; + }; +} |