summaryrefslogtreecommitdiff
path: root/misc/py-anthropic
diff options
context:
space:
mode:
Diffstat (limited to 'misc/py-anthropic')
-rw-r--r--misc/py-anthropic/Makefile26
-rw-r--r--misc/py-anthropic/distinfo6
-rw-r--r--misc/py-anthropic/files/patch-pyproject.toml11
-rw-r--r--misc/py-anthropic/pkg-descr7
4 files changed, 31 insertions, 19 deletions
diff --git a/misc/py-anthropic/Makefile b/misc/py-anthropic/Makefile
index d460c76542c9..72436c0857f8 100644
--- a/misc/py-anthropic/Makefile
+++ b/misc/py-anthropic/Makefile
@@ -1,6 +1,6 @@
PORTNAME= anthropic
-DISTVERSION= 0.52.2
-CATEGORIES= misc python
+DISTVERSION= 0.64.0
+CATEGORIES= misc python # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,19 +12,19 @@ LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-fancy-pypi-readme>=0:devel/py-hatch-fancy-pypi-readme@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=3.5:devel/py-anyio@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}cached-property>=1.2.0:devel/py-cached-property@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}distro>0:sysutils/py-distro@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}jiter>=0.4.0<1:textproc/py-jiter@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pydantic2>1.9.0:devel/py-pydantic2@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}sniffio>0:devel/py-sniffio@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}tokenizers>0:textproc/py-tokenizers@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.7:devel/py-typing-extensions@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>=3.5.0:devel/py-anyio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}distro>=1.7.0:sysutils/py-distro@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx>=0.25.0:www/py-httpx@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jiter>=0.4.0:textproc/py-jiter@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pydantic2>=1.9.0:devel/py-pydantic2@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sniffio>=0:devel/py-sniffio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tokenizers>=0:textproc/py-tokenizers@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.10:devel/py-typing-extensions@${PY_FLAVOR}
USES= python
-USE_PYTHON= autoplist concurrent pep517
+USE_PYTHON= pep517 autoplist
NO_ARCH= yes
diff --git a/misc/py-anthropic/distinfo b/misc/py-anthropic/distinfo
index 316dcbc9a86b..bfad285e1a16 100644
--- a/misc/py-anthropic/distinfo
+++ b/misc/py-anthropic/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1749503482
-SHA256 (anthropic-0.52.2.tar.gz) = 9047bc960e8513950579c9cb730c16a84af3fcb56341ad7dc730772f83757050
-SIZE (anthropic-0.52.2.tar.gz) = 306204
+TIMESTAMP = 1756024233
+SHA256 (anthropic-0.64.0.tar.gz) = 3d496c91a63dff64f451b3e8e4b238a9640bf87b0c11d0b74ddc372ba5a3fe58
+SIZE (anthropic-0.64.0.tar.gz) = 427893
diff --git a/misc/py-anthropic/files/patch-pyproject.toml b/misc/py-anthropic/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b14aec397d19
--- /dev/null
+++ b/misc/py-anthropic/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2025-08-24 08:31:41 UTC
++++ pyproject.toml
+@@ -65,7 +65,7 @@ dev-dependencies = [
+ ]
+
+ [build-system]
+-requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"]
++requires = ["hatchling>=1.26.3", "hatch-fancy-pypi-readme"]
+ build-backend = "hatchling.build"
+
+ [tool.hatch.build]
diff --git a/misc/py-anthropic/pkg-descr b/misc/py-anthropic/pkg-descr
index 8dd3ef218a1c..057c299c67b5 100644
--- a/misc/py-anthropic/pkg-descr
+++ b/misc/py-anthropic/pkg-descr
@@ -1,5 +1,6 @@
-Provides convenient access to the Anthropic REST API from any Python application.
-It includes type definitions for all request params and response fields, and
-offers both synchronous and asynchronous clients powered by httpx.
+The Anthropic Python library provides convenient access to the Anthropic
+REST API from any Python application. It includes type definitions for all
+request params and response fields, and offers both synchronous and
+asynchronous clients powered by httpx.
The REST API documentation can be found on docs.anthropic.com.