mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
44 lines
1 KiB
Text
44 lines
1 KiB
Text
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
|
|
pkgname=py3-responses
|
|
pkgver=0.22.0
|
|
pkgrel=2
|
|
pkgdesc="Utility library for mocking out the requests Python library"
|
|
url="https://pypi.org/project/responses/"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-requests
|
|
py3-toml
|
|
py3-urllib3
|
|
"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="
|
|
py3-flake8
|
|
py3-pytest
|
|
py3-pytest-cov
|
|
py3-pytest-localserver
|
|
py3-werkzeug
|
|
"
|
|
source="https://github.com/getsentry/responses/archive/$pkgver/responses-$pkgver.tar.gz"
|
|
builddir="$srcdir/responses-$pkgver"
|
|
|
|
replaces=py-responses # Backwards compatibility
|
|
provides=py-responses=$pkgver-r$pkgrel # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest \
|
|
--ignore responses/tests/test_responses.py \
|
|
--ignore responses/tests/test_recorder.py
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
361e59e02df36fac0fb0ba2a070b730e485ec94fe90490c271e4ac86fae7954a551bf2486714d95c91e9d0b011f06a9d10b0d6408fd4d03234e1224cca1e9d0e responses-0.22.0.tar.gz
|
|
"
|