mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "terraform-compliance";
|
|
version = "1.3.48";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "terraform-compliance";
|
|
repo = "cli";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-2nf/EJcC4KYTBItByX47UqTSs2EOgsUAgRbLEdB4Iyg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "IPython==7.16.1" "IPython" \
|
|
--replace "diskcache==5.1.0" "diskcache>=5.1.0" \
|
|
--replace "radish-bdd==0.13.1" "radish-bdd" \
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
diskcache
|
|
emoji
|
|
filetype
|
|
gitpython
|
|
ipython
|
|
junit-xml
|
|
lxml
|
|
mock
|
|
netaddr
|
|
radish-bdd
|
|
semver
|
|
orjson
|
|
];
|
|
|
|
nativeCheckInputs = 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";
|
|
mainProgram = "terraform-compliance";
|
|
homepage = "https://github.com/terraform-compliance/cli";
|
|
changelog = "https://github.com/terraform-compliance/cli/releases/tag/${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kalbasit kashw2 ];
|
|
};
|
|
}
|