2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, dawg-python
|
|
|
|
, docopt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pymorphy3-dicts-ru
|
|
|
|
, pymorphy3-dicts-uk
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymorphy3";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.2.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "no-plagiarism";
|
|
|
|
repo = pname;
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-JTRG+UtNXnS9GFUrgHNVCktb3HdH98wDFgzDPp6oVcQ=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|