archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-ldap3 / repos / community-any / PKGBUILD
blob1296c7825b905e9e0046533a831c97083c218f22
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
3 # Contributor: Kyle Keen <keenerd@gmail.com>
5 pkgname=python-ldap3
6 pkgver=2.9.1
7 pkgrel=4
8 pkgdesc="A strictly RFC 4510 conforming LDAP V3 pure Python client library"
9 url="https://github.com/cannatag/ldap3"
10 license=('LGPL')
11 arch=('any')
12 depends=('python-pyasn1')
13 makedepends=('python-setuptools')
14 checkdepends=('python-nose')
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/cannatag/ldap3/archive/v$pkgver.tar.gz")
16 sha512sums=('bf07ebca9a53a8c225bc3106d3bd45eb26557c6e5a3d6d45a7f8c149d938ad43825eed0d406a57b93e2e675ed7aa262828f022ab82eb683f0e3029e3ad823106')
18 build() {
19   cd "$srcdir"/ldap3-$pkgver
20   python setup.py build
23 check() {
24   cd "$srcdir"/ldap3-$pkgver
25   nosetests3 -s test || echo "Tests require a running LDAP server"
28 package() {
29   cd ldap3-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1