1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, setuptools-scm
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "inflect";
11 version = "5.3.0";
12 disabled = isPy27;
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "41a23f6788962e9775e40e2ecfb1d6455d02de315022afeedd3c5dc070019d73";
17 };
18
19 nativeBuildInputs = [ setuptools-scm ];
20
21 checkInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "inflect" ];
24
25 meta = with lib; {
26 description = "Correctly generate plurals, singular nouns, ordinals, indefinite articles";
27 homepage = "https://github.com/jaraco/inflect";
28 changelog = "https://github.com/jaraco/inflect/blob/v${version}/CHANGES.rst";
29 license = licenses.mit;
30 maintainers = teams.tts.members;
31 };
32}