mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-pytest-django
|
|
pkgver=4.5.2
|
|
pkgrel=0
|
|
pkgdesc="Django plugin for pytest"
|
|
url="https://pytest-django.readthedocs.io/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-pytest"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-xdist py3-django"
|
|
source="https://github.com/pytest-dev/pytest-django/archive/refs/tags/v$pkgver/py3-pytest-django-$pkgver.tar.gz
|
|
fix-test.patch
|
|
"
|
|
builddir="$srcdir/pytest-django-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages testenv
|
|
testenv/bin/python3 setup.py install
|
|
# needs pytest_django_test from project root
|
|
PYTHONPATH="$PWD" \
|
|
DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite_file \
|
|
testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
09ed5bfe850599e95190d9b15e9383d1249ea575a7b3921744583da6266dd2c8d3eb4f93c8de96d98e1a8e33d1639937470cdc6d11558fcaea57d014dce13500 py3-pytest-django-4.5.2.tar.gz
|
|
1e12f9b3feb64112e5fd0ab913e83d529aceeb2e9d955867de7f94a36b1ce4b8222e68a8c0c1232c90368605ed9f10fc7899ac9ee4547751d0a5a75ae1af501d fix-test.patch
|
|
"
|