Date: Friday, April 7, 2023 @ 05:09:18
  Author: felixonmars
Revision: 1440592

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aioresponses/repos/community-staging-any/PKGBUILD (from rev 
1440590, python-aioresponses/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 05:09:18 UTC (rev 1440592)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-aioresponses
+pkgver=0.7.4
+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=('dcb387f5f04d5bb7c2795c5d6416e0346015eaff2b3809f5fe93eafa864d0fb0c92b8e8e2e3635e4032f76cc9119f772fc86582c4cbd9895caaf023a47075622')
+
+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
+}

Reply via email to