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-01-20 10:41:00 +00:00
|
|
|
version = "6.0.2";
|
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-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-8aa8sBBQRviWGf3hp9BExhLGFMLYXvGCWC2dybhtMJo=";
|
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 ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
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
|
|
|
}
|