git: 481207cb6d9b - main - www/py-internetarchive: Update 3.0.2 → 3.5.0

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 13 Jun 2023 06:07:45 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=481207cb6d9bae6ca2afdb9fe6f3ff35cab09ec7

commit 481207cb6d9bae6ca2afdb9fe6f3ff35cab09ec7
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-13 05:30:20 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-13 06:07:40 +0000

    www/py-internetarchive: Update 3.0.2 → 3.5.0
    
    Reported by:    portscout
---
 www/py-internetarchive/Makefile | 14 +++++++++++---
 www/py-internetarchive/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/www/py-internetarchive/Makefile b/www/py-internetarchive/Makefile
index ad4a318709f0..7bb5b8c96aec 100644
--- a/www/py-internetarchive/Makefile
+++ b/www/py-internetarchive/Makefile
@@ -1,7 +1,8 @@
 PORTNAME=	internetarchive
-DISTVERSION=	3.0.2
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.5.0
 CATEGORIES=	www python
-MASTER_SITES=	PYPI
+#MASTER_SITES=	PYPI # no tests
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -18,9 +19,16 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}docopt>=0.6.0,<0.7.0:devel/py-docopt@${PY_FL
 		${PYTHON_PKGNAMEPREFIX}six>=1.13.0,<2.0.0:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}tqdm>=4.0.0:misc/py-tqdm@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.0:net/py-urllib3@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}responses>=0.20.0:devel/py-responses@${PY_FLAVOR} \
+		ruff>=0.0.261:devel/ruff
 
 USES=		python:3.6+
-USE_PYTHON=	distutils concurrent autoplist
+USE_PYTHON=	distutils concurrent autoplist pytest # 15 tests fail, https://github.com/jjjake/internetarchive/issues/596
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	jjjake
+
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} PATH=${STAGEDIR}${PREFIX}/bin:${PATH}
 
 NO_ARCH=	yes
 
diff --git a/www/py-internetarchive/distinfo b/www/py-internetarchive/distinfo
index 301244aaf5cb..7b4638ad2188 100644
--- a/www/py-internetarchive/distinfo
+++ b/www/py-internetarchive/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655438401
-SHA256 (internetarchive-3.0.2.tar.gz) = de856465c2ef6852184d08bfd59c0ca01904865b373a27b383034ac6b4128eb6
-SIZE (internetarchive-3.0.2.tar.gz) = 97935
+TIMESTAMP = 1686633028
+SHA256 (jjjake-internetarchive-v3.5.0_GH0.tar.gz) = c437d48f4838081c377f590250b7cf3049deaeabf7fbaf3adc19bef5ae0ca627
+SIZE (jjjake-internetarchive-v3.5.0_GH0.tar.gz) = 144699