mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
30 lines
932 B
Text
30 lines
932 B
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-pytest-freezegun
|
|
pkgver=0.4.2
|
|
pkgrel=1
|
|
pkgdesc="Wrap tests with fixtures in freeze_time"
|
|
url="https://github.com/ktosiek/pytest-freezegun"
|
|
license="MIT"
|
|
arch="noarch"
|
|
depends="python3 py3-freezegun py3-pytest"
|
|
makedepends="py3-setuptools"
|
|
source="$pkgname-$pkgver.zip::https://github.com/ktosiek/pytest-freezegun/archive/refs/tags/$pkgver.zip"
|
|
builddir="$srcdir/pytest-freezegun-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py install --root="$PWD/test_install"
|
|
PYTHONPATH="$(echo $PWD/test_install/usr/lib/python3*/site-packages)" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
fbbe8a2fa6dffb33d2042bdd96438f00f6bc4b8dac8f5b4b20363bb9946f4f8060ed359e1f2c26258e78a24e4bd305c89c854318a2f075ae71856f6e37c15bd1 py3-pytest-freezegun-0.4.2.zip
|
|
"
|