nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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}:
16
17buildPythonPackage rec {
18 pname = "knack";
19 version = "0.13.0";
20 format = "setuptools";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-3aNbT/TFdrJQGhjw7C8v4KOl+czoJl1AZtMR5e1LW8Y=";
25 };
26
27 propagatedBuildInputs = [
28 argcomplete
29 colorama
30 jmespath
31 pygments
32 pyyaml
33 six
34 tabulate
35 ];
36
37 nativeCheckInputs = [
38 mock
39 vcrpy
40 pytest
41 ];
42
43 checkPhase = ''
44 HOME=$TMPDIR pytest .
45 '';
46
47 pythonImportsCheck = [ "knack" ];
48
49 meta = {
50 homepage = "https://github.com/microsoft/knack";
51 description = "Command-Line Interface framework";
52 changelog = "https://github.com/microsoft/knack/blob/v${version}/HISTORY.rst";
53 platforms = lib.platforms.all;
54 license = lib.licenses.mit;
55 maintainers = [ ];
56 };
57}