blob: ef5a6fa90538e9f23052c1269d88f598c6abd0a4 (
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
|
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-preshed
pkgver=3.0.8
pkgrel=0
pkgdesc="Cython hash tables that assume keys are pre-hashed"
url="https://github.com/explosion/preshed"
arch="all"
license="MIT"
depends="python3 py3-cymem py3-murmurhash"
makedepends="python3-dev py3-setuptools cython"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="preshed-$pkgver.tar.gz::https://github.com/explosion/preshed/archive/v$pkgver.tar.gz"
builddir="$srcdir/preshed-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 setup.py install --root="$PWD/tmp_install"
cd tmp_install/"$(python3 -c "import site; print(site.getsitepackages()[0])")"
PYTHONPATH="$PWD/usr/lib" \
pytest-3 preshed
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
sha512sums="
eff94c68fe7dd4ed111f384e2edaee2e6fd773dd7af69123da4f80c9fd3f84e46db0a90ca69efcb5a318e331431f5f8a4c0f8a1c8e7a3ac7af3b009aee9445ce preshed-3.0.8.tar.gz
"
|