diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2026-04-18 21:18:23 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2026-04-18 21:18:23 +0000 |
| commit | bae38c823d12a147296743928494e39d1d9da01e (patch) | |
| tree | 3bb1fa54ff106dd37d68dcf956b8fb6b17c68227 | |
| parent | d477f6953d76d88ee2f02352dfe31299c91e33ab (diff) | |
devel/py-parsy: Add py-parsy 2.2
Parsy is an easy and elegant way to parse text in Python by combining small
parsers into complex, larger parsers. If it means anything to you, it's a
monadic parser combinator library for LL(infinity) grammars in the spirit of
Parsec, Parsnip, and Parsimmon. But don't worry, it has really good
documentation and it doesn't say things like that!
For a good example of the kind of clear, declarative code you can create using
parsy, see the SQL SELECT statement example or JSON parser.
The project:
- has zero dependencies outside stdlib.
- is highly mature and stable, with few-to-none backwards incompatibilities over
the past 10 years.
- is essentially complete, with no rewrites planned. Widely useful improvements
that don't break compatibility will still be considered, however.
- is implemented in a single module with less than 800LOC, which you could
vendor easily if required.
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-parsy/Makefile | 23 | ||||
| -rw-r--r-- | devel/py-parsy/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-parsy/pkg-descr | 17 |
4 files changed, 44 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 5f67c83683ff..34c484dbc553 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5517,6 +5517,7 @@ SUBDIR += py-parameterized SUBDIR += py-parsedatetime SUBDIR += py-parsley + SUBDIR += py-parsy SUBDIR += py-parver SUBDIR += py-pastel SUBDIR += py-patch diff --git a/devel/py-parsy/Makefile b/devel/py-parsy/Makefile new file mode 100644 index 000000000000..dd5974e9d2d5 --- /dev/null +++ b/devel/py-parsy/Makefile @@ -0,0 +1,23 @@ +PORTNAME= parsy +PORTVERSION= 2.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Easy-to-use parser combinators, for parsing in pure Python +WWW= https://parsy.readthedocs.io/en/latest/ \ + https://github.com/python-parsy/parsy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.2:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-parsy/distinfo b/devel/py-parsy/distinfo new file mode 100644 index 000000000000..38d26985322b --- /dev/null +++ b/devel/py-parsy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1775587106 +SHA256 (parsy-2.2.tar.gz) = e943147644a8cf0d82d1bcb5c5867dd517495254cea3e3eb058b1e421cb7561f +SIZE (parsy-2.2.tar.gz) = 47296 diff --git a/devel/py-parsy/pkg-descr b/devel/py-parsy/pkg-descr new file mode 100644 index 000000000000..1c1f418d4de2 --- /dev/null +++ b/devel/py-parsy/pkg-descr @@ -0,0 +1,17 @@ +Parsy is an easy and elegant way to parse text in Python by combining small +parsers into complex, larger parsers. If it means anything to you, it's a +monadic parser combinator library for LL(infinity) grammars in the spirit of +Parsec, Parsnip, and Parsimmon. But don't worry, it has really good +documentation and it doesn't say things like that! + +For a good example of the kind of clear, declarative code you can create using +parsy, see the SQL SELECT statement example or JSON parser. + +The project: +- has zero dependencies outside stdlib. +- is highly mature and stable, with few-to-none backwards incompatibilities over + the past 10 years. +- is essentially complete, with no rewrites planned. Widely useful improvements + that don't break compatibility will still be considered, however. +- is implemented in a single module with less than 800LOC, which you could + vendor easily if required. |
