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