diff --git a/misc/py-ollama/Makefile b/misc/py-ollama/Makefile index cd6b0a993ac9..793963dd4eb3 100644 --- a/misc/py-ollama/Makefile +++ b/misc/py-ollama/Makefile @@ -1,35 +1,38 @@ PORTNAME= ollama DISTVERSIONPREFIX= v -DISTVERSION= 0.4.7 +DISTVERSION= 0.6.1 CATEGORIES= misc # machine-learning #MASTER_SITES= PYPI # no tests PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Official Python client for Ollama WWW= https://ollama.com/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>0:devel/py-poetry-core@${PY_FLAVOR} -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.27.0<1:www/py-httpx@${PY_FLAVOR} +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}hatch-vcs>=0:devel/py-hatch-vcs@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.27:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic2>=2.9:devel/py-pydantic2@${PY_FLAVOR} TEST_DEPENDS= ${PY_PILLOW} \ ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.23.2:devel/py-pytest-asyncio@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=4.1:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-httpserver>=0:devel/py-pytest-httpserver@${PY_FLAVOR} USES= python USE_PYTHON= pep517 concurrent autoplist pytest # tests fail because api_key needs to be set USE_GITHUB= yes GH_PROJECT= ollama-python TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} NO_ARCH= yes -post-patch: # workaround for https://github.com/ollama/ollama-python/issues/249 - @${REINPLACE_CMD} -e 's|version = "0.0.0"|version = "${PORTVERSION}"|' ${WRKSRC}/pyproject.toml +post-patch: # workaround: hatch-vcs can't detect version without git repo + @${REINPLACE_CMD} -e "s|dynamic = \[ 'version' \]|version = '${PORTVERSION}'|" ${WRKSRC}/pyproject.toml + @${REINPLACE_CMD} -e '/\[tool.hatch.version\]/,/^$$/d' ${WRKSRC}/pyproject.toml .include diff --git a/misc/py-ollama/distinfo b/misc/py-ollama/distinfo index 5306dec01c4b..3f453a940301 100644 --- a/misc/py-ollama/distinfo +++ b/misc/py-ollama/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1741784157 -SHA256 (ollama-ollama-python-v0.4.7_GH0.tar.gz) = 6d59d084ebf61d5eff140af25e40562e377823471a1933f191471b11b533288c -SIZE (ollama-ollama-python-v0.4.7_GH0.tar.gz) = 42483 +TIMESTAMP = 1742860800 +SHA256 (ollama-ollama-python-v0.6.1_GH0.tar.gz) = fad4a174f94a9200a0d2f43eccc4f736868d64445f2f4f62040664bedec45138 +SIZE (ollama-ollama-python-v0.6.1_GH0.tar.gz) = 55783