summaryrefslogtreecommitdiffstats
path: root/package/python-chardet
diff options
context:
space:
mode:
authorDavid Bachelart <david.bachelart@bbright.com>2017-01-03 09:26:46 +0100
committerPeter Korsgaard <peter@korsgaard.com>2017-01-08 21:31:56 +0100
commit03a3a201a35bc23acaa65104bdb2d523aa053068 (patch)
tree9f3adf24fdab5528c29c921fd4d8f16196c08ec4 /package/python-chardet
parent6a9e59c0c2367ccc62c1d898fb9b31c8f7fe0ddf (diff)
downloadbuildroot-03a3a201a35bc23acaa65104bdb2d523aa053068.tar.gz
buildroot-03a3a201a35bc23acaa65104bdb2d523aa053068.zip
python-chardet: new package
Signed-off-by: David Bachelart <david.bachelart@bbright.com> Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/python-chardet')
-rw-r--r--package/python-chardet/Config.in6
-rw-r--r--package/python-chardet/python-chardet.hash3
-rw-r--r--package/python-chardet/python-chardet.mk14
3 files changed, 23 insertions, 0 deletions
diff --git a/package/python-chardet/Config.in b/package/python-chardet/Config.in
new file mode 100644
index 0000000000..8f1cd602af
--- /dev/null
+++ b/package/python-chardet/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_CHARDET
+ bool "python-chardet"
+ help
+ Universal encoding detector for Python 2 and 3.
+
+ https://github.com/chardet/chardet
diff --git a/package/python-chardet/python-chardet.hash b/package/python-chardet/python-chardet.hash
new file mode 100644
index 0000000000..aa4efeb104
--- /dev/null
+++ b/package/python-chardet/python-chardet.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi/chardet/json, sha256 locally computed
+md5 25274d664ccb5130adae08047416e1a8 chardet-2.3.0.tar.gz
+sha256 e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa chardet-2.3.0.tar.gz
diff --git a/package/python-chardet/python-chardet.mk b/package/python-chardet/python-chardet.mk
new file mode 100644
index 0000000000..19629548d4
--- /dev/null
+++ b/package/python-chardet/python-chardet.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-chardet
+#
+################################################################################
+
+PYTHON_CHARDET_VERSION = 2.3.0
+PYTHON_CHARDET_SOURCE = chardet-$(PYTHON_CHARDET_VERSION).tar.gz
+PYTHON_CHARDET_SITE = https://pypi.python.org/packages/7d/87/4e3a3f38b2f5c578ce44f8dc2aa053217de9f0b6d737739b0ddac38ed237
+PYTHON_CHARDET_SETUP_TYPE = setuptools
+PYTHON_CHARDET_LICENSE = LGPLv2.1+
+PYTHON_CHARDET_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
OpenPOWER on IntegriCloud