2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPy3k,
|
|
|
|
dawg-python,
|
|
|
|
docopt,
|
|
|
|
pymorphy2-dicts-ru,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pymorphy2";
|
|
|
|
version = "0.9.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-hsRHFX3uLrI0HvvkU44SgadUdWuhqjLad6iWFMWLVgw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
dawg-python
|
|
|
|
docopt
|
|
|
|
pymorphy2-dicts-ru
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pymorphy2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Morphological analyzer/inflection engine for Russian and Ukrainian";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pymorphy";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/kmike/pymorphy2";
|
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|