504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
855 B
Nix
42 lines
855 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildPythonPackage
|
|
, dawg-python
|
|
, docopt
|
|
, pytestCheckHook
|
|
, pymorphy3-dicts-ru
|
|
, pymorphy3-dicts-uk
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymorphy3";
|
|
version = "1.2.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "no-plagiarism";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-JTRG+UtNXnS9GFUrgHNVCktb3HdH98wDFgzDPp6oVcQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dawg-python
|
|
docopt
|
|
pymorphy3-dicts-ru
|
|
pymorphy3-dicts-uk
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pymorphy3" ];
|
|
|
|
meta = with lib; {
|
|
description = "Morphological analyzer/inflection engine for Russian and Ukrainian";
|
|
homepage = "https://github.com/no-plagiarism/pymorphy3";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jboy ];
|
|
};
|
|
}
|