python-mimeparse: new package
authorGrzegorz Blach <grzegorz@blach.pl>
Tue, 28 Aug 2018 10:16:17 +0000 (12:16 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 29 Aug 2018 19:15:51 +0000 (21:15 +0200)
This module provides basic functions for parsing mime-type names
and matching them against a list of media-ranges.

https://github.com/dbtsai/python-mimeparse

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-mimeparse/Config.in [new file with mode: 0644]
package/python-mimeparse/python-mimeparse.hash [new file with mode: 0644]
package/python-mimeparse/python-mimeparse.mk [new file with mode: 0644]

index 481c74f9f29763bb0e36b4c7658bfb83842df76f..e58fd05cd51d07546b9d3d13e44ae8a8330f167f 100644 (file)
@@ -876,6 +876,9 @@ F:  package/libsrtp/
 F:     package/libwebsock/
 F:     package/sofia-sip/
 
+N:     Grzegorz Blach <grzegorz@blach.pl>
+F:     package/python-mimeparse/
+
 N:     Guillaume Gardet <guillaume.gardet@oliseo.fr>
 F:     package/c-icap/
 F:     package/c-icap-modules/
index eda0f698dc5544345fdbe4f1df319110043e7540..cd17f0e709a19d2bc6d0dc9132d8ae400b284d30 100644 (file)
@@ -871,6 +871,7 @@ menu "External python modules"
        source "package/python-markupsafe/Config.in"
        source "package/python-mbstrdecoder/Config.in"
        source "package/python-meld3/Config.in"
+       source "package/python-mimeparse/Config.in"
        source "package/python-mistune/Config.in"
        source "package/python-more-itertools/Config.in"
        source "package/python-msgpack/Config.in"
diff --git a/package/python-mimeparse/Config.in b/package/python-mimeparse/Config.in
new file mode 100644 (file)
index 0000000..2437c36
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_MIMEPARSE
+       bool "python-mimeparse"
+       help
+         A module provides basic functions for parsing mime-type
+         names and matching them against a list of media-ranges.
+
+         https://github.com/dbtsai/python-mimeparse
diff --git a/package/python-mimeparse/python-mimeparse.hash b/package/python-mimeparse/python-mimeparse.hash
new file mode 100644 (file)
index 0000000..9721c5f
--- /dev/null
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/python-mimeparse/json
+md5    a32ae1df93be1ddb581d1c0fa124bab4  python-mimeparse-1.6.0.tar.gz
+sha256 76e4b03d700a641fd7761d3cd4fdbbdcd787eade1ebfac43f877016328334f78  python-mimeparse-1.6.0.tar.gz
+# Locally computed sha256 checksums
+sha256 89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e  LICENSE
diff --git a/package/python-mimeparse/python-mimeparse.mk b/package/python-mimeparse/python-mimeparse.mk
new file mode 100644 (file)
index 0000000..dc79698
--- /dev/null
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-mimeparse
+#
+################################################################################
+
+PYTHON_MIMEPARSE_VERSION = 1.6.0
+PYTHON_MIMEPARSE_SOURCE = python-mimeparse-$(PYTHON_MIMEPARSE_VERSION).tar.gz
+PYTHON_MIMEPARSE_SITE = https://files.pythonhosted.org/packages/0f/40/ac5f9e44a55b678c3cd881b4c3376e5b002677dbeab6fb3a50bac5d50d29
+PYTHON_MIMEPARSE_SETUP_TYPE = setuptools
+PYTHON_MIMEPARSE_LICENSE = MIT
+PYTHON_MIMEPARSE_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))