1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, dawg-python 5, docopt 6, pytestCheckHook 7, pymorphy3-dicts-ru 8, pymorphy3-dicts-uk 9}: 10 11buildPythonPackage rec { 12 pname = "pymorphy3"; 13 version = "1.2.1"; 14 15 src = fetchFromGitHub { 16 owner = "no-plagiarism"; 17 repo = pname; 18 rev = "refs/tags/${version}"; 19 hash = "sha256-JTRG+UtNXnS9GFUrgHNVCktb3HdH98wDFgzDPp6oVcQ="; 20 }; 21 22 propagatedBuildInputs = [ 23 dawg-python 24 docopt 25 pymorphy3-dicts-ru 26 pymorphy3-dicts-uk 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ "pymorphy3" ]; 34 35 meta = with lib; { 36 description = "Morphological analyzer/inflection engine for Russian and Ukrainian"; 37 homepage = "https://github.com/no-plagiarism/pymorphy3"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ jboy ]; 40 }; 41}