diff options
author | wiz <wiz@pkgsrc.org> | 2021-11-25 12:10:40 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2021-11-25 12:10:40 +0000 |
commit | 04a0936eac0b0925c60bce558da366c41152733a (patch) | |
tree | 6b2ad6b089d40a0e5b76e4b87c50721a20b819d4 | |
parent | 6a2308d7cf7730f78ed0d812d57bdc4a1e70249b (diff) | |
download | pkgsrc-04a0936eac0b0925c60bce558da366c41152733a.tar.gz |
www/py-multipart: import py-multipart-0.2.4
This module provides a parser for the multipart/form-data format.
It can read from a file, a socket or a WSGI environment. The parser
can be used to replace cgi.FieldStorage to work around its limitations.
-rw-r--r-- | www/py-multipart/DESCR | 3 | ||||
-rw-r--r-- | www/py-multipart/Makefile | 25 | ||||
-rw-r--r-- | www/py-multipart/PLIST | 8 | ||||
-rw-r--r-- | www/py-multipart/distinfo | 5 |
4 files changed, 41 insertions, 0 deletions
diff --git a/www/py-multipart/DESCR b/www/py-multipart/DESCR new file mode 100644 index 00000000000..ae919233512 --- /dev/null +++ b/www/py-multipart/DESCR @@ -0,0 +1,3 @@ +This module provides a parser for the multipart/form-data format. +It can read from a file, a socket or a WSGI environment. The parser +can be used to replace cgi.FieldStorage to work around its limitations. diff --git a/www/py-multipart/Makefile b/www/py-multipart/Makefile new file mode 100644 index 00000000000..f91e1c6ceee --- /dev/null +++ b/www/py-multipart/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2021/11/25 12:10:40 wiz Exp $ + +DISTNAME= multipart-0.2.4 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= www python +MASTER_SITES= ${MASTER_SITE_PYPI:=m/multipart/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://github.com/defnull/multipart +COMMENT= Parser for multipart/form-data. +LICENSE= mit + +#DEPENDS+= ${PYPKGPREFIX}-html5lib>=0.999999999:../../textproc/py-html5lib +TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test + +USE_LANGUAGES= # none + +# one test failure as of 0.2.4 +# https://github.com/defnull/multipart/issues/37 +TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/py-multipart/PLIST b/www/py-multipart/PLIST new file mode 100644 index 00000000000..07960c22595 --- /dev/null +++ b/www/py-multipart/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1 2021/11/25 12:10:40 wiz Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/multipart.py +${PYSITELIB}/multipart.pyc +${PYSITELIB}/multipart.pyo diff --git a/www/py-multipart/distinfo b/www/py-multipart/distinfo new file mode 100644 index 00000000000..d098327d5cf --- /dev/null +++ b/www/py-multipart/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2021/11/25 12:10:40 wiz Exp $ + +BLAKE2s (multipart-0.2.4.tar.gz) = 0eefa9d2cb2dd4513ee748649e01a3f475784ecd2f95a38457e3d8375067f36e +SHA512 (multipart-0.2.4.tar.gz) = 8df8bad1f68d41e841e407f276745e7cb7352e9fb8c5d43569a7e5c4d8c0ae429e440933017244d01182271a12a6f43a4d15e353b1082df9563cbf9d6eb2c7f6 +Size (multipart-0.2.4.tar.gz) = 22300 bytes |