1{ lib 2, buildPythonPackage 3, fetchPypi 4, terminaltables 5, tabulate 6, backports_csv 7, wcwidth 8, pytest 9, isPy27 10}: 11 12buildPythonPackage rec { 13 pname = "cli_helpers"; 14 version = "1.0.2"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "1z5rqm8pznj6bvivm2al8rsxm82rai8hc9bqrgh3ksnbzg2kfy7p"; 19 }; 20 21 propagatedBuildInputs = [ 22 terminaltables 23 tabulate 24 wcwidth 25 ] ++ (lib.optionals isPy27 [ backports_csv ]); 26 27 checkInputs = [ pytest ]; 28 29 checkPhase = '' 30 py.test 31 ''; 32 33 meta = with lib; { 34 description = "Python helpers for common CLI tasks"; 35 longDescription = '' 36 CLI Helpers is a Python package that makes it easy to perform common 37 tasks when building command-line apps. It's a helper library for 38 command-line interfaces. 39 40 Libraries like Click and Python Prompt Toolkit are amazing tools that 41 help you create quality apps. CLI Helpers complements these libraries by 42 wrapping up common tasks in simple interfaces. 43 44 CLI Helpers is not focused on your app's design pattern or framework -- 45 you can use it on its own or in combination with other libraries. It's 46 lightweight and easy to extend. 47 48 What's included in CLI Helpers? 49 50 - Prettyprinting of tabular data with custom pre-processing 51 - [in progress] config file reading/writing 52 53 Read the documentation at http://cli-helpers.rtfd.io 54 ''; 55 homepage = https://cli-helpers.readthedocs.io/en/stable/; 56 license = licenses.bsd3 ; 57 maintainers = [ maintainers.kalbasit ]; 58 }; 59}