1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/knack/default.nix

56 lines
870 B
Nix
Raw Normal View History

2019-06-06 00:05:51 +01:00
{ 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 ];
};
}