From 57e82817c65016958aa9b38bfa64dd124cd0b9a3 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 5 Jun 2024 19:04:18 +0200 Subject: [PATCH] python311Packages.ansible-compat: 4.1.11 -> 24.6.1 --- .../python-modules/ansible-compat/default.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/ansible-compat/default.nix b/pkgs/development/python-modules/ansible-compat/default.nix index 77036d0cf8ef..493204c86738 100644 --- a/pkgs/development/python-modules/ansible-compat/default.nix +++ b/pkgs/development/python-modules/ansible-compat/default.nix @@ -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 ]; }; }