[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Jan 6 18:08:04 UTC 2021


    Date: Wednesday, January 6, 2021 @ 18:08:03
  Author: felixonmars
Revision: 811254

addpkg: python-aresponses 2.0.2-1

Added:
  python-aresponses/
  python-aresponses/repos/
  python-aresponses/trunk/
  python-aresponses/trunk/PKGBUILD

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

Added: python-aresponses/trunk/PKGBUILD
===================================================================
--- python-aresponses/trunk/PKGBUILD	                        (rev 0)
+++ python-aresponses/trunk/PKGBUILD	2021-01-06 18:08:03 UTC (rev 811254)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aresponses
+pkgver=2.0.2
+pkgrel=1
+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')
+source=("https://github.com/circleup/aresponses/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('df79f79b5226fa26c51699086ad1354941a235f04b30b9f3eacaa7d10f1ab3c1e2c1a2ae9b75a4c89064ecb1d77eb8f713b5d84380e9d77297a9fc297a1e8d71')
+
+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