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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 20:25:11 UTC 2019


    Date: Saturday, October 26, 2019 @ 20:25:11
  Author: felixonmars
Revision: 520512

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aioresponses/repos/community-staging-any/PKGBUILD (from rev 520511, python-aioresponses/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 20:25:11 UTC (rev 520512)
@@ -0,0 +1,34 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-aioresponses
+pkgver=0.6.1
+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=('e1d397bf0aca459322cffa0fb07989c155d4a433c62600e5c995b21a259fb84a52e1f88fd5c8b544458a645d658651501e68cd7e81e215dac3762cab59b42cac')
+
+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