From ec9deef7026311458927aa327f5c088e35ec4bc1 Mon Sep 17 00:00:00 2001 From: Robert Sliwinski Date: Tue, 24 Feb 2026 20:45:17 +0100 Subject: [PATCH 1/2] ansible: 2.20.0 -> 2.20.3 Changelog: https://github.com/ansible/ansible/blob/v2.20.3/changelogs/CHANGELOG-v2.20.rst --- pkgs/development/python-modules/ansible/core.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index 8d47672ed5f9..b7b07ad5120a 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -32,7 +32,7 @@ buildPythonPackage rec { pname = "ansible-core"; - version = "2.20.0"; + version = "2.20.3"; pyproject = true; disabled = pythonOlder "3.12"; @@ -41,7 +41,7 @@ buildPythonPackage rec { owner = "ansible"; repo = "ansible"; tag = "v${version}"; - hash = "sha256-4kTBzDHDfdHR/W4edxrGtWhg6TRLMtdEgUZYcn8cFQg="; + hash = "sha256-WLfLbQYYJOdMHApNnFZYiET4es3z2SeeLP0jbrFqxrU="; }; # ansible_connection is already wrapped, so don't pass it through From 8a453ec3b4549d6cd4cad7d614a3cfb8e97b2b69 Mon Sep 17 00:00:00 2001 From: Robert Sliwinski Date: Sun, 8 Mar 2026 20:42:50 +0100 Subject: [PATCH 2/2] ansible: use finalAttrs instead of rec See https://github.com/NixOS/nixpkgs/issues/315337 --- pkgs/development/python-modules/ansible/core.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/ansible/core.nix b/pkgs/development/python-modules/ansible/core.nix index b7b07ad5120a..2851cef8ca6c 100644 --- a/pkgs/development/python-modules/ansible/core.nix +++ b/pkgs/development/python-modules/ansible/core.nix @@ -30,7 +30,7 @@ extraPackages ? _: [ ], }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ansible-core"; version = "2.20.3"; pyproject = true; @@ -40,7 +40,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "ansible"; repo = "ansible"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-WLfLbQYYJOdMHApNnFZYiET4es3z2SeeLP0jbrFqxrU="; }; @@ -102,7 +102,7 @@ buildPythonPackage rec { doCheck = false; meta = { - changelog = "https://github.com/ansible/ansible/blob/v${version}/changelogs/CHANGELOG-v${lib.versions.majorMinor version}.rst"; + changelog = "https://github.com/ansible/ansible/blob/v${finalAttrs.version}/changelogs/CHANGELOG-v${lib.versions.majorMinor finalAttrs.version}.rst"; description = "Radically simple IT automation"; homepage = "https://www.ansible.com"; license = lib.licenses.gpl3Plus; @@ -111,4 +111,4 @@ buildPythonPackage rec { robsliwi ]; }; -} +})