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