python313Packages.ansible-compat: 25.1.2 -> 25.1.5

This commit is contained in:
emaryn
2025-04-15 06:56:52 +08:00
parent 1333865d9e
commit c96f661c08
@@ -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" ];