2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
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
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inflect";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "6.0.4";
|
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;
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-GEJkmhe2ytZoEqXJvfrLYxDh57bdijHwJnZt8bYmEus=";
|
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
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [ pydantic ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
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
|
|
|
}
|