2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2024-05-15 15:35:15 +00:00
|
|
|
, more-itertools
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2022-09-30 11:47:45 +00:00
|
|
|
, pydantic
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytestCheckHook
|
2024-05-15 15:35:15 +00:00
|
|
|
, typeguard
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inflect";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "7.2.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
disabled = isPy27;
|
2022-08-12 12:06:08 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-Mv6s+s/K4vIub8zeoQ8N3yamOPrENNDd2q+8oANPN4Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
more-itertools
|
|
|
|
pydantic
|
|
|
|
typeguard
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://errors.pydantic.dev/2.5/v/string_too_short
|
|
|
|
"inflect.engine.compare"
|
|
|
|
];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
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;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = teams.tts.members;
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|