1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 argcomplete,
6 colorama,
7 jmespath,
8 pygments,
9 pyyaml,
10 six,
11 tabulate,
12 mock,
13 vcrpy,
14 pytest,
15 pythonOlder,
16}:
17
18buildPythonPackage rec {
19 pname = "knack";
20 version = "0.12.0";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchPypi {
26 inherit pname version;
27 hash = "sha256-cfKmtCrpowLkMkMyD6Be2wmxkzn88fMx9bbQe/l/UpE=";
28 };
29
30 propagatedBuildInputs = [
31 argcomplete
32 colorama
33 jmespath
34 pygments
35 pyyaml
36 six
37 tabulate
38 ];
39
40 nativeCheckInputs = [
41 mock
42 vcrpy
43 pytest
44 ];
45
46 checkPhase = ''
47 HOME=$TMPDIR pytest .
48 '';
49
50 pythonImportsCheck = [ "knack" ];
51
52 meta = with lib; {
53 homepage = "https://github.com/microsoft/knack";
54 description = "Command-Line Interface framework";
55 changelog = "https://github.com/microsoft/knack/blob/v${version}/HISTORY.rst";
56 platforms = platforms.all;
57 license = licenses.mit;
58 maintainers = [ ];
59 };
60}