mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +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
32 lines
975 B
Text
32 lines
975 B
Text
# 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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
ba8b85d397349e167d3ba6244581ef89db52f98c11c596107eeebfea687c0bf58a3ec264010f173901e00e37ac496bee0d59bb209be6ba702423da78bafca866 vcrpy-4.2.1.tar.gz
|
|
"
|