summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Condarelli <mc5686@mclink.it>2016-02-06 23:59:59 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-19 23:56:34 +0100
commit0226a0af0f19a90d822cd01e9720cdc20cc771f8 (patch)
treee32838d270674a72a4f9646d7cd2ba69f92bab6a
parent61c056d40bc51f99f8be19b7e77894a5e6565fd6 (diff)
python-ujson: new package
Signed-off-by: Mauro Condarelli <mc5686@mclink.it> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/python-ujson/Config.in7
-rw-r--r--package/python-ujson/python-ujson.hash3
-rw-r--r--package/python-ujson/python-ujson.mk13
4 files changed, 24 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index 11ba42d5d..ce15775d5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -726,6 +726,7 @@ menu "External python modules"
source "package/python-treq/Config.in"
source "package/python-twisted/Config.in"
source "package/python-txaio/Config.in"
+ source "package/python-ujson/Config.in"
source "package/python-urllib3/Config.in"
source "package/python-urwid/Config.in"
source "package/python-versiontools/Config.in"
diff --git a/package/python-ujson/Config.in b/package/python-ujson/Config.in
new file mode 100644
index 000000000..d185c9853
--- /dev/null
+++ b/package/python-ujson/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_UJSON
+ bool "python-ujson"
+ help
+ UltraJSON is an ultra fast JSON encoder and decoder written
+ in pure C with bindings for Python 2.5+ and 3.
+
+ https://pypi.python.org/pypi/ujson
diff --git a/package/python-ujson/python-ujson.hash b/package/python-ujson/python-ujson.hash
new file mode 100644
index 000000000..21320346a
--- /dev/null
+++ b/package/python-ujson/python-ujson.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=42f77b0cce686dfa4da2e68480b1dd24,sha256 locally computed.
+md5 42f77b0cce686dfa4da2e68480b1dd24 ujson-1.35.tar.gz
+sha256 f66073e5506e91d204ab0c614a148d5aa938bdbf104751be66f8ad7a222f5f86 ujson-1.35.tar.gz
diff --git a/package/python-ujson/python-ujson.mk b/package/python-ujson/python-ujson.mk
new file mode 100644
index 000000000..8d4a12b81
--- /dev/null
+++ b/package/python-ujson/python-ujson.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-ujson
+#
+################################################################################
+
+PYTHON_UJSON_VERSION = 1.35
+PYTHON_UJSON_SOURCE = ujson-$(PYTHON_UJSON_VERSION).tar.gz
+PYTHON_UJSON_SITE = http://pypi.python.org/packages/source/u/ujson
+PYTHON_UJSON_LICENSE = BSD-3c
+PYTHON_UJSON_SETUP_TYPE = setuptools
+
+$(eval $(python-package))