1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 20:55:20 +03:00
aports/testing/py3-pytest-helpers-namespace/APKBUILD
2023-04-25 07:05:15 +00:00

33 lines
1.1 KiB
Text

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pytest-helpers-namespace
pkgver=2021.12.29
pkgrel=1
pkgdesc="Pytest Helpers Namespace Plugin"
url="https://pytest-helpers-namespace.readthedocs.io/"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-pytest"
makedepends="py3-setuptools py3-setuptools_scm py3-setuptools-declarative-requirements"
subpackages="$pkgname-pyc"
source="https://github.com/saltstack/pytest-helpers-namespace/archive/refs/tags/v$pkgver/py3-pytest-helpers-namespace-$pkgver.tar.gz"
builddir="$srcdir/pytest-helpers-namespace-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python3 setup.py build
}
check() {
python3 -m venv --clear --without-pip --system-site-packages test-env
test-env/bin/python3 setup.py install
test-env/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
82c231ff11a36fce7b16a0ceea51c9306f7e05ca3f9e8cc7cc1c77ac9822f974d1ac893d2bf9b7154bf9593a529193daa041ccaaced6fdd9e38ba4f794f161b0 py3-pytest-helpers-namespace-2021.12.29.tar.gz
"