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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:47:42 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:47:42
  Author: foutrelis
Revision: 1059309

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aioresponses/repos/community-staging-any/PKGBUILD (from rev 1059307, python-aioresponses/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:47:42 UTC (rev 1059309)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aioresponses
+pkgver=0.7.2
+pkgrel=2
+pkgdesc="A helper to mock/fake web requests in python aiohttp package."
+url="https://github.com/pnuckowski/aioresponses"
+license=('MIT')
+arch=('any')
+depends=('python-aiohttp')
+makedepends=('python-pbr')
+checkdepends=('python-pytest-runner' 'python-ddt' 'python-asynctest')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pnuckowski/aioresponses/archive/$pkgver.tar.gz")
+sha512sums=('accd34f4781fd94080f2326053c1c3af0ca199007c7cffc2439ea1886df0750dc6216aa9d8f3d46cef46f8d7f4a7b0cdb51b20b1a85aa03b1e3d50f0510600a7')
+
+prepare() {
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd aioresponses-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd aioresponses-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd aioresponses-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list