# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=py3-pyldap _pkgname=python-ldap pkgver=3.4.3 pkgrel=2 pkgdesc="Python modules for implementing LDAP clients" url="https://github.com/python-ldap/python-ldap" arch="all" license="Python-2.0 AND MIT" depends="py3-asn1 py3-asn1-modules" checkdepends=" openldap openldap-back-mdb openldap-clients openldap-overlay-syncprov " makedepends="python3-dev py3-setuptools openldap-dev" replaces="py-pyldap" provides="py-pyldap=$pkgver-r$pkgrel" subpackages="$pkgname-pyc" source="https://github.com/$_pkgname/$_pkgname/archive/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$_pkgname-$pkgver" case "$CARCH" in # FIXME: Some tests fail. s390x) options="!check";; esac build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" a52403b7d9fc4d114b995640ff34f5aefd313d36cea5ff6de73ea9f46036694ebd43cd9d11382daf3be9da887f62c6675b49d684c05a7d5f0c93d446b16d1981 python-ldap-3.4.3.tar.gz "