From e9004165ee77df1ee4b5676e4e5b41902c0fb726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 10 Jan 2025 16:22:53 +0100 Subject: [PATCH] python313Packages.gattlib: fix build against Python 3.13 --- pkgs/development/python-modules/gattlib/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/gattlib/default.nix b/pkgs/development/python-modules/gattlib/default.nix index ed264beccb59..bb961a993a13 100644 --- a/pkgs/development/python-modules/gattlib/default.nix +++ b/pkgs/development/python-modules/gattlib/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, substituteAll, pkg-config, glibc, @@ -25,6 +26,11 @@ buildPythonPackage rec { }; patches = [ + # Fix build for Python 3.13 + (fetchpatch { + url = "https://github.com/oscaracena/pygattlib/commit/73a73b71cfc139e1e0a08816fb976ff330c77ea5.patch"; + hash = "sha256-/Y/CZNdN/jcxWroqRfdCH2rPUxZUbug668MIAow0scs="; + }) (substituteAll { src = ./setup.patch; boost_version =