[-- Attachment #1: Type: text/plain, Size: 1069 bytes --]
There is a new pull request by tornaria against master on the void-packages repository
https://github.com/tornaria/void-packages pybluez
https://github.com/void-linux/void-packages/pull/33626
python3-bluez: restore package, update to 0.23+20210920
Compilation with python 3.10 is fixed upstream as of 20210920.
This reverts commit 5957216.
Other changes
- update to 20210920; one could cherry pick the commits that fix the module for python 3.10, but it's more than one (37d7888 is enough to compile but there are other failures due to python 3.10 changes).
- remove python3-devel from hostmakedepends.
- add python3 to depends.
- add make_check=no ; there are no tests and setup.py test fails.
- adopt
#### General
- I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
I have a script to read the battery level from my BT headset and it works with this update. This the only way I know how to do it.
A patch file from https://github.com/void-linux/void-packages/pull/33626.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pybluez-33626.patch --]
[-- Type: text/x-diff, Size: 2569 bytes --]
From 9d36a0b8c9ebf18a5bcbdf8c94f6fa4381c96772 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 18 Oct 2021 18:04:34 -0300
Subject: [PATCH 1/2] python3-bluez: restore package, update to 0.23+20210920
Compilation with python 3.10 is fixed upstream as of 20210920.
This reverts commit 5957216b89b88d124a84e5d5045e183bf16a71aa.
Other changes
- update to 20210920; one could cherry pick the commits that fix the
module for python 3.10, but it's more than one (37d7888 is enough to
compile but there are other failures due to python 3.10 changes).
- remove python3-devel from hostmakedepends.
- add python3 to depends.
- add make_check=no ; there are no tests and setup.py test fails.
- adopt
---
srcpkgs/python3-bluez/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/python3-bluez/template
diff --git a/srcpkgs/python3-bluez/template b/srcpkgs/python3-bluez/template
new file mode 100644
index 000000000000..a379d137b27f
--- /dev/null
+++ b/srcpkgs/python3-bluez/template
@@ -0,0 +1,17 @@
+# Template file for 'python3-bluez'
+pkgname=python3-bluez
+version=0.23+20210920
+revision=1
+_commit=37d78880179b2a83e7052e0c2b9393499dd3b857
+wrksrc="pybluez-${_commit}"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+makedepends="python3-devel libbluetooth-devel"
+depends="python3"
+short_desc="Python3 wrapper for the BlueZ Bluetooth stack"
+maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
+license="GPL-2.0-or-later"
+homepage="https://pybluez.readthedocs.io"
+distfiles="https://github.com/pybluez/pybluez/archive/${_commit}.tar.gz"
+checksum=4201616ce976742fb756baba91197c89f57061d62009875cc9d6459fcacee0bb
+make_check=no # no tests and running setup.py test fails
From 6ba619ba398c209d4c6956c5868598d091966c58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= <tornaria@cmat.edu.uy>
Date: Mon, 18 Oct 2021 18:37:56 -0300
Subject: [PATCH 2/2] removed-packages: remove python3-bluez
... since the package has been restored.
---
srcpkgs/removed-packages/template | 1 -
1 file changed, 1 deletion(-)
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 3781b64247bc..953ea29523a4 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -258,7 +258,6 @@ replaces="
python-xlib<0.29_1
python3-Django<=3.0.7_2
python3-SPARQLWrapper<=1.8.4_4
- python3-bluez<=0.23_2
python3-grako<=3.99.9_7
python3-keepalive<=0.5_6
python3-pyPEG2<=2.15.2_7