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