mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-peewee
|
|
pkgver=3.16.0
|
|
pkgrel=0
|
|
pkgdesc="Small, expressive ORM"
|
|
url="https://github.com/coleifer/peewee"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="
|
|
cython
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
sqlite-dev
|
|
"
|
|
checkdepends="py3-psycopg2 py3-pytest-xdist"
|
|
source="py3-peewee-$pkgver.tar.gz::https://github.com/coleifer/peewee/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir"/peewee-$pkgver
|
|
options="!check" # requires a bunch of setup
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# recythonize
|
|
find . -name "*.c" -delete
|
|
}
|
|
|
|
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
|
|
testenv/bin/python3 -m pytest -n auto
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
f77a040831bd3189135196ede9748c92af9db21127839dfacd7712586273bdd22c688ca22bfa373805fa1b64f770b7cea850cba53e73f324f25ced1305830409 py3-peewee-3.16.0.tar.gz
|
|
"
|