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";
|
2019-07-16 10:29:59 +01:00
|
|
|
version = "0.6.3";
|
2019-06-06 00:05:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-07-16 10:29:59 +01:00
|
|
|
sha256 = "08g15kwfppdr7vhbsg6qclpqbf11d9k3hwgrmvhh5fa1jrk95b5i";
|
2019-06-06 00:05:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
argcomplete
|
|
|
|
colorama
|
|
|
|
jmespath
|
|
|
|
pygments
|
|
|
|
pyyaml
|
|
|
|
six
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
vcrpy
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2019-07-16 10:29:59 +01:00
|
|
|
HOME=$TMPDIR pytest .
|
2019-06-06 00:05:51 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|