[arch-commits] Commit in python-ldap3/repos (2 files)

Jelle van der Waa jelle at archlinux.org
Sun Jul 1 11:54:03 UTC 2018


    Date: Sunday, July 1, 2018 @ 11:54:03
  Author: jelle
Revision: 349395

archrelease: copy trunk to community-staging-any

Added:
  python-ldap3/repos/community-staging-any/
  python-ldap3/repos/community-staging-any/PKGBUILD
    (from rev 349394, python-ldap3/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-ldap3/repos/community-staging-any/PKGBUILD (from rev 349394, python-ldap3/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-07-01 11:54:03 UTC (rev 349395)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-ldap3
+pkgname=(python-ldap3 python2-ldap3)
+pkgver=2.5
+pkgrel=2
+pkgdesc="A strictly RFC 4510 conforming LDAP V3 pure Python client library"
+url="https://github.com/cannatag/ldap3"
+license=('LGPL')
+arch=('any')
+makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/cannatag/ldap3/archive/v$pkgver.tar.gz")
+sha512sums=('c5ac00af528ff88ce0b56c6d9186d0c0561394e5262cf712d060c1c4217337e8d6c569d2caa1f748d76e0fffc90a9db2cc1135a317d045621fadba1f0de0c362')
+
+prepare() {
+  cp -a ldap3-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/ldap3-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/ldap3-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/ldap3-$pkgver
+  nosetests3 -s test || warning "Tests require a running LDAP server"
+
+  cd "$srcdir"/ldap3-$pkgver-py2
+  nosetests2 -s test || warning "Tests require a running LDAP server"
+}
+
+package_python-ldap3() {
+  depends=('python-pyasn1')
+
+  cd ldap3-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-ldap3() {
+  depends=('python2-pyasn1')
+
+  cd ldap3-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list