depot/third_party/nixpkgs/pkgs/development/python-modules/pymorphy3/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

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 ];
};
}