1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 regex, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "titlecase"; 13 version = "2.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "ppannuto"; 20 repo = "python-titlecase"; 21 tag = "v${version}"; 22 hash = "sha256-aJbbfNnQvmmYPXVOO+xx7ADetsxE+jnVQOVDzV5jUp8="; 23 }; 24 25 nativeBuildInputs = [ setuptools-scm ]; 26 27 propagatedBuildInputs = [ regex ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 enabledTestPaths = [ "titlecase/tests.py" ]; 32 33 pythonImportsCheck = [ "titlecase" ]; 34 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 }; 42}