Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython
@ 2018-08-30 10:18 Grzegorz Blach
  2018-08-30 10:18 ` [Buildroot] [PATCH 2/2] python-pyjwt: new package Grzegorz Blach
  2018-09-01 12:58 ` [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython Thomas Petazzoni
  0 siblings, 2 replies; 4+ messages in thread
From: Grzegorz Blach @ 2018-08-30 10:18 UTC (permalink / raw)
  To: buildroot

Falcon can be compiled into shared objects using Cython.
Compiled version works much faster than pure-python one.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 package/python-falcon/python-falcon.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/python-falcon/python-falcon.mk b/package/python-falcon/python-falcon.mk
index 106387f96f..b724ffadbe 100644
--- a/package/python-falcon/python-falcon.mk
+++ b/package/python-falcon/python-falcon.mk
@@ -11,4 +11,8 @@ PYTHON_FALCON_SETUP_TYPE = setuptools
 PYTHON_FALCON_LICENSE = Apache-2.0
 PYTHON_FALCON_LICENSE_FILES = LICENSE
 
+ifeq ($(BR2_PACKAGE_HOST_PYTHON_CYTHON),y)
+PYTHON_FALCON_DEPENDENCIES += host-python-cython
+endif
+
 $(eval $(python-package))
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] python-pyjwt: new package
  2018-08-30 10:18 [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython Grzegorz Blach
@ 2018-08-30 10:18 ` Grzegorz Blach
  2019-03-26 23:53   ` Arnout Vandecappelle
  2018-09-01 12:58 ` [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython Thomas Petazzoni
  1 sibling, 1 reply; 4+ messages in thread
From: Grzegorz Blach @ 2018-08-30 10:18 UTC (permalink / raw)
  To: buildroot

PyJWT is a Python library which allows you to encode and decode
JSON Web Tokens (JWT). JWT is an open, industry-standard (RFC 7519)
for representing claims securely between two parties.

https://github.com/jpadilla/pyjwt

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                             |  1 +
 package/Config.in                      |  1 +
 package/python-pyjwt/Config.in         |  6 ++++++
 package/python-pyjwt/python-pyjwt.hash |  5 +++++
 package/python-pyjwt/python-pyjwt.mk   | 14 ++++++++++++++
 5 files changed, 27 insertions(+)
 create mode 100644 package/python-pyjwt/Config.in
 create mode 100644 package/python-pyjwt/python-pyjwt.hash
 create mode 100644 package/python-pyjwt/python-pyjwt.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index bd8095bd20..62c64edd49 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -879,6 +879,7 @@ F:	package/sofia-sip/
 N:	Grzegorz Blach <grzegorz@blach.pl>
 F:	package/python-falcon/
 F:	package/python-mimeparse/
+F:	package/python-pyjwt/
 
 N:	Guillaume Gardet <guillaume.gardet@oliseo.fr>
 F:	package/c-icap/
diff --git a/package/Config.in b/package/Config.in
index 66f303ec58..6ac322f146 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -919,6 +919,7 @@ menu "External python modules"
 	source "package/python-pygments/Config.in"
 	source "package/python-pyicu/Config.in"
 	source "package/python-pyinotify/Config.in"
+	source "package/python-pyjwt/Config.in"
 	source "package/python-pylibftdi/Config.in"
 	source "package/python-pylru/Config.in"
 	source "package/python-pymodbus/Config.in"
diff --git a/package/python-pyjwt/Config.in b/package/python-pyjwt/Config.in
new file mode 100644
index 0000000000..510875ce2f
--- /dev/null
+++ b/package/python-pyjwt/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_PYJWT
+	bool "python-pyjwt"
+	help
+	  JSON Web Token implementation in Python.
+
+	  http://github.com/jpadilla/pyjwt
diff --git a/package/python-pyjwt/python-pyjwt.hash b/package/python-pyjwt/python-pyjwt.hash
new file mode 100644
index 0000000000..2fa5175c01
--- /dev/null
+++ b/package/python-pyjwt/python-pyjwt.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/pyjwt/json
+md5	2731c6b66b67b95d1944f072f5fa35a9  PyJWT-1.6.4.tar.gz
+sha256	4ee413b357d53fd3fb44704577afac88e72e878716116270d722723d65b42176  PyJWT-1.6.4.tar.gz
+# Locally computed sha256 checksums
+sha256	ec82af815b5f9da8685afb300cc5beb7949e1c22b79b6c1c054796cefdf6cac6  LICENSE
diff --git a/package/python-pyjwt/python-pyjwt.mk b/package/python-pyjwt/python-pyjwt.mk
new file mode 100644
index 0000000000..18b7976b19
--- /dev/null
+++ b/package/python-pyjwt/python-pyjwt.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pyjwt
+#
+################################################################################
+
+PYTHON_PYJWT_VERSION = 1.6.4
+PYTHON_PYJWT_SOURCE = PyJWT-$(PYTHON_PYJWT_VERSION).tar.gz
+PYTHON_PYJWT_SITE = https://files.pythonhosted.org/packages/00/5e/b358c9bb24421e6155799d995b4aa3aa3307ffc7ecae4ad9d29fd7e07a73
+PYTHON_PYJWT_SETUP_TYPE = setuptools
+PYTHON_PYJWT_LICENSE = MIT
+PYTHON_PYJWT_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython
  2018-08-30 10:18 [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython Grzegorz Blach
  2018-08-30 10:18 ` [Buildroot] [PATCH 2/2] python-pyjwt: new package Grzegorz Blach
@ 2018-09-01 12:58 ` Thomas Petazzoni
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2018-09-01 12:58 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 30 Aug 2018 12:18:47 +0200, Grzegorz Blach wrote:
> Falcon can be compiled into shared objects using Cython.
> Compiled version works much faster than pure-python one.
> 
> Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
> ---
>  package/python-falcon/python-falcon.mk | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to next, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] python-pyjwt: new package
  2018-08-30 10:18 ` [Buildroot] [PATCH 2/2] python-pyjwt: new package Grzegorz Blach
@ 2019-03-26 23:53   ` Arnout Vandecappelle
  0 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2019-03-26 23:53 UTC (permalink / raw)
  To: buildroot



On 30/08/2018 12:18, Grzegorz Blach wrote:
> PyJWT is a Python library which allows you to encode and decode
> JSON Web Tokens (JWT). JWT is an open, industry-standard (RFC 7519)
> for representing claims securely between two parties.
> 
> https://github.com/jpadilla/pyjwt
> 
> Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>


 Applied to master after bumping to 1.7.1, thanks.

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-03-26 23:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 10:18 [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython Grzegorz Blach
2018-08-30 10:18 ` [Buildroot] [PATCH 2/2] python-pyjwt: new package Grzegorz Blach
2019-03-26 23:53   ` Arnout Vandecappelle
2018-09-01 12:58 ` [Buildroot] [PATCH 1/2] python-falcon: add optional dependency on host-python-cython Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox