mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +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
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Robert Sacks <robert@sacks.email>
|
|
# Maintainer: Robert Sacks <robert@sacks.email>
|
|
pkgname=py3-requests-mock
|
|
pkgver=1.10.0
|
|
pkgrel=1
|
|
pkgdesc="Mock out responses from the requests package"
|
|
url="https://pypi.org/project/requests-mock/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-requests py3-six"
|
|
makedepends="py3-setuptools py3-pbr"
|
|
checkdepends="py3-fixtures py3-mock py3-purl py3-pytest py3-sphinx py3-testrepository py3-testtools"
|
|
options="!check" # Requires unittest2
|
|
source="https://files.pythonhosted.org/packages/source/r/requests-mock/requests-mock-$pkgver.tar.gz"
|
|
builddir="$srcdir/requests-mock-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
sed -i 's/python/python3/' .testr.conf
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py testr
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
873c9b219e2a2360872fac22c83371ce40f4dee45e6a0d40365f4f551271c2168a662dced6e8baad890b1dadfc03d21d4ce013f149d25a42d998af4f4fca2a79 requests-mock-1.10.0.tar.gz
|
|
"
|