aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-vcrpy/APKBUILD
blob: 4f164c8cda5fb9795c934360651fb605c15bd458 (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
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-vcrpy
pkgver=4.1.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="221b1fbf4c6020550b97344561adcfaa796ba09bf23625a67678ee51f7c9118c58001af61282975a094aa828dc52510e113172be142c8801b441e437fc37a512  vcrpy-4.1.1.tar.gz"