mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
# Contributor: TBK <alpine@jjtc.eu>
|
|
# Maintainer: TBK <alpine@jjtc.eu>
|
|
pkgname=py3-nose-timer
|
|
_pkgname=nose-timer
|
|
pkgver=1.0.1
|
|
pkgrel=6
|
|
pkgdesc="timer plugin for nosetests that answers the question: how much time does every test take?"
|
|
url="https://github.com/mahmoudimus/nose-timer/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-nose"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-coverage py3-mock py3-parameterized py3-termcolor py3-colorama"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mahmoudimus/nose-timer/archive/v$pkgver.tar.gz
|
|
assertEquals.patch
|
|
"
|
|
builddir="$srcdir/"$_pkgname-$pkgver
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
export FORCE_COLOR=1
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m nose
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
ee6b6378998db06892959056916750b094546cc2fbef32cfbdad9dd7b941c21d20eb31eab3f4a32de29b66ba5a33312dd97423778057eee24c861488c110afc7 py3-nose-timer-1.0.1.tar.gz
|
|
822f06d74be76170980076a2fca0336dea76b5988acc55528f688a1587f2fc454018bc7ae39098fd9f7da7348f69d91274d84c7d6e48235c171b50787b081bb4 assertEquals.patch
|
|
"
|