summary refs log tree commit diff
path: root/pkgs/development/python-modules/clickclick/default.nix
blob: d829f43dc0d1d3b4273fa21dedb33de2f97a122f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib, buildPythonPackage, fetchFromGitHub, isPy36, flake8, click, pyyaml, six, pytestCheckHook, pytestcov }:

buildPythonPackage rec {
  pname = "clickclick";
  version = "1.2.2";

  src = fetchFromGitHub {
    owner = "hjacobs";
    repo = "python-clickclick";
    rev = version;
    sha256 = "1rij9ws9nhsmagiy1vclzliiqfkxi006rf65qvrw1k3sm2s8p5g0";
  };

  checkInputs = [ pytestCheckHook pytestcov ];
  propagatedBuildInputs = [ flake8 click pyyaml six ];

  # test_cli asserts on exact quoting style of output
  disabledTests = [
    "test_cli"
  ] ++ lib.optionals isPy36 [
    "test_choice_default"
  ];

  meta = with lib; {
    description = "Click command line utilities";
    homepage = "https://github.com/hjacobs/python-clickclick/";
    license = licenses.asl20;
    maintainers = with maintainers; [ elohmeier ];
  };
}