1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-pytest-httpbin/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
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
2023-01-10 04:19:31 +01:00

31 lines
992 B
Text

# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-pytest-httpbin
pkgver=2.0.0_rc1
pkgrel=0
pkgdesc="Easily test your HTTP library against a local copy of httpbin"
url="https://github.com/kevin1024/pytest-httpbin"
arch="noarch"
license="MIT"
depends="py3-httpbin py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-requests"
source="https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-${pkgver/_/}.tar.gz"
builddir="$srcdir/pytest-httpbin-${pkgver/_/}"
build() {
python3 setup.py build
}
check() {
# https://github.com/kevin1024/pytest-httpbin/issues/64
python3 -m pytest -k 'not test_redirect_location_is_https_for_secure_server'
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
7ba6248925566a664074ee4dd1c582e36a9ba909ff95b6a5717b486c0c75d0a11e6b109edc6acba1c70a3973751588a1fc797f91cafa416d89f6cbc360d2fa29 pytest-httpbin-2.0.0rc1.tar.gz
"