1{ lib, buildPythonPackage, fetchFromGitHub, isPy36, flake8, click, pyyaml, six, pytestCheckHook, pytest-cov }:
2
3buildPythonPackage rec {
4 pname = "clickclick";
5 version = "1.2.2";
6
7 src = fetchFromGitHub {
8 owner = "hjacobs";
9 repo = "python-clickclick";
10 rev = version;
11 sha256 = "1rij9ws9nhsmagiy1vclzliiqfkxi006rf65qvrw1k3sm2s8p5g0";
12 };
13
14 checkInputs = [ pytestCheckHook pytest-cov ];
15 propagatedBuildInputs = [ flake8 click pyyaml six ];
16
17 # test_cli asserts on exact quoting style of output
18 disabledTests = [
19 "test_cli"
20 ] ++ lib.optionals isPy36 [
21 "test_choice_default"
22 ];
23
24 meta = with lib; {
25 description = "Click command line utilities";
26 homepage = "https://github.com/hjacobs/python-clickclick/";
27 license = licenses.asl20;
28 maintainers = with maintainers; [ elohmeier ];
29 };
30}