[arch-commits] Commit in python-pytest-httpx/repos (2 files)

Antonio Rojas arojas at gemini.archlinux.org
Sun Nov 21 12:52:00 UTC 2021


    Date: Sunday, November 21, 2021 @ 12:52:00
  Author: arojas
Revision: 1052960

archrelease: copy trunk to community-testing-any

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

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

Copied: python-pytest-httpx/repos/community-testing-any/PKGBUILD (from rev 1052959, python-pytest-httpx/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-11-21 12:52:00 UTC (rev 1052960)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-httpx
+pkgver=0.15.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')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-asyncio')
+source=("https://github.com/Colin-b/pytest_httpx/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('6ba9b31489ea01e37b13a145aa662b84848e4b28b26b3ef5c621dd02da6114bb1a61de6fef8e0c5877988d7d5361ef9b81be99383274f13bfb605c1e12a5f995')
+
+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.9/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:



More information about the arch-commits mailing list