2021-02-27 18:19:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2021-02-27 18:19:00 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-09-03 01:15:59 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inflect";
|
2021-03-12 18:32:57 +00:00
|
|
|
version = "5.3.0";
|
2020-06-23 02:22:03 +01:00
|
|
|
disabled = isPy27;
|
2018-09-03 01:15:59 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-12 18:32:57 +00:00
|
|
|
sha256 = "41a23f6788962e9775e40e2ecfb1d6455d02de315022afeedd3c5dc070019d73";
|
2018-09-03 01:15:59 +01:00
|
|
|
};
|
|
|
|
|
2021-08-27 01:25:52 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-02-27 18:19:00 +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-04 13:38:01 +01:00
|
|
|
maintainers = teams.tts.members;
|
2021-02-27 18:19:00 +00:00
|
|
|
};
|
2018-09-03 01:15:59 +01:00
|
|
|
}
|