depot/third_party/nixpkgs/pkgs/development/python-modules/inflect/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

36 lines
819 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools-scm
, pydantic
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "inflect";
version = "6.0.4";
disabled = isPy27;
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-GEJkmhe2ytZoEqXJvfrLYxDh57bdijHwJnZt8bYmEus=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ pydantic ];
nativeCheckInputs = [ 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;
};
}