1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, autocommand 6, importlib-resources 7, jaraco-functools 8, jaraco-context 9, inflect 10, pathlib2 11, pytestCheckHook 12, setuptools-scm 13}: 14 15buildPythonPackage rec { 16 pname = "jaraco-text"; 17 version = "3.11.1"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchPypi { 23 pname = "jaraco.text"; 24 inherit version; 25 hash = "sha256-Mzpd8hSPcTlxhgfN81L+HZUWKXGnKZw4Dcwk2rAWiYA="; 26 }; 27 28 pythonNamespaces = [ 29 "jaraco" 30 ]; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 autocommand 38 jaraco-context 39 jaraco-functools 40 inflect 41 ] ++ lib.optionals (pythonOlder "3.9") [ 42 importlib-resources 43 ]; 44 45 nativeCheckInputs = [ 46 pytestCheckHook 47 ] ++ lib.optionals (pythonOlder "3.10") [ 48 pathlib2 49 ]; 50 51 pythonImportsCheck = [ 52 "jaraco.text" 53 ]; 54 55 meta = with lib; { 56 description = "Module for text manipulation"; 57 homepage = "https://github.com/jaraco/jaraco.text"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ ]; 60 }; 61}