mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 20:46:39 +02:00
52 lines
1.2 KiB
Text
52 lines
1.2 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=py3-marisa-trie
|
|
pkgver=1.2.1
|
|
pkgrel=0
|
|
pkgdesc="Static memory-efficient and fast Trie-like structures for Python"
|
|
url="https://github.com/kmike/marisa-trie"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="
|
|
py3-hypothesis
|
|
py3-pytest
|
|
py3-readme_renderer
|
|
"
|
|
source="https://pypi.python.org/packages/source/m/marisa_trie/marisa_trie-$pkgver.tar.gz"
|
|
builddir="$srcdir/marisa_trie-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
case "$CARCH" in
|
|
arm*)
|
|
.testenv/bin/python3 -m pytest \
|
|
--ignore tests/test_trie.py
|
|
# https://github.com/pytries/marisa-trie/issues/96
|
|
;;
|
|
*)
|
|
.testenv/bin/python3 -m pytest
|
|
;;
|
|
esac
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
dd40068aeb89fb453d5679b2deb4594f0d105f1685501dff295f32043405b952a5ebd57e4114b2f39b022a40f5d012e550af381ff1fafd5cf1fd1836e55bc65e marisa_trie-1.2.1.tar.gz
|
|
"
|