diff --git a/pkgs/development/python-modules/ansible-compat/default.nix b/pkgs/development/python-modules/ansible-compat/default.nix index 4098fa11b845..6f8f79c5fe2f 100644 --- a/pkgs/development/python-modules/ansible-compat/default.nix +++ b/pkgs/development/python-modules/ansible-compat/default.nix @@ -18,18 +18,19 @@ pytest-mock, pytest-instafail, pytestCheckHook, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "ansible-compat"; - version = "25.1.2"; + version = "25.1.5"; pyproject = true; src = fetchFromGitHub { owner = "ansible"; repo = "ansible-compat"; tag = "v${version}"; - hash = "sha256-AElonUB2zXB3ZcRTwuaYpEQJYHtPw2lD3tBNMEqwuKo="; + hash = "sha256-fc+PXw9sT+CQFwcajuJC1IcAECbNiklzVTGFsZWUJGY="; }; build-system = [ @@ -42,20 +43,20 @@ buildPythonPackage rec { subprocess-tee ]; - preCheck = '' - export HOME=$(mktemp -d) - substituteInPlace test/test_runtime.py \ - --replace-fail "printenv" "${lib.getExe' coreutils "printenv"}" - ''; - nativeCheckInputs = [ ansible-core flaky pytest-mock pytest-instafail pytestCheckHook + writableTmpDirAsHomeHook ]; + preCheck = '' + substituteInPlace test/test_runtime.py \ + --replace-fail "printenv" "${lib.getExe' coreutils "printenv"}" + ''; + disabledTests = [ # require network "test_install_collection" @@ -74,6 +75,7 @@ buildPythonPackage rec { "test_runtime_example" "test_scan_sys_path" "test_upgrade_collection" + "test_ro_venv" ]; pythonImportsCheck = [ "ansible_compat" ];