nixpkgs-suyu/pkgs/development/python-modules/pymorphy3/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
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
2023-12-07 17:46:49 +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 ];
};
}