[arch-commits] Commit in python-aresponses/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jan 6 18:08:15 UTC 2021
Date: Wednesday, January 6, 2021 @ 18:08:15
Author: felixonmars
Revision: 811255
archrelease: copy trunk to community-any
Added:
python-aresponses/repos/community-any/
python-aresponses/repos/community-any/PKGBUILD
(from rev 811254, python-aresponses/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-aresponses/repos/community-any/PKGBUILD (from rev 811254, python-aresponses/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2021-01-06 18:08:15 UTC (rev 811255)
@@ -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