[arch-commits] Commit in python-paho-mqtt/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Nov 12 19:16:19 UTC 2020
Date: Thursday, November 12, 2020 @ 19:16:19
Author: felixonmars
Revision: 753397
archrelease: copy trunk to community-staging-any
Added:
python-paho-mqtt/repos/community-staging-any/
python-paho-mqtt/repos/community-staging-any/PKGBUILD
(from rev 753396, python-paho-mqtt/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-paho-mqtt/repos/community-staging-any/PKGBUILD (from rev 753396, python-paho-mqtt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 19:16:19 UTC (rev 753397)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Daichi Shinozaki <dsdseg at gmail.com>
+# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>
+
+pkgname=python-paho-mqtt
+pkgver=1.5.0
+pkgrel=2
+url="https://www.eclipse.org/paho/clients/python"
+pkgdesc="Python client library for MQTT v3.1 and v3.1.1"
+depends=('python')
+checkdepends=('python-pytest' 'python-pytest-runner')
+makedepends=('python-setuptools')
+license=('custom')
+arch=('any')
+source=(https://github.com/eclipse/paho.mqtt.python/archive/v${pkgver}.tar.gz)
+sha256sums=('ea614e07485dac28269ff390dbff4ad99629aa34bff231fc63240539b662b94a')
+
+prepare() {
+ cd paho.mqtt.python-${pkgver}
+ sed -i '/addopts/d' setup.cfg
+}
+
+build() {
+ cd paho.mqtt.python-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd paho.mqtt.python-${pkgver}
+ PYTHONPATH=$PWD/src pytest tests
+}
+
+package_python-paho-mqtt() {
+ cd paho.mqtt.python-${pkgver}
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
More information about the arch-commits
mailing list