mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 14:56:53 +02:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
maintainer="Duncan Bellamy <dunk@denkimushi.com>"
|
|
pkgname=py3-pytest-home
|
|
pkgver=0.6.0
|
|
pkgrel=0
|
|
pkgdesc="Pytest fixtures for working with home directories"
|
|
url="https://github.com/jaraco/pytest-home"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-pytest"
|
|
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/jaraco/pytest-home/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-home-$pkgver"
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2b8d180296c01c6d428aa75aa7a5f3217f195d45400c8f14c6d9193c77df264a4f3932191b2ba551d1b6703bb00e40b4f5bec75d43e2e7b02c94617860761409 py3-pytest-home-0.6.0.tar.gz
|
|
"
|