浏览代码

python-cchardet: new package

cChardet is high speed universal character encoding detector.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
James Hilliard 6 年之前
父节点
当前提交
3db2ed4271

+ 1 - 0
DEVELOPERS

@@ -986,6 +986,7 @@ F:	configs/pine64_sopine_defconfig
 N:	James Hilliard <james.hilliard1@gmail.com>
 F:	package/python-aiodns/
 F:	package/python-async-timeout/
+F:	package/python-cchardet/
 F:	package/python-multidict/
 F:	package/python-pycares/
 F:	package/python-yarl/

+ 1 - 0
package/Config.in

@@ -814,6 +814,7 @@ menu "External python modules"
 	source "package/python-cached-property/Config.in"
 	source "package/python-can/Config.in"
 	source "package/python-cbor/Config.in"
+	source "package/python-cchardet/Config.in"
 	source "package/python-certifi/Config.in"
 	source "package/python-cffi/Config.in"
 	source "package/python-characteristic/Config.in"

+ 11 - 0
package/python-cchardet/Config.in

@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_CCHARDET
+	bool "python-cchardet"
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  cChardet is high speed universal character encoding
+	  detector.
+
+	  https://github.com/PyYoshi/cChardet
+
+comment "python-cchardet needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP

+ 5 - 0
package/python-cchardet/python-cchardet.hash

@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/cchardet/json
+md5	17af20af67cb18e958854e273d857a88  cchardet-2.1.4.tar.gz
+sha256	cc9745e0400da4cfb49f075e7819f22473b66443f953427058fee2c7b9547cc0  cchardet-2.1.4.tar.gz
+# Locally computed sha256 checksums
+sha256	107a29ccdd2d778aa2df5462f85dddfa099059abd22e064e07ec2cc9bafc37cd  COPYING

+ 14 - 0
package/python-cchardet/python-cchardet.mk

@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cchardet
+#
+################################################################################
+
+PYTHON_CCHARDET_VERSION = 2.1.4
+PYTHON_CCHARDET_SOURCE = cchardet-$(PYTHON_CCHARDET_VERSION).tar.gz
+PYTHON_CCHARDET_SITE = https://files.pythonhosted.org/packages/74/64/3988d388315c1af3e24f447689dadf30edead43366fb2041cb103380b57f
+PYTHON_CCHARDET_SETUP_TYPE = setuptools
+PYTHON_CCHARDET_LICENSE = MPL-1.1
+PYTHON_CCHARDET_LICENSE_FILES = COPYING
+
+$(eval $(python-package))