[arch-commits] Commit in python-ldap3/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 20:14:24 UTC 2019
Date: Friday, October 25, 2019 @ 20:14:22
Author: felixonmars
Revision: 519808
archrelease: copy trunk to community-staging-any
Added:
python-ldap3/repos/community-staging-any/
python-ldap3/repos/community-staging-any/PKGBUILD
(from rev 519807, python-ldap3/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: python-ldap3/repos/community-staging-any/PKGBUILD (from rev 519807, python-ldap3/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 20:14:22 UTC (rev 519808)
@@ -0,0 +1,50 @@
+# 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.6.1
+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=('ea33bc43c125d503160d6bf158adb7035d9c3916dbd77a3703a5870bb8628bc0f9d0850a6e32011a6b73beea3e129a18488ffe9e610a750812c0f1637fd36a31')
+
+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