python-mimeparse: new package

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>
This commit is contained in:
Grzegorz Blach 2018-08-28 12:16:17 +02:00 committed by Thomas Petazzoni
parent ba65ca804e
commit ab7e571240
5 changed files with 30 additions and 0 deletions

View 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/

View 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"

View File

@ -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

View File

@ -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

View File

@ -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))