~sircmpwn/sr.ht-packages

sr.ht-pkgbuilds: python-pgpy: patch for cryptography 38.x compat v1 SUPERSEDED

Conrad Hoffmann: 1
 python-pgpy: patch for cryptography 38.x compat

 1 files changed, 10 insertions(+), 5 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-packages/patches/36348/mbox | git am -3
Learn more about email & git

[PATCH sr.ht-pkgbuilds] python-pgpy: patch for cryptography 38.x compat Export this patch

---
This is the same patch that was applied for the apkbuilds:
https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds/commit/2c13f37a

 python-pgpy/PKGBUILD | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/python-pgpy/PKGBUILD b/python-pgpy/PKGBUILD
index 7baa08a..408af2e 100644
--- a/python-pgpy/PKGBUILD
+++ b/python-pgpy/PKGBUILD
@@ -3,26 +3,31 @@

pkgname='python-pgpy'
pkgver=0.5.4
pkgrel=2
pkgrel=3
pkgdesc="Pretty Good Privacy for Python - a pure Python OpenPGP implementation."
arch=('any')
license=('BSD')
url="https://github.com/SecurityInnovation/PGPy"
depends=('python-cryptography>=2.6.0' 'python-six>=1.9.0' 'python-pyasn1')
makedepends=('python-setuptools')
source=("https://github.com/SecurityInnovation/PGPy/releases/download/v${pkgver}/PGPy-${pkgver}.tar.gz"{,.asc})
source=("https://github.com/SecurityInnovation/PGPy/releases/download/v${pkgver}/PGPy-${pkgver}.tar.gz"{,.asc}
	'cryptography.patch')
sha256sums=('bdd3da1e006fc8e81cc02232969924d6e8c98a4af1621a925d99bba09164183b'
            'SKIP')
            'SKIP'
            '27bab625ceabb46f4692d7e7962dc0b9ed11596b6b566f1d9896d13ee065c7eb')
sha384sums=('cecb31ab93e396ecb1daa63f0554d301042172f7ee827970bd732174433e46377e9628b0a7c4dd843378966cee0e660d'
            'SKIP')
            'SKIP'
            '82513be3e0ef903e0ef6abdbdf2dbf910f7f9ce260e260b5db3c23359d2ce80c6766267be5bb9760d551e5bb692ee410')
sha512sums=('bf19a72d5113cb88e6538d515a06a115a7f329ee1331553100140848226773db0a539a0cbe480f04b0f26cd587fc0c3c8e5fe392e2421d6e6210e86bd0ab70c1'
            'SKIP')
            'SKIP'
            '2c2db2238d9f171c795fc1e2d2ea96e92313cb2df045fbbd38f2d2642eae96e323637fbaa2528b1f9160138186c07dbfd8cfca7a179848dd5c39b3d63f20f6a4')
validpgpkeys=('D47C3D408FA78DC056409824F9676A5FF8CC4F96')

# TODO: Remove when https://github.com/SecurityInnovation/PGPy/pull/378 gets merged and released
prepare() {
    cd ${srcdir}/PGPy-${pkgver}
    sed -i '/wheel/d' setup.cfg
    patch --verbose -p1 < "$srcdir/cryptography.patch"
}

build() {
-- 
2.38.1
Looks like you forgot to add the patch file. Otherwise, the patch works
for me, thanks.