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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index df127b167385..ce68e6de33dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14012,6 +14012,8 @@ self: super: with self; { yarg = callPackage ../development/python-modules/yarg { }; + yagry = callPackage ../development/python-modules/yargy { }; + yark = callPackage ../development/python-modules/yark { }; yarl = callPackage ../development/python-modules/yarl { };