python39Packages.ansible-lint: 5.0.8 -> 5.2.0
This commit is contained in:
parent
09b09bc67e
commit
dd229fd9e8
@ -18,13 +18,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ansible-lint";
|
||||
version = "5.0.8";
|
||||
version = "5.2.0";
|
||||
disabled = isPy27;
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-tnuWKEB66bwVuwu3H3mHG99ZP+/msGhMDMRL5fyQgD8=";
|
||||
sha256 = "sha256-eQIDVtk/UD0syGmnJw48BDFtUQ4ztiZO3AjH0NsOgGE=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
@ -52,18 +52,6 @@ buildPythonPackage rec {
|
||||
"--numprocesses" "auto"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Both patches are addressed in https://github.com/ansible-community/ansible-lint/pull/1549
|
||||
# and should be removed once merged upstream
|
||||
|
||||
# fixes test_get_yaml_files_umlaut and test_run_inside_role_dir
|
||||
substituteInPlace src/ansiblelint/file_utils.py \
|
||||
--replace 'os.path.join(root, name)' 'os.path.normpath(os.path.join(root, name))'
|
||||
# fixes test_custom_kinds
|
||||
substituteInPlace src/ansiblelint/file_utils.py \
|
||||
--replace "if name.endswith('.yaml') or name.endswith('.yml')" ""
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
# ansible wants to write to $HOME and crashes if it can't
|
||||
export HOME=$(mktemp -d)
|
||||
@ -80,8 +68,18 @@ buildPythonPackage rec {
|
||||
|
||||
disabledTests = [
|
||||
# requires network
|
||||
"test_cli_auto_detect"
|
||||
"test_install_collection"
|
||||
"test_prerun_reqs_v1"
|
||||
"test_prerun_reqs_v2"
|
||||
"test_require_collection_wrong_version"
|
||||
# re-execs ansible-lint which does not works correct
|
||||
"test_custom_kinds"
|
||||
"test_run_inside_role_dir"
|
||||
"test_run_multiple_role_path_no_trailing_slash"
|
||||
"test_runner_exclude_globs"
|
||||
|
||||
"test_discover_lintables_umlaut"
|
||||
];
|
||||
|
||||
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ ansible-base ]}" ];
|
||||
|
Loading…
Reference in New Issue
Block a user