python313Packages.gattlib: fix build against Python 3.13 (#372684)

This commit is contained in:
Sandro
2025-01-25 16:59:09 +01:00
committed by GitHub
@@ -2,36 +2,35 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
substituteAll,
# build
pkg-config,
glibc,
python,
# runtime
setuptools,
bluez,
boost,
glib,
}:
let
buildPythonPackage rec {
pname = "gattlib";
version = "unstable-2021-06-16";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
version = "20210616";
pyproject = true;
src = fetchFromGitHub {
owner = "oscaracena";
repo = "pygattlib";
rev = "7bdb229124fe7d9f4a2cc090277b0fdef82e2a56";
hash = "sha256-PS5DIH1JuH2HweyebLLM+UNFGY/XsjKIrsD9x7g7yMI=";
rev = "v.${version}";
hash = "sha256-n3D9CWKvgw4FYmbvsfhaHN963HARBG0p4CcZBC8Gkb0=";
};
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 =
@@ -42,6 +41,8 @@ buildPythonPackage {
})
];
build-system = [ setuptools ];
nativeBuildInputs = [
pkg-config
glibc