mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
66 lines
1.5 KiB
Text
66 lines
1.5 KiB
Text
# Contributor: Steven Guikal <void@fluix.one>
|
|
# Maintainer: Steven Guikal <void@fluix.one>
|
|
pkgname=py3-sqlalchemy
|
|
pkgver=2.0.41
|
|
pkgrel=0
|
|
pkgdesc="object relational mapper for Python"
|
|
url="https://pypi.org/project/SQLAlchemy"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="
|
|
py3-greenlet
|
|
"
|
|
makedepends="
|
|
cython
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
"
|
|
checkdepends="
|
|
py3-mock
|
|
py3-mypy
|
|
py3-pytest
|
|
py3-pytest-xdist
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/S/SQLAlchemy/sqlalchemy-$pkgver.tar.gz"
|
|
builddir="$srcdir/sqlalchemy-$pkgver"
|
|
|
|
replaces="py-sqlalchemy" # Backwards compatibility
|
|
provides="py-sqlalchemy=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
# crashloops until it eventually passes, fixme
|
|
case "$CARCH" in
|
|
x86) options="$options !check" ;;
|
|
esac
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# we have a new enough python for every typing extension
|
|
grep -l -r 'typing_extensions' . \
|
|
| grep '.py' \
|
|
| xargs -n 1 -P ${JOBS:-1} sed -i 's|typing_extensions|typing|g'
|
|
}
|
|
|
|
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
|
|
# mypy plugin tests fail with mypy 1.14.x
|
|
.testenv/bin/python3 -m pytest -n auto -m "not mypy"
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
bb8df574a0e2a0faf8a44e8d217f9eb14b0138aaae7dd947c94b3c4efa6c73b2cf9199303ffed679778002804bc5aa5583b16ddd986f7b4b9235c9d951e284e4 sqlalchemy-2.0.41.tar.gz
|
|
"
|