Date: Thursday, April 6, 2023 @ 15:39:19
  Author: felixonmars
Revision: 1439426

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-httpx/repos/community-staging-any/
  python-pytest-httpx/repos/community-staging-any/PKGBUILD
    (from rev 1439424, python-pytest-httpx/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: python-pytest-httpx/repos/community-staging-any/PKGBUILD (from rev 
1439424, python-pytest-httpx/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 15:39:19 UTC (rev 1439426)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-httpx
+pkgver=0.21.3
+pkgrel=2
+pkgdesc='Send responses to httpx'
+arch=('any')
+license=('MIT')
+url='https://colin-b.github.io/pytest_httpx'
+depends=('python-httpx' 'python-pytest')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-asyncio')
+source=("https://github.com/Colin-b/pytest_httpx/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('8c25a702b9c049354a0f0b232eefeae5ac0c47764af023c89aba6829309971a1d79a0dab3e4d6275a6bf0f32f3a8309c9559eb22c9b742a6576ecea37ff0d15d')
+
+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
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  PYTHONPATH="$PWD/tmp_install/$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:

Reply via email to