blob: 72d14296c9db0ea64591cf511d7a9180e80001ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-requests-mock
_pyname=requests-mock
pkgver=1.7.0
pkgrel=0
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-pbr"
checkdepends="py3-fixtures py3-mock py3-purl py3-pytest py3-sphinx
py3-testrepository py3-testtools"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
prepare() {
sed -i 's/python/python3/' .testr.conf
}
build() {
python3 setup.py build
}
check() {
python3 setup.py testr
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="6ad71fb87519f93812e8ae0d058a4b65a4492e86f05cacc37f95be1a6f0239a2c3f3d20a7e6f44bcc21f009574e4e78c2149394c2570d305efbdd68ec07b24a2 requests-mock-1.7.0.tar.gz"
|