1{ lib
2, buildPythonPackage
3, fetchPypi
4, argcomplete
5, colorama
6, jmespath
7, pygments
8, pyyaml
9, six
10, tabulate
11, mock
12, vcrpy
13, pytest
14}:
15
16buildPythonPackage rec {
17 pname = "knack";
18 version = "0.10.0";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-ExkPqV1MIbzgS0vuItak4/sZqTtpmbHRBL0CxHZwbCg=";
23 };
24
25 propagatedBuildInputs = [
26 argcomplete
27 colorama
28 jmespath
29 pygments
30 pyyaml
31 six
32 tabulate
33 ];
34
35 checkInputs = [
36 mock
37 vcrpy
38 pytest
39 ];
40
41 checkPhase = ''
42 HOME=$TMPDIR pytest .
43 '';
44
45 meta = with lib; {
46 homepage = "https://github.com/microsoft/knack";
47 description = "A Command-Line Interface framework";
48 platforms = platforms.all;
49 license = licenses.mit;
50 maintainers = with maintainers; [ jonringer ];
51 };
52}