mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
712b296637
JSON5 serializer and parser library for Python 3 written in Cython. The serializer returns ASCII data that can safely be used in an HTML template. Apostrophes, ampersands, greater-than, and less-then signs are encoded as unicode escaped sequences. Unless the input contains infinite or NaN values, the result will be valid JSON data. The parser can handle all valid JSON5 1.0.0 and JSON data can be read, unless the nesting level is absurdly high.
30 lines
569 B
Makefile
30 lines
569 B
Makefile
COMMENT= json5 serializer and parser written in Cython
|
|
|
|
MODPY_DISTV= 2.0.0
|
|
DISTNAME= pyjson5-${MODPY_DISTV}
|
|
PKGNAME= py-${DISTNAME}
|
|
|
|
# https://pyjson5.readthedocs.io/en/latest/changelog.html
|
|
# https://github.com/Kijewski/pyjson5
|
|
HOMEPAGE= https://pyjson5.readthedocs.io/
|
|
|
|
CATEGORIES= textproc
|
|
|
|
# Apache 2.0
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} m
|
|
|
|
COMPILER= base-clang ports-gcc
|
|
|
|
MODULES= lang/python
|
|
MODPY_PYBUILD= setuptools
|
|
MODPY_PI= Yes
|
|
|
|
BUILD_DEPENDS= lang/cython
|
|
|
|
# not in sdist; needs submodules to run from git
|
|
NO_TEST= Yes
|
|
|
|
.include <bsd.port.mk>
|