diff options
Diffstat (limited to 'pkgs/development/python-modules/simplemma/default.nix')
-rw-r--r-- | pkgs/development/python-modules/simplemma/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/simplemma/default.nix b/pkgs/development/python-modules/simplemma/default.nix new file mode 100644 index 00000000000..6c7f5f7c1af --- /dev/null +++ b/pkgs/development/python-modules/simplemma/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub + +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "simplemma"; + version = "0.9.1"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "adbar"; + repo = "simplemma"; + rev = "v${version}"; + hash = "sha256-2IvAJ+tRnlYISymYXznCGAoUTKkM/PoYwpZpuMSXRYQ="; + }; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "simplemma" + ]; + + meta = with lib; { + description = "Simple multilingual lemmatizer for Python, especially useful for speed and efficiency"; + homepage = "https://github.com/adbar/simplemma"; + license = licenses.mit; + maintainers = with maintainers; [ paveloom ]; + }; +} |