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