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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:48:25 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:48:25
  Author: felixonmars
Revision: 1059328

archrelease: copy trunk to community-staging-any

Added:
  python-aresponses/repos/community-staging-any/
  python-aresponses/repos/community-staging-any/PKGBUILD
    (from rev 1059327, python-aresponses/trunk/PKGBUILD)

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

Copied: python-aresponses/repos/community-staging-any/PKGBUILD (from rev 1059327, python-aresponses/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:48:25 UTC (rev 1059328)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aresponses
+pkgver=2.1.4
+pkgrel=2
+pkgdesc="Asyncio http mocking. Similar to the responses library used for 'requests'"
+url="https://github.com/circleup/aresponses"
+license=('MIT')
+arch=('any')
+depends=('python-aiohttp' 'python-pytest-asyncio')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov')
+source=("https://github.com/circleup/aresponses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('67a6bdfbb66a708eeb42e68bf617373072a9cbdc8d105c06ce098598704950cc6b8a8c2a9b9cd609efbd409996e172f56477e22e1896907d8f3a3a44310a9d9d')
+
+build() {
+  cd aresponses-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd aresponses-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd aresponses-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list