git: 3048e8063723 - main - www/py-ddgs: update 9.6.1 → 9.14.4

Yuri Victorovich <[email protected]> Sun, 02 Aug 2026 23:54:31 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3048e8063723ce6d3d4814fc139fcc432f093890

commit 3048e8063723ce6d3d4814fc139fcc432f093890
Author:     Yuri Victorovich <[email protected]>
AuthorDate: 2026-08-02 20:50:36 +0000
Commit:     Yuri Victorovich <[email protected]>
CommitDate: 2026-08-02 23:54:22 +0000

    www/py-ddgs: update 9.6.1 → 9.14.4
---
 www/py-ddgs/Makefile                   | 26 +++++++++++++++++---------
 www/py-ddgs/distinfo                   |  6 +++---
 www/py-ddgs/files/patch-pyproject.toml | 14 ++++++++++++++
 3 files changed, 34 insertions(+), 12 deletions(-)

diff --git a/www/py-ddgs/Makefile b/www/py-ddgs/Makefile
index 62ffefaf7b16..d3d3684e737b 100644
--- a/www/py-ddgs/Makefile
+++ b/www/py-ddgs/Makefile
@@ -1,7 +1,8 @@
 PORTNAME=	ddgs
-DISTVERSION=	9.6.1
+DISTVERSIONPREFIX=	v
+DISTVERSION=	9.14.4
 CATEGORIES=	www
-MASTER_SITES=	PYPI
+#MASTER_SITES=	PYPI # no tests
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	[email protected]
@@ -11,18 +12,25 @@ WWW=		https://github.com/deedy5/duckduckgo_search
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>=8.1.8:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fake-useragent>=2.2.0:www/py-fake-useragent@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1:www/py-httpx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>=4.9.4:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}primp>=1.2.3:www/py-primp@${PY_FLAVOR}
+
 USES=		python gmake
 USE_PYTHON=	pep517 autoplist pytest
 
-BUILD_DEPENDS=	${PY_SETUPTOOLS} \
-		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}primp>=0.15.0:www/py-primp@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}lxml>=6.0.0:devel/py-lxml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1:www/py-httpx@${PY_FLAVOR}
+USE_GITHUB=	yes
+GH_ACCOUNT=	deedy5
+GH_PROJECT=	duckduckgo_search
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 NO_ARCH=	yes
 
-# tests as of 9.6.1: 20 passed, 24 warnings in 88.20s (0:01:28)
+# tests as of 9.6.1: 1 failed, 16 passed, 1 skipped in 49.04s, see https://github.com/deedy5/ddgs/issues/481
 
 .include <bsd.port.mk>
diff --git a/www/py-ddgs/distinfo b/www/py-ddgs/distinfo
index c26e19344770..6d65cf10b242 100644
--- a/www/py-ddgs/distinfo
+++ b/www/py-ddgs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1760342320
-SHA256 (ddgs-9.6.1.tar.gz) = 15ec3aace0417c0ab3c0184059e1e03dbd6bda8d3be6108949c18ad7b4cd1e11
-SIZE (ddgs-9.6.1.tar.gz) = 35881
+TIMESTAMP = 1785703440
+SHA256 (deedy5-duckduckgo_search-v9.14.4_GH0.tar.gz) = f0e2bd13833c732983ac143f4302529b43a0427d86e7c809fc5603a7416bae67
+SIZE (deedy5-duckduckgo_search-v9.14.4_GH0.tar.gz) = 65462
diff --git a/www/py-ddgs/files/patch-pyproject.toml b/www/py-ddgs/files/patch-pyproject.toml
new file mode 100644
index 000000000000..bd5555122890
--- /dev/null
+++ b/www/py-ddgs/files/patch-pyproject.toml
@@ -0,0 +1,14 @@
+-- Fix pyproject.toml license format for compatibility with older setuptools
+-- The old setuptools in FreeBSD ports requires license = {text = "MIT"} instead of license = "MIT"
+
+--- pyproject.toml.orig	2026-08-02 19:42:46 UTC
++++ pyproject.toml
+@@ -7,7 +7,7 @@ requires-python = ">=3.10"
+ description = "Dux Distributed Global Search. A metasearch library that aggregates results from diverse web search services."
+ readme = "README.md"
+ requires-python = ">=3.10"
+-license = "MIT"
++license = {text = "MIT"}
+ keywords = ["python", "search", "metasearch"]
+ authors = [
+   {name = "deedy5"}