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 =