mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-05-14 06:14:43 +02:00
50 lines
1.2 KiB
Text
50 lines
1.2 KiB
Text
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=py3-fixtures
|
|
pkgver=4.2.2
|
|
pkgrel=0
|
|
pkgdesc="Fixtures, reusable state for writing clean tests and more."
|
|
url="https://pypi.org/project/fixtures/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-pbr
|
|
python3
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-mock
|
|
py3-testtools
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/f/fixtures/fixtures-$pkgver.tar.gz"
|
|
builddir="$srcdir/fixtures-$pkgver"
|
|
options="!check" # py3-testtools depends on this
|
|
|
|
replaces="py-fixtures" # Backwards compatibility
|
|
provides="py-fixtures=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
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 testtools.run
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
fabb1092bee985d446e7f6eccb7f61d7e89a50b6fb98455d3ea6a45670568a4200fd57409ab78edf288c4103c45f5bf0bd62fc9886a6f9101c1d626078b1fb38 fixtures-4.2.2.tar.gz
|
|
"
|