nixpkgs/pkgs/development/python-modules/knack/default.nix
2021-03-27 05:11:06 +00:00

53 lines
813 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, argcomplete
, colorama
, jmespath
, pygments
, pyyaml
, six
, tabulate
, mock
, vcrpy
, pytest
}:
buildPythonPackage rec {
pname = "knack";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "16aa47240add6badd933a0b27576f3c090d7469177dc941e3ece05ca88123199";
};
propagatedBuildInputs = [
argcomplete
colorama
jmespath
pygments
pyyaml
six
tabulate
];
checkInputs = [
mock
vcrpy
pytest
];
checkPhase = ''
HOME=$TMPDIR pytest .
'';
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 ];
};
}