testing/py3-pyscreeze: build with gpep517

This commit is contained in:
ptrcnull 2024-09-02 22:34:12 +02:00
parent 0b0db28c20
commit bc5c158ef1

View File

@ -3,32 +3,34 @@ pkgname=py3-pyscreeze
pkgver=0.1.29 pkgver=0.1.29
# no actual tags # no actual tags
_gitrev=2cf06466855260fb20982a813957e9452ce45c11 _gitrev=2cf06466855260fb20982a813957e9452ce45c11
pkgrel=2 pkgrel=3
pkgdesc="Simple, cross-platform screenshot module for Python 2 and 3" pkgdesc="Simple, cross-platform screenshot module for Python 2 and 3"
url="https://github.com/asweigart/pyscreeze" url="https://github.com/asweigart/pyscreeze"
arch="noarch" arch="noarch"
license="GPL-3.0-or-later" license="GPL-3.0-or-later"
depends="python3 py3-pillow py3-xlib scrot" depends="python3 py3-pillow py3-xlib scrot"
makedepends="py3-setuptools" makedepends="py3-setuptools py3-gpep517"
checkdepends="xvfb-run" checkdepends="xvfb-run"
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="$pkgname-$_gitrev.tar.gz::https://github.com/asweigart/pyscreeze/archive/$_gitrev.tar.gz" source="$pkgname-$_gitrev.tar.gz::https://github.com/asweigart/pyscreeze/archive/$_gitrev.tar.gz"
builddir="$srcdir/pyscreeze-$_gitrev" builddir="$srcdir/pyscreeze-$_gitrev"
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
} }
check() { check() {
PYTHONPATH="$PWD" \ python3 -m venv --clear --without-pip --system-site-packages .testenv
xvfb-run -a \ gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
python3 tests/test_pyscreeze.py xvfb-run -a .testenv/bin/python3 tests/test_pyscreeze.py
} }
package() { package() {
python3 setup.py install --skip-build --root="$pkgdir" gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
} }
sha512sums=" sha512sums="
cedf02941a0c3ba7018bb732de3c11206a0a88badd0531e78d0a636abf53df8bea15497205954ed2ef9d66eeff15ea263b6d7e34f4f103fe6542010de931fa32 py3-pyscreeze-2cf06466855260fb20982a813957e9452ce45c11.tar.gz cedf02941a0c3ba7018bb732de3c11206a0a88badd0531e78d0a636abf53df8bea15497205954ed2ef9d66eeff15ea263b6d7e34f4f103fe6542010de931fa32 py3-pyscreeze-2cf06466855260fb20982a813957e9452ce45c11.tar.gz
" "