depot/third_party/nixpkgs/pkgs/development/python-modules/inflect/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
1,010 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
more-itertools,
setuptools-scm,
pydantic,
pytestCheckHook,
typeguard,
}:
buildPythonPackage rec {
pname = "inflect";
version = "7.2.0";
disabled = isPy27;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-Mv6s+s/K4vIub8zeoQ8N3yamOPrENNDd2q+8oANPN4Q=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
more-itertools
pydantic
typeguard
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# https://errors.pydantic.dev/2.5/v/string_too_short
"inflect.engine.compare"
];
pythonImportsCheck = [ "inflect" ];
meta = with lib; {
description = "Correctly generate plurals, singular nouns, ordinals, indefinite articles";
homepage = "https://github.com/jaraco/inflect";
changelog = "https://github.com/jaraco/inflect/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = teams.tts.members;
};
}