biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / titlecase / default.nix
blobb6bd8b10719ce0190e6f698fe00632895e21e665
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   regex,
8   setuptools-scm,
9 }:
11 buildPythonPackage rec {
12   pname = "titlecase";
13   version = "2.4";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "ppannuto";
20     repo = "python-titlecase";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-aJbbfNnQvmmYPXVOO+xx7ADetsxE+jnVQOVDzV5jUp8=";
23   };
25   nativeBuildInputs = [ setuptools-scm ];
27   propagatedBuildInputs = [ regex ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pytestFlagsArray = [ "titlecase/tests.py" ];
33   pythonImportsCheck = [ "titlecase" ];
35   meta = with lib; {
36     description = "Python library to capitalize strings as specified by the New York Times";
37     mainProgram = "titlecase";
38     homepage = "https://github.com/ppannuto/python-titlecase";
39     license = licenses.mit;
40     maintainers = [ ];
41   };