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