blob: 6723182f3d14a69193aec5b6f589934bfee9ee1b (
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
|
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-vcrpy
pkgver=4.2.1
pkgrel=1
pkgdesc="Automatically mock your HTTP interactions to simplify and speed up testing"
options="!check" # Tests fail on the builders
url="https://github.com/kevin1024/vcrpy"
arch="noarch"
license="MIT"
depends="py3-yarl py3-yaml py3-six py3-wrapt"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-httpbin"
source="https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-$pkgver.tar.gz"
builddir="$srcdir/vcrpy-$pkgver"
build() {
python3 setup.py build
}
check() {
# ssl errors when test_requests.py is run
python3 -m pytest --deselect=tests/integration/test_requests.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
ba8b85d397349e167d3ba6244581ef89db52f98c11c596107eeebfea687c0bf58a3ec264010f173901e00e37ac496bee0d59bb209be6ba702423da78bafca866 vcrpy-4.2.1.tar.gz
"
|