package/python-cbor2: new package
authorJames Hilliard <james.hilliard1@gmail.com>
Thu, 13 Feb 2020 06:26:14 +0000 (23:26 -0700)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Apr 2020 19:50:46 +0000 (21:50 +0200)
Pure Python CBOR (de)serializer with extensive tag support.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-cbor2/Config.in [new file with mode: 0644]
package/python-cbor2/python-cbor2.hash [new file with mode: 0644]
package/python-cbor2/python-cbor2.mk [new file with mode: 0644]

index c17d92ed4ba26374b10871e63f15586fdc5a9a36..644397eff519ec43979accae65ddbe5d3dd8064e 100644 (file)
@@ -1193,6 +1193,7 @@ F:        package/python-argon2-cffi/
 F:     package/python-async-lru/
 F:     package/python-async-timeout/
 F:     package/python-brotli/
+F:     package/python-cbor2/
 F:     package/python-cchardet/
 F:     package/python-flatbuffers/
 F:     package/python-frozenlist/
index 7c9575c8b7346376081e24e2178879dc288592f6..3657a15fad50f3abc08de5d1bc062924256ca61a 100644 (file)
@@ -895,6 +895,7 @@ menu "External python modules"
        source "package/python-can/Config.in"
        source "package/python-canopen/Config.in"
        source "package/python-cbor/Config.in"
+       source "package/python-cbor2/Config.in"
        source "package/python-cchardet/Config.in"
        source "package/python-certifi/Config.in"
        source "package/python-cffi/Config.in"
diff --git a/package/python-cbor2/Config.in b/package/python-cbor2/Config.in
new file mode 100644 (file)
index 0000000..ba9383f
--- /dev/null
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_CBOR2
+       bool "python-cbor2"
+       help
+         Pure Python CBOR (de)serializer with extensive tag support.
+
+         https://cbor2.readthedocs.io/
diff --git a/package/python-cbor2/python-cbor2.hash b/package/python-cbor2/python-cbor2.hash
new file mode 100644 (file)
index 0000000..abc049b
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/cbor2/json
+md5    47653309cff623382c770841847dafaf  cbor2-5.0.1.tar.gz
+sha256 4299db69e5ac7b3026abb2a639737c72804511130ced81f660a9cb9222352dba  cbor2-5.0.1.tar.gz
+# Locally computed sha256 checksums
+sha256 6163f7987dfb38d6bc320ce2b70b2f02b862bc41126516d552ef1cd43247e758  LICENSE.txt
diff --git a/package/python-cbor2/python-cbor2.mk b/package/python-cbor2/python-cbor2.mk
new file mode 100644 (file)
index 0000000..d504e33
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cbor2
+#
+################################################################################
+
+PYTHON_CBOR2_VERSION = 5.0.1
+PYTHON_CBOR2_SOURCE = cbor2-$(PYTHON_CBOR2_VERSION).tar.gz
+PYTHON_CBOR2_SITE = https://files.pythonhosted.org/packages/3e/2c/188d040bd4cf99012d0e847a3d95bf1ef1f783859b09eb9f736950af84f0
+PYTHON_CBOR2_SETUP_TYPE = setuptools
+PYTHON_CBOR2_LICENSE = MIT
+PYTHON_CBOR2_LICENSE_FILES = LICENSE.txt
+
+$(eval $(python-package))