[arch-commits] Commit in python-amqp/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 06:15:27 UTC 2019
Date: Saturday, October 26, 2019 @ 06:15:26
Author: felixonmars
Revision: 520240
archrelease: copy trunk to community-staging-any
Added:
python-amqp/repos/community-staging-any/
python-amqp/repos/community-staging-any/PKGBUILD
(from rev 520238, python-amqp/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-amqp/repos/community-staging-any/PKGBUILD (from rev 520238, python-amqp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 06:15:26 UTC (rev 520240)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: mutantmonkey <aur at mutantmonkey.in>
+
+pkgbase=python-amqp
+pkgname=('python-amqp' 'python2-amqp')
+pkgver=2.5.2
+pkgrel=2
+pkgdesc="Low-level AMQP client for Python (fork of amqplib)"
+arch=('any')
+url="https://github.com/celery/py-amqp"
+license=('LGPL')
+makedepends=('python-vine' 'python2-vine')
+checkdepends=('python-case' 'python2-case' 'python-pytest-sugar' 'python2-pytest-sugar')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/celery/py-amqp/archive/$pkgver.tar.gz")
+sha512sums=('dfdc337552a0db86a717b1b2a1139eefb4c63c8204ead5e103edd32ffdcdbdfbb4f936acf02eb1cc1d7ff53cbfaa244e795772908e3845e6a2349e4888cc94dd')
+
+build() {
+ cd py-amqp-$pkgver
+ python setup.py build
+ python2 setup.py build
+}
+
+check() {
+ cd py-amqp-$pkgver
+ pytest
+ pytest2
+}
+
+package_python-amqp() {
+ depends=('python-vine')
+
+ cd py-amqp-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-amqp() {
+ depends=('python2-vine')
+
+ cd py-amqp-$pkgver
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list