python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / python-ldap / template
blobf721ea521b4ace83ef650294a46bde43a03483ee
1 # Template file for 'python-ldap'
2 pkgname=python-ldap
3 version=3.1.0
4 revision=1
5 build_style=python-module
6 pycompile_module="ldap ldapurl.py ldif.py slapdtest"
7 hostmakedepends="python-setuptools python3-setuptools"
8 makedepends="python-devel python3-devel libldap-devel"
9 depends="python-pyasn1-modules"
10 short_desc="Python2 modules for implementing LDAP clients"
11 maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
12 license="Python-2.0"
13 homepage="https://www.python-ldap.org"
14 distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz"
15 checksum=41975e79406502c092732c57ef0c2c2eb318d91e8e765f81f5d4ab6c1db727c5
17 pre_build() {
18         sed -i "s:^libs = .*:libs = ldap_r lber sasl2 ssl crypto:" setup.cfg
21 python3-ldap_package() {
22         depends="python3-pyasn1-modules"
23         short_desc="${short_desc/Python2/Python3}"
24         pycompile_module="ldap ldapurl.py ldif.py slapdtest"
25         pkg_install() {
26                 vmove usr/lib/python3*
27         }