Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / inflect / default.nix
blob10f5a56763ef7f7efc689abeba12f2cd14a47ffa
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , isPy27
5 , setuptools-scm
6 , pydantic
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "inflect";
12   version = "7.0.0";
13   disabled = isPy27;
14   format = "pyproject";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-Y9qTJa0p2oHsI+BVtBIleVq3k7TstIO+XcH6Nj/UcX4=";
19   };
21   nativeBuildInputs = [ setuptools-scm ];
23   propagatedBuildInputs = [ pydantic ];
25   nativeCheckInputs = [ pytestCheckHook ];
27   pythonImportsCheck = [ "inflect" ];
29   meta = with lib; {
30     description = "Correctly generate plurals, singular nouns, ordinals, indefinite articles";
31     homepage = "https://github.com/jaraco/inflect";
32     changelog = "https://github.com/jaraco/inflect/blob/v${version}/CHANGES.rst";
33     license = licenses.mit;
34     maintainers = teams.tts.members;
35   };