From 8816ae8e9c492a2c5a205d7f1c4edfbba4fa6e70 Mon Sep 17 00:00:00 2001 From: Sizhe Zhao Date: Sun, 22 Jun 2025 14:11:21 +0800 Subject: [PATCH] barman: fix building with python 3.13 --- pkgs/by-name/ba/barman/package.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ba/barman/package.nix b/pkgs/by-name/ba/barman/package.nix index b2d1aab44320..5303f302fa88 100644 --- a/pkgs/by-name/ba/barman/package.nix +++ b/pkgs/by-name/ba/barman/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, python3Packages, versionCheckHook, nix-update-script, @@ -19,7 +20,14 @@ python3Packages.buildPythonApplication rec { hash = "sha256-ffedLH7b/Z1y+yL5EkFJIGdksQZEKc3uu3KOyNc2plw="; }; - patches = [ ./unwrap-subprocess.patch ]; + patches = [ + ./unwrap-subprocess.patch + # fix building with Python 3.13 + (fetchpatch2 { + url = "https://github.com/EnterpriseDB/barman/commit/931f997f1d73bbe360abbca737bea9ae93172989.patch?full_index=1"; + hash = "sha256-0aqyjsEabxLf4dpC4DeepmypAl7QfCedh7vy98iVifU="; + }) + ]; build-system = with python3Packages; [ distutils