From patchwork Wed Dec 30 08:13:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Viti X-Patchwork-Id: 561714 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id CBC0A140BE2 for ; Wed, 30 Dec 2015 19:13:11 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=qoVutXs/; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6F3C1917B1; Wed, 30 Dec 2015 08:13:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7sB1Gk2l2WL7; Wed, 30 Dec 2015 08:13:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 37BF99175E; Wed, 30 Dec 2015 08:13:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id C2D121C11E8 for ; Wed, 30 Dec 2015 08:13:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BF87594C0A for ; Wed, 30 Dec 2015 08:13:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 967LT75jhWlN for ; Wed, 30 Dec 2015 08:13:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by hemlock.osuosl.org (Postfix) with ESMTPS id 426B894C04 for ; Wed, 30 Dec 2015 08:13:03 +0000 (UTC) Received: by mail-wm0-f52.google.com with SMTP id f206so30320451wmf.0 for ; Wed, 30 Dec 2015 00:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=rMbv4tN6lT/sbwEonWy4WNXPPp49bdz+E+8scvQdjv4=; b=qoVutXs/sXoHWOyMszvy/nRZtH4GZ4DT/HgzOPQIsZH7iyYArBMEoyEW1VO7j+8yqm ugkEpIilzeYDHlbpj5aglg1gEP/iNgVDK82wYK2JSfI+X3K2cNATr91WL4U2GI7gJ3RG Cqs2wjdmFDKZHcnNvEh9ZJNA+qcKv2d6shxgXI9+FfZB6JhN8JFRv2gicFM0PgJCDhBR EeOibhTgHt+T7EN2bHGotgF0pBQAOtP7FPuGrUUV/cvY59vtI4srzz/Srkf35qDAPupa 13pyAhqtmTd8kB/f2T/Y/R0jRUtg1QiSpjpj1aY29USQ43U02OPGRiQBUs7eG+a2VAcT E5Ug== X-Received: by 10.28.50.193 with SMTP id y184mr72997973wmy.26.1451463181695; Wed, 30 Dec 2015 00:13:01 -0800 (PST) Received: from slurp.zinosat.dyndns.org ([151.16.2.74]) by smtp.googlemail.com with ESMTPSA id z17sm64556267wjq.1.2015.12.30.00.13.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Dec 2015 00:13:01 -0800 (PST) From: Davide Viti To: buildroot@buildroot.org Date: Wed, 30 Dec 2015 09:13:27 +0100 Message-Id: <1451463207-2630-1-git-send-email-zinosat@tiscali.it> X-Mailer: git-send-email 2.1.4 Cc: Davide Viti Subject: [Buildroot] [PATCHv3] python-paho-mqtt: add new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Reviewed-by: Yegor Yefremov Signed-off-by: Davide Viti v1 -> v2: - Provide official md5 (suggested by Yegor Yefremov) - Reword package description (suggested by Thomas Petazzoni) - Use "distutils" setup type (suggested by Yegor Yefremov) - Add "depends on BR2_PACKAGE_PYTHON" in Config.in - Test with Python3 (suggested by Yegor Yefremov) v2 -> v3: - Remove dependency on BR2_PACKAGE_PYTHON since the package builds fine against Python 3 (suggested by Yegor Yefremov) --- package/Config.in | 1 + package/python-paho-mqtt/Config.in | 9 +++++++++ package/python-paho-mqtt/python-paho-mqtt.hash | 3 +++ package/python-paho-mqtt/python-paho-mqtt.mk | 14 ++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 package/python-paho-mqtt/Config.in create mode 100644 package/python-paho-mqtt/python-paho-mqtt.hash create mode 100644 package/python-paho-mqtt/python-paho-mqtt.mk diff --git a/package/Config.in b/package/Config.in index dd44743..aab1958 100644 --- a/package/Config.in +++ b/package/Config.in @@ -659,6 +659,7 @@ menu "External python modules" source "package/python-networkmanager/Config.in" source "package/python-nfc/Config.in" source "package/python-numpy/Config.in" + source "package/python-paho-mqtt/Config.in" source "package/python-pam/Config.in" source "package/python-posix-ipc/Config.in" source "package/python-protobuf/Config.in" diff --git a/package/python-paho-mqtt/Config.in b/package/python-paho-mqtt/Config.in new file mode 100644 index 0000000..79d8b33 --- /dev/null +++ b/package/python-paho-mqtt/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_PYTHON_PAHO_MQTT + bool "python-paho-mqtt" + help + The Paho Python Client provides a client class with support + for both MQTT v3.1 and v3.1.1 on Python 2.7 or 3.x. It also + provides some helper functions to make publishing messages + to an MQTT server very straightforward. + + https://pypi.python.org/pypi/paho-mqtt diff --git a/package/python-paho-mqtt/python-paho-mqtt.hash b/package/python-paho-mqtt/python-paho-mqtt.hash new file mode 100644 index 0000000..52729cc --- /dev/null +++ b/package/python-paho-mqtt/python-paho-mqtt.hash @@ -0,0 +1,3 @@ +# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=a6407b74eb5e5411e157be1de5c11366, sha256 locally computed +md5 a6407b74eb5e5411e157be1de5c11366 paho-mqtt-1.1.tar.gz +sha256 0f7a629efe6e3a2c61b59d3550aa9f2c4529b5689a65fde45e6f1ac36b9a261e paho-mqtt-1.1.tar.gz diff --git a/package/python-paho-mqtt/python-paho-mqtt.mk b/package/python-paho-mqtt/python-paho-mqtt.mk new file mode 100644 index 0000000..01da2b3 --- /dev/null +++ b/package/python-paho-mqtt/python-paho-mqtt.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-paho-mqtt +# +################################################################################ + +PYTHON_PAHO_MQTT_VERSION = 1.1 +PYTHON_PAHO_MQTT_SOURCE = paho-mqtt-$(PYTHON_PAHO_MQTT_VERSION).tar.gz +PYTHON_PAHO_MQTT_SITE = https://pypi.python.org/packages/source/p/paho-mqtt +PYTHON_PAHO_MQTT_LICENSE = EPLv1.0 or EDLv1.0 +PYTHON_PAHO_MQTT_LICENSE_FILES = LICENSE.txt edl-v10 epl-v10 +PYTHON_PAHO_MQTT_SETUP_TYPE = distutils + +$(eval $(python-package))