blob: 82a2ced05f20dbbbe3c43db1fbd1751d37d8b70f (
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
35
36
|
# 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 --prefix=/usr --root="$pkgdir"
}
sha512sums="
873c9b219e2a2360872fac22c83371ce40f4dee45e6a0d40365f4f551271c2168a662dced6e8baad890b1dadfc03d21d4ce013f149d25a42d998af4f4fca2a79 requests-mock-1.10.0.tar.gz
"
|