1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-ldap3/APKBUILD
2019-11-05 15:33:59 +00:00

32 lines
959 B
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=py3-ldap3
_pkgname=ldap3
pkgver=2.6.1
pkgrel=1
pkgdesc="A strictly RFC 4510 conforming LDAP V3 pure Python3 client"
url="https://github.com/cannatag/ldap3"
arch="noarch"
license="LGPL-3.0-or-later"
depends="python3 py3-asn1"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/cannatag/ldap3/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # tests need running LDAP server
replaces="py-ldap3" # Backwards compatibility
provides="py-ldap3=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="ea33bc43c125d503160d6bf158adb7035d9c3916dbd77a3703a5870bb8628bc0f9d0850a6e32011a6b73beea3e129a18488ffe9e610a750812c0f1637fd36a31 py3-ldap3-2.6.1.tar.gz"