depot/third_party/nixpkgs/pkgs/development/python-modules/inflect/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

33 lines
763 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "inflect";
version = "5.6.2";
disabled = isPy27;
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-qtx+1zko9eAUEpeUu6wDBYzKNdCpc6X8TrRcf6JgBfk=";
};
nativeBuildInputs = [ setuptools-scm ];
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;
maintainers = teams.tts.members;
};
}