diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-01-03 00:15:55 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-01-05 13:20:48 +0100 |
commit | d5c2dae9776f79495601ea4457c20e7be4731fab (patch) | |
tree | 01c4f30b88a20c91f6c25da28d9f6325beaef1df /pkgs/development/python-modules/cli-helpers | |
parent | 8aa83fea9045f13c39eafe9e8a11e4f61cfee29c (diff) |
python3Packages.cli-helpers: reformat
Diffstat (limited to 'pkgs/development/python-modules/cli-helpers')
-rw-r--r-- | pkgs/development/python-modules/cli-helpers/default.nix | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/cli-helpers/default.nix b/pkgs/development/python-modules/cli-helpers/default.nix index 02b6c6fccda71..7d7930b4f8b81 100644 --- a/pkgs/development/python-modules/cli-helpers/default.nix +++ b/pkgs/development/python-modules/cli-helpers/default.nix @@ -1,37 +1,43 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder , backports_csv , configobj , mock -, pytest +, pytestCheckHook +, pygments , tabulate , terminaltables , wcwidth }: buildPythonPackage rec { - pname = "cli_helpers"; + pname = "cli-helpers"; version = "2.3.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { - inherit pname version; - sha256 = "sha256-5xdNADorWP0+Mac/u8RdWqUT3mLL1C1Df3i5ZYvV+Wc="; + pname = "cli_helpers"; + inherit version; + hash = "sha256-5xdNADorWP0+Mac/u8RdWqUT3mLL1C1Df3i5ZYvV+Wc="; }; propagatedBuildInputs = [ configobj - terminaltables tabulate - wcwidth - ] ++ (lib.optionals isPy27 [ backports_csv ]); - - # namespace collision between backport.csv and backports.configparser - doCheck = !isPy27; + ] ++ tabulate.optional-dependencies.widechars; - checkInputs = [ pytest mock ]; + passthru.optional-dependencies = { + styles = [ pygments ]; + }; - checkPhase = '' - py.test - ''; + checkInputs = [ + pytestCheckHook + mock + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); meta = with lib; { description = "Python helpers for common CLI tasks"; |