Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 727 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, setuptools_scm 6, toml 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "inflect"; 12 version = "5.3.0"; 13 disabled = isPy27; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "41a23f6788962e9775e40e2ecfb1d6455d02de315022afeedd3c5dc070019d73"; 18 }; 19 20 nativeBuildInputs = [ setuptools_scm toml ]; 21 22 checkInputs = [ pytestCheckHook ]; 23 24 pythonImportsCheck = [ "inflect" ]; 25 26 meta = with lib; { 27 description = "Correctly generate plurals, singular nouns, ordinals, indefinite articles"; 28 homepage = "https://github.com/jaraco/inflect"; 29 changelog = "https://github.com/jaraco/inflect/blob/v${version}/CHANGES.rst"; 30 license = licenses.mit; 31 }; 32}