mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 21:04:46 +02:00
47 lines
1.8 KiB
Text
47 lines
1.8 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=py3-pytest-postgresql
|
|
_pkgname=pytest-postgresql
|
|
pkgver=7.0.2
|
|
pkgrel=0
|
|
pkgdesc="Postgresql fixtures and fixture factories for Pytest."
|
|
url="https://pypi.org/project/pytest-postgresql/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-pytest py3-port-for py3-psycopg py3-mirakuru postgresql16"
|
|
makedepends="py3-setuptools py3-wheel py3-gpep517"
|
|
checkdepends="py3-pytest-cov py3-pytest-xdist"
|
|
subpackages="$pkgname-pyc"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/ClearcodeHQ/pytest-postgresql/archive/refs/tags/v$pkgver.tar.gz
|
|
parser_set-pgctl-location-to-bin.patch
|
|
test_do-not-reimport-plugin.patch
|
|
"
|
|
builddir="$srcdir"/$_pkgname-$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
|
|
# tests/docker: requires a working docker daemon
|
|
# test_postgres_loader_in_ini: test unit passes manually
|
|
.testenv/bin/python3 -m pytest -v \
|
|
--ignore tests/docker \
|
|
--deselect tests/test_postgres_options_plugin.py::test_postgres_loader_in_ini
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
3cc682b2b2aa6ba2ea1eae8b65683ed6205459e8fee3410d809fd47ce0afdb3388121b5903a7fbea1d925c81d41b965dd5a36d0ccddacad1f6df0d86c34958e5 py3-pytest-postgresql-7.0.2.tar.gz
|
|
d789615c9b4fce2890873815450fb6d98e6dc9e37a0ddc6cd75d2d03dadc60d062ffea966e9ca0376655d7785e309ba4d3a73f01276fc7c4f8c58f145eb45ea8 parser_set-pgctl-location-to-bin.patch
|
|
553ba894d2828ab9f48e81cb4717c8ceda83409b7d397551192068e5f4261ec15fa3bacc25a319c41a2ee8a8baebd35f55b3d8e9ae1556cd073cee3e7a536e8b test_do-not-reimport-plugin.patch
|
|
"
|