biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / knack / default.nix
blobf61fe242dac16368ebcc28e5a6cb07da8d457b96
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,
18 buildPythonPackage rec {
19   pname = "knack";
20   version = "0.12.0";
21   format = "setuptools";
23   disabled = pythonOlder "3.7";
25   src = fetchPypi {
26     inherit pname version;
27     hash = "sha256-cfKmtCrpowLkMkMyD6Be2wmxkzn88fMx9bbQe/l/UpE=";
28   };
30   propagatedBuildInputs = [
31     argcomplete
32     colorama
33     jmespath
34     pygments
35     pyyaml
36     six
37     tabulate
38   ];
40   nativeCheckInputs = [
41     mock
42     vcrpy
43     pytest
44   ];
46   checkPhase = ''
47     HOME=$TMPDIR pytest .
48   '';
50   pythonImportsCheck = [ "knack" ];
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   };