blob: 5cdaa69811e902255df04c1bb2317a13adceff0d (
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
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=py3-keyutils
pkgver=0.6
pkgrel=3
pkgdesc="python bindings for keyutils"
url="https://github.com/sassoftware/python-keyutils"
arch="all"
license="Apache-2.0"
depends="python3 keyutils"
makedepends="cython gettext keyutils-dev py3-setuptools python3-dev py3-pytest-runner"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/sassoftware/python-keyutils/archive/$pkgver.tar.gz"
builddir="$srcdir/python-keyutils-$pkgver"
# https://github.com/sassoftware/python-keyutils/issues/30
options="!check"
prepare() {
default_prepare
# fix python3 build by deleting stale .c file
rm keyutils/_keyutils.c
}
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
e282d553a644d9b38c6256e027ee553a123bf21e4222491e22699ca5bc5041dedc4e9a9a8c1bafa44985f3b1d5fafd85ded9ed5332b6d94d6c62f3fa6bcb6d0d py3-keyutils-0.6.tar.gz
"
|