02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
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 ];
|
|
};
|
|
}
|