diff --git a/pkgs/development/python-modules/knack/default.nix b/pkgs/development/python-modules/knack/default.nix new file mode 100644 index 000000000000..f8427cd7d177 --- /dev/null +++ b/pkgs/development/python-modules/knack/default.nix @@ -0,0 +1,55 @@ +{ stdenv +, lib +, buildPythonPackage +, fetchPypi +, argcomplete +, colorama +, jmespath +, knack +, pygments +, pyyaml +, six +, tabulate +, mock +, vcrpy +, pytest +}: + +buildPythonPackage rec { + pname = "knack"; + version = "0.6.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1kxxj9m2mvva9rz11m6pgdg0mi712d28faj4633rl23qa53sh7i8"; + }; + + propagatedBuildInputs = [ + argcomplete + colorama + jmespath + pygments + pyyaml + six + tabulate + ]; + + checkInputs = [ + mock + vcrpy + pytest + ]; + + # tries to make a '/homeless-shelter' dir + checkPhase = '' + pytest -k 'not test_cli_exapp1' + ''; + + meta = with lib; { + homepage = https://github.com/microsoft/knack; + description = "A Command-Line Interface framework"; + platforms = platforms.all; + license = licenses.mit; + maintainers = with maintainers; [ jonringer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 16f6de2a973c..9b70898d78ac 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3160,6 +3160,8 @@ in { kitchen = callPackage ../development/python-modules/kitchen { }; + knack = callPackage ../development/python-modules/knack { }; + kubernetes = callPackage ../development/python-modules/kubernetes { }; pylast = callPackage ../development/python-modules/pylast { };