summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5dc50493afc5b991af067a99515731fe687e2fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=python-fakeldap
pkgver=0.6.4
pkgrel=1
pkgdesc="LDAPObject implementation for mocking LDAP servers"
arch=('any')
url="https://github.com/zulip/fakeldap"
license=('BSD')
depends=('python-ldap')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-nose' 'python-coverage')
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/f/fakeldap/fakeldap-$pkgver.tar.gz")
sha256sums=('ac5ff6431998c080b7d94a5190dd6e1ba8e48bbcf19e9360669855950886e12b')

build() {
	cd "fakeldap-$pkgver"
	python -m build --wheel --no-isolation
}

check() {
	cd "fakeldap-$pkgver"
	nosetests
}

package() {
	export PYTHONHASHSEED=0
	cd "fakeldap-$pkgver"
	python -m installer --destdir="$pkgdir/" dist/*.whl
}