2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-06-06 00:05:51 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, argcomplete
|
|
|
|
, colorama
|
|
|
|
, jmespath
|
|
|
|
, pygments
|
|
|
|
, pyyaml
|
|
|
|
, six
|
|
|
|
, tabulate
|
|
|
|
, mock
|
|
|
|
, vcrpy
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "knack";
|
2021-06-09 22:05:44 +01:00
|
|
|
version = "0.8.2";
|
2019-06-06 00:05:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-09 22:05:44 +01:00
|
|
|
sha256 = "4eaa50a1c5e79d1c5c8e5e1705b661721b0b83a089695e59e229cc26c64963b9";
|
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; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/microsoft/knack";
|
2019-06-06 00:05:51 +01:00
|
|
|
description = "A Command-Line Interface framework";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|