diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 05:12:57 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2026-07-09 05:20:16 +0000 |
| commit | 80fa50a439b496ae7aab5db407b86f0eea0b0fce (patch) | |
| tree | b411b8fa6b2dbfb0edf328eb9070827884f333e3 | |
| parent | b570daa35b2e3db5d48e4009ccb673bc7ab4827b (diff) | |
devel/py-mellea: New port: Library for writing generative programs
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-mellea/Makefile | 38 | ||||
| -rw-r--r-- | devel/py-mellea/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-mellea/pkg-descr | 4 |
4 files changed, 46 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 63acd758e922..936f17d77555 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5415,6 +5415,7 @@ SUBDIR += py-mediafile SUBDIR += py-mediapy SUBDIR += py-medikit + SUBDIR += py-mellea SUBDIR += py-memory-allocator SUBDIR += py-memory-graph SUBDIR += py-memory-profiler diff --git a/devel/py-mellea/Makefile b/devel/py-mellea/Makefile new file mode 100644 index 000000000000..106ead42c8cc --- /dev/null +++ b/devel/py-mellea/Makefile @@ -0,0 +1,38 @@ +PORTNAME= mellea +PORTVERSION= 0.6.0 +CATEGORIES= devel python # machine-learning +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for writing generative programs +WWW= https://pypi.org/project/mellea/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}math-verify>0:math/py-math-verify@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}mistletoe>=1.4.0:textproc/py-mistletoe@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}nltk>0:textproc/py-nltk@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ollama>=0.5.1:misc/py-ollama@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openai>0:misc/py-openai@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>0:devel/py-pydantic2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.32.3:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rouge-score>0:textproc/py-rouge-score@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 +NO_ARCH= yes + +post-extract: + @${REINPLACE_CMD} -e '/^license-files/d' ${WRKSRC}/pyproject.toml + @${ECHO_CMD} "" >> ${WRKSRC}/pyproject.toml + @${ECHO_CMD} "[tool.pdm.build]" >> ${WRKSRC}/pyproject.toml + @${ECHO_CMD} "excludes = [\"docs\", \"docs.*\", \"test\", \"test.*\", \"tooling\", \"tooling.*\", \"scratchpad\", \"scratchpad.*\", \"tmp\", \"tmp.*\"]" >> ${WRKSRC}/pyproject.toml + +.include <bsd.port.mk> diff --git a/devel/py-mellea/distinfo b/devel/py-mellea/distinfo new file mode 100644 index 000000000000..293eb6584025 --- /dev/null +++ b/devel/py-mellea/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1783064056 +SHA256 (mellea-0.6.0.tar.gz) = d1ef5873f28a66ee44448737ce270ac98dc50e57d0a3582fe102d598f5490ebc +SIZE (mellea-0.6.0.tar.gz) = 4316534 diff --git a/devel/py-mellea/pkg-descr b/devel/py-mellea/pkg-descr new file mode 100644 index 000000000000..f0c8bab9087e --- /dev/null +++ b/devel/py-mellea/pkg-descr @@ -0,0 +1,4 @@ +Mellea is a library for writing generative programs in Python. It +provides abstractions and utilities for building programs that +generate structured outputs using large language models, supporting +constrained generation and programmatic control of LLM outputs. |
