Package Details: python-gatt 0.2.7-3

Git Clone URL: https://aur.archlinux.org/python-gatt.git (read-only, click to copy)
Package Base: python-gatt
Description: Bluetooth GATT SDK for Python helps you implementing and communicating with any Bluetooth Low Energy device that has a GATT profile
Upstream URL: https://github.com/getsenic/gatt-python
Keywords: ble bluetooth gatt lib python
Licenses: MIT
Submitter: GI_Jack
Maintainer: GI_Jack
Last Packager: GI_Jack
Votes: 2
Popularity: 0.000000
First Submitted: 2021-04-16 21:28 (UTC)
Last Updated: 2023-05-14 03:05 (UTC)

Latest Comments

yochananmarqos commented on 2023-08-15 14:34 (UTC)

@leinher: This does not depend on python-coverage and builds just fine without it.

leinher commented on 2023-08-15 12:48 (UTC) (edited on 2023-08-15 12:50 (UTC) by leinher)

I was not able to install this package with with yay.

Fixing a dependency of python-coverage worked for me.

See attached patch:
From 3c32b629385f24b70ec33e6f18e3051d2dab95d1 Mon Sep 17 00:00:00 2001
From: Hermann Leinweber <hermann.leinweber@stud.tu-darmstadt.de>
Date: Tue, 15 Aug 2023 14:31:47 +0200
Subject: [PATCH] Add dependency for python-coverage after failed install
 attempt

---
 PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 8286e05..6803439 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ pkgdesc="Bluetooth GATT SDK for Python helps you implementing and communicating
 url="https://github.com/getsenic/gatt-python"
 arch=('any')
 license=('MIT')
-depends=('python' 'bluez' 'python-gobject')
+depends=('python' 'bluez' 'python-gobject' 'python-coverage')
 makedepends=('python-build' 'python-installer' 'python-wheel')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
 sha256sums=('626d9de24a178b6eaff78c31b0bd29f962681da7caf18eb20363f6288d014e3a')
-- 
2.41.0

whynothugo commented on 2022-08-03 09:10 (UTC)

A dependency is missing and importing gatt crashes due to missing gi.

Here's a patch:

diff --git a/.SRCINFO b/.SRCINFO
index 0855b59..30833d3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,15 @@
-# Generated by mksrcinfo(replacement shim) v8
-# Fri Apr 16 05:30:58 PM EDT 2021
 pkgbase = python-gatt
    pkgdesc = Bluetooth GATT SDK for Python helps you implementing and communicating with any Bluetooth Low Energy device that has a GATT profile
    pkgver = 0.2.7
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/getsenic/gatt-python
    arch = any
    license = MIT
    makedepends = python-setuptools
    depends = python
    depends = bluez
+   depends = python-gobject
    source = https://files.pythonhosted.org/packages/source/g/gatt/gatt-0.2.7.tar.gz
    sha256sums = 626d9de24a178b6eaff78c31b0bd29f962681da7caf18eb20363f6288d014e3a

 pkgname = python-gatt
-
diff --git a/PKGBUILD b/PKGBUILD
index 30a8375..4490316 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,12 @@
 pkgname=python-gatt
 _pkgname=gatt
 pkgver=0.2.7
-pkgrel=1
+pkgrel=2
 pkgdesc="Bluetooth GATT SDK for Python helps you implementing and communicating with any Bluetooth Low Energy device that has a GATT profile"
 url="https://github.com/getsenic/gatt-python"
 arch=('any')
 license=('MIT')
-depends=('python' 'bluez')
+depends=('python' 'bluez' 'python-gobject')
 makedepends=('python-setuptools')
 source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
 sha256sums=('626d9de24a178b6eaff78c31b0bd29f962681da7caf18eb20363f6288d014e3a')