summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/clickclick/default.nix
blob: baf60a69af7ce3795562542a3e246cbc3e7b34f0 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
  lib,
  buildPythonPackage,
  click,
  fetchFromGitea,
  flake8,
  pytest-cov-stub,
  pytestCheckHook,
  pyyaml,
  setuptools,
  six,
}:

buildPythonPackage rec {
  pname = "clickclick";
  version = "20.10.2";
  pyproject = true;

  src = fetchFromGitea {
    domain = "codeberg.org";
    owner = "hjacobs";
    repo = "python-clickclick";
    rev = version;
    hash = "sha256-gefU6CI4ibtvonsaKZmuffuUNUioBn5ODs72BI5zXOw=";
  };

  build-system = [ setuptools ];

  dependencies = [
    flake8
    click
    pyyaml
    six
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov-stub
  ];

  pythonImportsCheck = [ "clickclick" ];

  disabledTests = [
    # Tests asserts on exact quoting style of output
    "test_choice_default"
    "test_cli"
  ];

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