mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Newbyte <newbyte@disroot.org>
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
|
pkgname=py3-pytest-toolbox
|
|
pkgver=0.4
|
|
pkgrel=0
|
|
pkgdesc="Numerous useful plugins for pytest"
|
|
url="https://github.com/samuelcolvin/pytest-toolbox"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-pytest-isort"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pydantic py3-pytest py3-pytest-timeout"
|
|
source="
|
|
$pkgname-v$pkgver.tar.gz::https://github.com/samuelcolvin/pytest-toolbox/archive/refs/tags/v$pkgver.tar.gz
|
|
yield-fixture.patch
|
|
"
|
|
builddir="$srcdir/pytest-toolbox-$pkgver/"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# Deselected tests require py3-pytest-toolbox to be installed
|
|
pytest -k "not caplog and not tmpworkdir"
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
ed27700ff77cd607be808142cc310cd2b7461e55b3f8352d304ef8ca6c5e6c060c67a63238a1025407868ab8e229c4a16eaaa56aa75000159762001accb67752 py3-pytest-toolbox-v0.4.tar.gz
|
|
168d8a74a3234c79d5d80a7a93243fcefd0453657d0ad6f640c83b581c8273d89886640a1311823f531affa1f336fffb502e8e3cc1b9bdd40b69e35ed1bded42 yield-fixture.patch
|
|
"
|