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-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
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|