mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
bc9510f2a1
Diff: https://github.com/terraform-compliance/cli/compare/refs/tags/1.2.11...1.3.34 Changelog: https://github.com/terraform-compliance/cli/releases/tag/1.3.34
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "terraform-compliance";
|
|
version = "1.3.34";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "terraform-compliance";
|
|
repo = "cli";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-1TFLpBwkpMMdiJJfVvDXlJg4SXWQ8VV605wMFGU+InQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "IPython==7.16.1" "IPython" \
|
|
--replace "diskcache==5.1.0" "diskcache>=5.1.0"
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
diskcache
|
|
emoji
|
|
filetype
|
|
gitpython
|
|
ipython
|
|
junit-xml
|
|
lxml
|
|
mock
|
|
netaddr
|
|
radish-bdd
|
|
semver
|
|
];
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_which_success"
|
|
"test_readable_plan_file_is_not_json"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"terraform_compliance"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "BDD test framework for terraform";
|
|
homepage = "https://github.com/terraform-compliance/cli";
|
|
changelog = "https://github.com/terraform-compliance/cli/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
};
|
|
}
|