1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/py3-pytest-subprocess/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

45 lines
1.1 KiB
Text

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=py3-pytest-subprocess
_pyname=${pkgname#py3-}
pkgver=1.4.2
pkgrel=0
pkgdesc="Pytest plugin to fake subprocess"
url="https://github.com/aklajnert/pytest-subprocess"
arch="noarch"
license="MIT"
depends="python3 py3-pytest"
makedepends="py3-setuptools"
checkdepends="
py3-anyio
py3-docutils
py3-pygments
py3-pytest-asyncio
py3-pytest-rerunfailures
"
source="$pkgname-$pkgver.tar.gz::https://github.com/aklajnert/pytest-subprocess/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
case "$CARCH" in
armhf|ppc64le)
# py3-uvloop -> py3-anyio not available
options="!check" ;;
esac
build() {
python3 setup.py build
}
check() {
python3 -m venv --system-site-packages test-env
test-env/bin/python3 setup.py install
test-env/bin/python3 -m pytest \
-W "ignore:There is no current event loop:DeprecationWarning"
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
ad61d583ab4758a0986a84de6552542c65edd33d84c4cc46f9a86048e323a6d34e46c593e285e65154b7bc88a89f5e0581b14be0f86ec95dfd2800d7a889b314 py3-pytest-subprocess-1.4.2.tar.gz
"