Date: Sunday, October 18, 2020 @ 15:31:49 Author: felixonmars Revision: 726110
addpkg: python-pytest-httpx 0.10.0-1 Added: python-pytest-httpx/ python-pytest-httpx/repos/ python-pytest-httpx/trunk/ python-pytest-httpx/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Added: python-pytest-httpx/trunk/PKGBUILD =================================================================== --- python-pytest-httpx/trunk/PKGBUILD (rev 0) +++ python-pytest-httpx/trunk/PKGBUILD 2020-10-18 15:31:49 UTC (rev 726110) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <[email protected]> + +pkgname=python-pytest-httpx +pkgver=0.10.0 +pkgrel=1 +pkgdesc='Send responses to httpx' +arch=('any') +license=('MIT') +url='https://colin-b.github.io/pytest_httpx' +depends=('python-httpx' 'python-pytest') +checkdepends=('python-pytest-asyncio') +source=("https://github.com/Colin-b/pytest_httpx/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('e185784b85dbd11f5f058963af157a0f158f2e1db489afc38841273740a5bdc0741d69ac4ce02981e2987e24d45db1e5a4fd526077da2c2b7a9793eb0c474162') + +build() { + cd pytest_httpx-$pkgver + python setup.py build +} + +check() { + # Hack entry points by installing it + + cd pytest_httpx-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages:$PYTHONPATH" pytest +} + +package() { + cd pytest_httpx-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et:
