e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
41 lines
931 B
Nix
41 lines
931 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, setuptools-scm
|
|
, pydantic
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "inflect";
|
|
version = "7.0.0";
|
|
disabled = isPy27;
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Y9qTJa0p2oHsI+BVtBIleVq3k7TstIO+XcH6Nj/UcX4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ pydantic ];
|
|
|
|
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;
|
|
};
|
|
}
|