Date: Thursday, September 22, 2022 @ 20:06:54
Author: felixonmars
Revision: 1309096
upgpkg: python-pytest-django 4.5.2-2: fix invalid buildtoolver in .BUILDINFO
Modified:
python-pytest-django/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-22 20:06:05 UTC (rev 1309095)
+++ PKGBUILD 2022-09-22 20:06:54 UTC (rev 1309096)
@@ -2,7 +2,7 @@
pkgname=python-pytest-django
pkgver=4.5.2
-pkgrel=1
+pkgrel=2
pkgdesc="A Django plugin for py.test"
arch=('any')
license=('BSD')
@@ -10,13 +10,19 @@
depends=('python-pytest')
makedepends=('python-setuptools-scm')
checkdepends=('python-django' 'python-pytest-xdist')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-django/archive/v$pkgver.tar.gz")
-sha512sums=('09ed5bfe850599e95190d9b15e9383d1249ea575a7b3921744583da6266dd2c8d3eb4f93c8de96d98e1a8e33d1639937470cdc6d11558fcaea57d014dce13500')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-django/archive/v$pkgver.tar.gz"
+
$pkgname-pytest-7.patch::https://github.com/pytest-dev/pytest-django/pull/996.patch)
+sha512sums=('09ed5bfe850599e95190d9b15e9383d1249ea575a7b3921744583da6266dd2c8d3eb4f93c8de96d98e1a8e33d1639937470cdc6d11558fcaea57d014dce13500'
+
'34768201cff7d0709a6a7cd885386f6381cfbc67d454a8b305cd9d2c8ab6c431e6c46ced3213f4dd6957a71200393e3d46a4520a46494e5f4f9576c795907a5b')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+prepare() {
+ patch -d pytest-django-$pkgver -p1 < $pkgname-pytest-7.patch
+}
+
build() {
- cd "$srcdir"/pytest-django-$pkgver
+ cd pytest-django-$pkgver
python setup.py build
}
@@ -23,7 +29,7 @@
check() {
# Hack entry points by installing it
- cd "$srcdir"/pytest-django-$pkgver
+ cd pytest-django-$pkgver
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD"
\
DJANGO_SETTINGS_MODULE=pytest_django_test.settings_sqlite \