Merge pull request #317507 from dawidd6/ansible-compat

python311Packages.ansible-compat: 4.1.11 -> 24.6.1
This commit is contained in:
Peder Bergebakken Sundt
2024-06-11 00:12:09 +02:00
committed by GitHub
@@ -3,6 +3,7 @@
buildPythonPackage,
fetchPypi,
ansible-core,
coreutils,
flaky,
pytest-mock,
pytestCheckHook,
@@ -15,14 +16,15 @@
buildPythonPackage rec {
pname = "ansible-compat";
version = "4.1.11";
version = "24.6.1";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.10";
src = fetchPypi {
inherit pname version;
hash = "sha256-s+n518OhzmIi3kROncb+zn66cKxk8qC+/cTi1UIBi0o=";
pname = "ansible_compat";
inherit version;
hash = "sha256-+T1MNH2OGQPCkkSUQcCamH1wNm+crfmv5eMtyKAZPKw=";
};
nativeBuildInputs = [
@@ -37,7 +39,8 @@ buildPythonPackage rec {
preCheck = ''
export HOME=$(mktemp -d)
export PATH=$PATH:$out/bin
substituteInPlace test/test_runtime.py \
--replace-fail "printenv" "${coreutils}/bin/printenv"
'';
nativeCheckInputs = [
@@ -58,7 +61,9 @@ buildPythonPackage rec {
"test_install_collection_dest"
"test_upgrade_collection"
"test_require_collection_no_cache_dir"
"test_runtime"
"test_runtime_has_playbook"
"test_runtime_plugins"
"test_scan_sys_path"
];
pythonImportsCheck = [ "ansible_compat" ];
@@ -68,6 +73,6 @@ buildPythonPackage rec {
homepage = "https://github.com/ansible/ansible-compat";
changelog = "https://github.com/ansible/ansible-compat/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ ];
maintainers = with maintainers; [ dawidd6 ];
};
}