From patchwork Sun Mar 17 19:05:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grzegorz Blach X-Patchwork-Id: 1057564 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=blach.pl Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44Mq4b23sGz9s5c for ; Mon, 18 Mar 2019 06:24:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8F82186972; Sun, 17 Mar 2019 19:24:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u2B_IoV2oJ8m; Sun, 17 Mar 2019 19:24:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id EA46486B88; Sun, 17 Mar 2019 19:24:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 16AE41BF304 for ; Sun, 17 Mar 2019 19:24:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 100AA87068 for ; Sun, 17 Mar 2019 19:24:11 +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 0exOQEAEYY2q for ; Sun, 17 Mar 2019 19:24:09 +0000 (UTC) X-Greylist: delayed 00:17:01 by SQLgrey-1.7.6 Received: from 15.mo3.mail-out.ovh.net (15.mo3.mail-out.ovh.net [87.98.150.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8F17D86FBB for ; Sun, 17 Mar 2019 19:24:09 +0000 (UTC) Received: from player732.ha.ovh.net (unknown [10.109.160.62]) by mo3.mail-out.ovh.net (Postfix) with ESMTP id 85CF1203700 for ; Sun, 17 Mar 2019 20:07:05 +0100 (CET) Received: from blach.pl (public-gprs367810.centertel.pl [37.47.68.3]) (Authenticated sender: grzegorz@blach.pl) by player732.ha.ovh.net (Postfix) with ESMTPSA id 4C7583A461CB; Sun, 17 Mar 2019 19:07:00 +0000 (UTC) From: Grzegorz Blach To: buildroot@buildroot.org Date: Sun, 17 Mar 2019 20:05:40 +0100 Message-Id: <20190317190540.22423-2-grzegorz@blach.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190317190540.22423-1-grzegorz@blach.pl> References: <20190317190540.22423-1-grzegorz@blach.pl> MIME-Version: 1.0 X-Ovh-Tracer-Id: 11157949554541354654 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrheelgdduvdegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Subject: [Buildroot] [PATCH 2/2] package/python-redis: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Grzegorz Blach , Asaf Kahlon Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The Python interface to the Redis key-value store. https://github.com/andymccurdy/redis-py Signed-off-by: Grzegorz Blach --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-redis/Config.in | 6 ++++++ package/python-redis/python-redis.hash | 5 +++++ package/python-redis/python-redis.mk | 18 ++++++++++++++++++ 5 files changed, 31 insertions(+) create mode 100644 package/python-redis/Config.in create mode 100644 package/python-redis/python-redis.hash create mode 100644 package/python-redis/python-redis.mk diff --git a/DEVELOPERS b/DEVELOPERS index d0b29ce2cf..b9eee9720b 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -940,6 +940,7 @@ F: package/python-falcon/ F: package/python-hiredis/ F: package/python-mimeparse/ F: package/python-pigpio/ +F: package/python-redis/ F: package/python-wtforms/ N: Guillaume Gardet diff --git a/package/Config.in b/package/Config.in index 52f55c63df..26325fe7e4 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1011,6 +1011,7 @@ menu "External python modules" source "package/python-pyyaml/Config.in" source "package/python-pyzmq/Config.in" source "package/python-raven/Config.in" + source "package/python-redis/Config.in" source "package/python-reentry/Config.in" source "package/python-remi/Config.in" source "package/python-request-id/Config.in" diff --git a/package/python-redis/Config.in b/package/python-redis/Config.in new file mode 100644 index 0000000000..4143e1f1c1 --- /dev/null +++ b/package/python-redis/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_PYTHON_REDIS + bool "python-redis" + help + Python client for Redis key-value store. + + https://github.com/andymccurdy/redis-py diff --git a/package/python-redis/python-redis.hash b/package/python-redis/python-redis.hash new file mode 100644 index 0000000000..2c47881c7f --- /dev/null +++ b/package/python-redis/python-redis.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/redis/json +md5 7ca3cb7a2a71f376fc235590ec7056f8 redis-3.2.1.tar.gz +sha256 8ca418d2ddca1b1a850afa1680a7d2fd1f3322739271de4b704e0d4668449273 redis-3.2.1.tar.gz +# Locally computed sha256 checksums +sha256 790148d8c12f8a38b2707a74be2343316bad126995ff54801a181b8b231ba124 LICENSE diff --git a/package/python-redis/python-redis.mk b/package/python-redis/python-redis.mk new file mode 100644 index 0000000000..7bef7c2723 --- /dev/null +++ b/package/python-redis/python-redis.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# python-redis +# +################################################################################ + +PYTHON_REDIS_VERSION = 3.2.1 +PYTHON_REDIS_SOURCE = redis-$(PYTHON_REDIS_VERSION).tar.gz +PYTHON_REDIS_SITE = https://files.pythonhosted.org/packages/24/d4/06486dee0f66ef8c5080dc576fdfb33131fd2e0be3747f2be4e5634088a2 +PYTHON_REDIS_SETUP_TYPE = setuptools +PYTHON_REDIS_LICENSE = MIT +PYTHON_REDIS_LICENSE_FILES = LICENSE + +ifeq ($(BR2_PACKAGE_PYTHON_HIREDIS),y) +PYTHON_REDIS_DEPENDENCIES += python-hiredis +endif + +$(eval $(python-package))