Skip to content

Commit

Permalink
python-pygatt: update to 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellass committed Aug 6, 2024
1 parent db5b594 commit 4b76830
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 30 deletions.
4 changes: 2 additions & 2 deletions nvchecker.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
"url": "https://pypi.org/project/print-color/0.4.6/"
},
"python-pygatt": {
"version": "4.0.5",
"url": "https://pypi.org/project/pygatt/4.0.5/"
"version": "5.0.0",
"url": "https://pypi.org/project/pygatt/5.0.0/"
},
"ssllabs-scan": {
"version": "v1.5.0",
Expand Down
14 changes: 8 additions & 6 deletions python-pygatt/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
pkgbase = python-pygatt
pkgdesc = Python Bluetooth LE (Low Energy) and GATT Library
pkgver = 4.0.5
pkgrel = 4
pkgver = 5.0.0
pkgrel = 1
url = https://github.com/peplin/pygatt
arch = any
license = custom:partly Apache, partly MIT
checkdepends = python-mock
checkdepends = python-pytest
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
makedepends = python-nose
depends = python-pexpect
depends = python-pyserial
source = python-pygatt-4.0.5.tar.gz::https://github.com/peplin/pygatt/archive/refs/tags/v4.0.5.tar.gz
source = python-pygatt-5.0.0.tar.gz::https://github.com/peplin/pygatt/archive/refs/tags/v5.0.0.tar.gz
source = 0001-Remove-dependency-on-enum-compat.patch
sha256sums = fdfca26688b55f8d63800dbca6989bfbfff7796e0dcba3b020daffea34e9f224
sha256sums = 1485111d418ac0812751426bbbec76ef56f8d79b7740f41009f7f6cb7f2a1e1a
source = 0002-Relax-version-requirements.patch
sha256sums = 94d02ec4de32a81d1f5adc87664091a38e3cf0c2680dfe9b313c4de797e5e737
sha256sums = 3d73f29806f1ce8d9f37927b2c9243f2ec2fd783730708ad0e9d96afa0720e2c
sha256sums = 8928f19c185be8dc2ba4583c88cb3d1ae580667f2d902c50c72d95e1fdba6061

pkgname = python-pygatt
29 changes: 15 additions & 14 deletions python-pygatt/0001-Remove-dependency-on-enum-compat.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
From ebdee7042daa3262b9ae75b602fe491caae1ee09 Mon Sep 17 00:00:00 2001
From 5e3524df0d53c797d60785b5c158e9db91d48dd6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20La=C3=9F?= <[email protected]>
Date: Sun, 30 Jul 2023 11:40:40 +0200
Subject: [PATCH] Remove dependency on enum-compat
Subject: [PATCH 1/2] Remove dependency on enum-compat

For Python >=3.4, this package is a no-op.
---
setup.py | 1 -
1 file changed, 1 deletion(-)
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 2821752..66b55e2 100644
index 4d7f9a0..4668d93 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,6 @@ setup(
url='https://github.com/peplin/pygatt',
install_requires=[
'pyserial',
- 'enum-compat'
],
setup_requires=[
'coverage >= 3.7.1',
@@ -24,7 +24,7 @@ setup(
license="Apache 2.0 and MIT",
long_description=readme + "\n\n" + changelog,
url="https://github.com/peplin/pygatt",
- install_requires=["pyserial", "enum-compat"],
+ install_requires=["pyserial"],
setup_requires=["coverage == 5.5", "pytest == 8.3.2"],
extras_require={
"GATTTOOL": ["pexpect"],
--
2.41.0
2.46.0

25 changes: 25 additions & 0 deletions python-pygatt/0002-Relax-version-requirements.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From 06f20ccb9329bed7f3f18f7d8569e22c2690164f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20La=C3=9F?= <[email protected]>
Date: Tue, 6 Aug 2024 17:30:57 +0200
Subject: [PATCH 2/2] Relax version requirements

---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 4668d93..6ebf2fb 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
long_description=readme + "\n\n" + changelog,
url="https://github.com/peplin/pygatt",
install_requires=["pyserial"],
- setup_requires=["coverage == 5.5", "pytest == 8.3.2"],
+ setup_requires=["coverage >= 5.5", "pytest >= 8.3.2"],
extras_require={
"GATTTOOL": ["pexpect"],
},
--
2.46.0

19 changes: 11 additions & 8 deletions python-pygatt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,26 @@

pkgname=python-pygatt
_module=pygatt
pkgver=4.0.5
pkgrel=4
pkgver=5.0.0
pkgrel=1
pkgdesc="Python Bluetooth LE (Low Energy) and GATT Library"
url="https://github.com/peplin/pygatt"
license=('custom:partly Apache, partly MIT')
arch=('any')
depends=(python-pexpect python-pyserial)
makedepends=(python-build python-installer python-wheel python-nose)
checkdepends=(python-mock)
makedepends=(python-build python-installer python-wheel)
checkdepends=(python-mock python-pytest)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/peplin/${_module}/archive/refs/tags/v${pkgver}.tar.gz
0001-Remove-dependency-on-enum-compat.patch)
sha256sums=('fdfca26688b55f8d63800dbca6989bfbfff7796e0dcba3b020daffea34e9f224'
'1485111d418ac0812751426bbbec76ef56f8d79b7740f41009f7f6cb7f2a1e1a')
0001-Remove-dependency-on-enum-compat.patch
0002-Relax-version-requirements.patch)
sha256sums=('94d02ec4de32a81d1f5adc87664091a38e3cf0c2680dfe9b313c4de797e5e737'
'3d73f29806f1ce8d9f37927b2c9243f2ec2fd783730708ad0e9d96afa0720e2c'
'8928f19c185be8dc2ba4583c88cb3d1ae580667f2d902c50c72d95e1fdba6061')

prepare() {
cd "${srcdir}/${_module}-${pkgver}"
patch -p1 < "${srcdir}/0001-Remove-dependency-on-enum-compat.patch"
patch -p1 < "${srcdir}/0002-Relax-version-requirements.patch"
}

build() {
Expand All @@ -33,7 +36,7 @@ build() {

check() {
cd "${srcdir}/${_module}-${pkgver}"
nosetests
pytest
}

package() {
Expand Down

0 comments on commit 4b76830

Please sign in to comment.