Skip to content

Commit

Permalink
Apply twisted/ldaptor#242 to fix breakage under Python >= 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
intelfx committed Apr 28, 2024
1 parent 3457a15 commit 12b4c35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = python-ldaptor
pkgdesc = LDAP server, client and utilities, using Twisted Python
pkgver = 21.2.0
pkgrel = 1
pkgrel = 2
url = https://github.com/twisted/ldaptor
arch = any
license = MIT
Expand All @@ -16,7 +16,9 @@ pkgbase = python-ldaptor
depends = python-zope-interface
source = python-ldaptor-21.2.0.tar.gz::https://github.com/twisted/ldaptor/archive/v21.2.0.tar.gz
source = fix-issue-838.patch
source = python-ldaptor-pull-242.patch::https://github.com/twisted/ldaptor/pull/242.patch
sha256sums = a9fb864aa141b65b8265bbb2760f13e6d0bf16a8ca6f5e2965f2392c5f4b86ba
sha256sums = 7054ddf990823ae4a2fae963e053a36f1662ab5875c425973e040119d65a9776
sha256sums = d81fd82dd80b46f4ebef67545a224c0db57898ca819c3262274744f0c96c0db7

pkgname = python-ldaptor
12 changes: 9 additions & 3 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=python-ldaptor
pkgver=21.2.0
pkgrel=1
pkgrel=2
pkgdesc='LDAP server, client and utilities, using Twisted Python'
license=('MIT')
arch=('any')
Expand All @@ -11,16 +11,22 @@ makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel
depends=('python-passlib' 'python-twisted' 'python-pyparsing' 'python-zope-interface')
checkdepends=('python-pyopenssl')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twisted/ldaptor/archive/v${pkgver}.tar.gz"
fix-issue-838.patch)
fix-issue-838.patch
"${pkgname}-pull-242.patch::https://github.com/twisted/ldaptor/pull/242.patch")
sha256sums=('a9fb864aa141b65b8265bbb2760f13e6d0bf16a8ca6f5e2965f2392c5f4b86ba'
'7054ddf990823ae4a2fae963e053a36f1662ab5875c425973e040119d65a9776')
'7054ddf990823ae4a2fae963e053a36f1662ab5875c425973e040119d65a9776'
'd81fd82dd80b46f4ebef67545a224c0db57898ca819c3262274744f0c96c0db7')

prepare() {
cd "ldaptor-${pkgver}"

# Workaround for issue #838 breaking tests
# https://github.com/twisted/ldaptor/issues/238#issue-1280142717
patch -Np1 -i "${srcdir}/fix-issue-838.patch"

# Apply #242 to fix breakage under Python >= 3.12
# https://github.com/twisted/ldaptor/pull/242
patch -Np1 -i "${srcdir}/${pkgname}-pull-242.patch"
}

build() {
Expand Down

0 comments on commit 12b4c35

Please sign in to comment.