mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +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
945 B
Text
30 lines
945 B
Text
# Contributor: Robert Sacks <robert@sacks.email>
|
|
# Maintainer: Robert Sacks <robert@sacks.email>
|
|
pkgname=py3-testresources
|
|
_pyname=testresources
|
|
pkgver=2.0.1
|
|
pkgrel=4
|
|
pkgdesc="A pyunit extension for managing expensive test resources"
|
|
url="https://launchpad.net/testresources"
|
|
arch="noarch"
|
|
license="Apache-2.0 OR BSD-3-Clause"
|
|
depends="python3"
|
|
makedepends="py3-setuptools py3-pbr"
|
|
checkdepends="py3-testtools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/testresources/tests/
|
|
}
|
|
|
|
sha512sums="0b23432b019400fe378e957d14a91083eef7fe1130a494b567a5274d69e4e8e09ab75861e5453c3f217507e144cf179c908f84dd1a807992d4bee0b8d32cb0f4 testresources-2.0.1.tar.gz"
|