From 4b768309c1a64b00ec11ccf10aa672275d243dbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20La=C3=9F?= Date: Tue, 6 Aug 2024 17:39:33 +0200 Subject: [PATCH] python-pygatt: update to 5.0.0 --- nvchecker.json | 4 +-- python-pygatt/.SRCINFO | 14 +++++---- ...001-Remove-dependency-on-enum-compat.patch | 29 ++++++++++--------- .../0002-Relax-version-requirements.patch | 25 ++++++++++++++++ python-pygatt/PKGBUILD | 19 +++++++----- 5 files changed, 61 insertions(+), 30 deletions(-) create mode 100644 python-pygatt/0002-Relax-version-requirements.patch diff --git a/nvchecker.json b/nvchecker.json index d7d96db..e992e42 100644 --- a/nvchecker.json +++ b/nvchecker.json @@ -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", diff --git a/python-pygatt/.SRCINFO b/python-pygatt/.SRCINFO index d172488..28d864e 100644 --- a/python-pygatt/.SRCINFO +++ b/python-pygatt/.SRCINFO @@ -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 diff --git a/python-pygatt/0001-Remove-dependency-on-enum-compat.patch b/python-pygatt/0001-Remove-dependency-on-enum-compat.patch index f4f0e1a..a211cb7 100644 --- a/python-pygatt/0001-Remove-dependency-on-enum-compat.patch +++ b/python-pygatt/0001-Remove-dependency-on-enum-compat.patch @@ -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?= 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 diff --git a/python-pygatt/0002-Relax-version-requirements.patch b/python-pygatt/0002-Relax-version-requirements.patch new file mode 100644 index 0000000..596bbb0 --- /dev/null +++ b/python-pygatt/0002-Relax-version-requirements.patch @@ -0,0 +1,25 @@ +From 06f20ccb9329bed7f3f18f7d8569e22c2690164f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20La=C3=9F?= +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 + diff --git a/python-pygatt/PKGBUILD b/python-pygatt/PKGBUILD index 9d9ccec..7b7b1c9 100644 --- a/python-pygatt/PKGBUILD +++ b/python-pygatt/PKGBUILD @@ -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() { @@ -33,7 +36,7 @@ build() { check() { cd "${srcdir}/${_module}-${pkgver}" - nosetests + pytest } package() {