Commit a9686895 authored by Robert Sacks's avatar Robert Sacks Committed by Leo

testing/py3-requests-mock: new aport

https://pypi.org/project/requests-mock/
Mock out responses from the requests package
parent 788049d0
# Contributor: Robert Sacks <robert@sacks.email>
# Maintainer: Robert Sacks <robert@sacks.email>
pkgname=py3-requests-mock
_pyname=requests-mock
pkgver=1.6.0
pkgrel=0
pkgdesc="Mock out responses from the requests package"
url="https://pypi.org/project/requests-mock/"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-requests py3-six"
makedepends="py3-pbr"
checkdepends="py3-fixtures py3-mock py3-purl py3-pytest py3-sphinx
py3-testrepository py3-testtools"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
prepare() {
sed -i 's/python/python3/' .testr.conf
}
build() {
python3 setup.py build
}
check() {
python3 setup.py testr
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="0271fb55270541a9c0ee549fe1599f1bcc1dcd8fe10d51fb40858a331d13b4ffba2440745b2344f751ac8dd808ee0581b075fff2bfde46f1b57cf65b53e13a55 requests-mock-1.6.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment