1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, regex
7}:
8
9buildPythonPackage rec {
10 pname = "titlecase";
11 version = "2.3";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "ppannuto";
18 repo = "python-titlecase";
19 rev = "v${version}";
20 sha256 = "169ywzn5wfzwyknqavspkdpwbx31nycxsxkl7iywwk71gs1lskkw";
21 };
22
23 propagatedBuildInputs = [
24 regex
25 ];
26
27 checkInputs = [
28 pytestCheckHook
29 ];
30
31 pytestFlagsArray = [
32 "titlecase/tests.py"
33 ];
34
35 pythonImportsCheck = [
36 "titlecase"
37 ];
38
39 meta = with lib; {
40 description = "Python library to capitalize strings as specified by the New York Times";
41 homepage = "https://github.com/ppannuto/python-titlecase";
42 license = licenses.mit;
43 maintainers = with maintainers; [ ];
44 };
45}