2021-02-27 18:19:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, setuptools_scm
|
|
|
|
, toml
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-09-03 01:15:59 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inflect";
|
2021-02-27 18:19:00 +00:00
|
|
|
version = "5.2.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-02-27 18:19:00 +00:00
|
|
|
sha256 = "30e9d9d372e693739beaae1345dc53c48871ca70c5c7060edd3e7e77802bf945";
|
2018-09-03 01:15:59 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 20:17:01 +01:00
|
|
|
nativeBuildInputs = [ setuptools_scm toml ];
|
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;
|
|
|
|
};
|
2018-09-03 01:15:59 +01:00
|
|
|
}
|