aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/networking/cluster/terraform-compliance/default.nix
blob: e906f035fda21347990b6eff1e841a45573b2323 (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
56
{ lib
, GitPython
, buildPythonApplication
, emoji
, fetchFromGitHub
, filetype
, ipython
, junit-xml
, lxml
, mock
, netaddr
, pytestCheckHook
, python3Packages
, radish-bdd
, semver
}:

buildPythonApplication rec {
  pname = "terraform-compliance";
  version = "1.2.11";

  # No tests in Pypi package
  src = fetchFromGitHub {
    owner = "eerkunt";
    repo = pname;
    rev = version;
    sha256 = "161mszmxqp3wypnda48ama2mmq8yjilkxahwc1mxjwzy1n19sn7v";
  };

  checkInputs = [ pytestCheckHook ];

  disabledTests = [
    "test_which_success"
    "test_readable_plan_file_is_not_json"
  ];

  propagatedBuildInputs = [
    GitPython
    emoji
    filetype
    ipython
    junit-xml
    lxml
    mock
    netaddr
    radish-bdd
    semver
  ];

  meta = with lib; {
    description = "BDD test framework for terraform";
    homepage = https://github.com/eerkunt/terraform-compliance;
    license = licenses.mit;
    maintainers = with maintainers; [ kalbasit ];
  };
}