pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-internetarchive: Fix but disable tests



Module Name:	pkgsrc-wip
Committed By:	Malte Dehling <mdehling%gmail.com@localhost>
Pushed By:	mdehling
Date:		Wed May 22 14:38:49 2024 -0700
Changeset:	953009815e057a0aa64364dee3a20f6a375c7ecd

Modified Files:
	py-internetarchive/Makefile
	py-internetarchive/distinfo

Log Message:
py-internetarchive: Fix but disable tests

- pypi source is missing tests/data, so use github instead
- disable tests because they require internet access

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=953009815e057a0aa64364dee3a20f6a375c7ecd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-internetarchive/Makefile | 7 ++++++-
 py-internetarchive/distinfo | 6 +++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diffs:
diff --git a/py-internetarchive/Makefile b/py-internetarchive/Makefile
index 4d9d9c73f8..ecfbc9c0a7 100644
--- a/py-internetarchive/Makefile
+++ b/py-internetarchive/Makefile
@@ -3,7 +3,9 @@
 DISTNAME=	internetarchive-4.1.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	net python
-MASTER_SITES=	${MASTER_SITE_PYPI:=i/internetarchive/}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jjjake/}
+GITHUB_PROJECT=	internetarchive
+GITHUB_TAG=	v${PKGVERSION_NOREV}
 
 MAINTAINER=	mdehling%gmail.com@localhost
 HOMEPAGE=	https://github.com/jjjake/internetarchive
@@ -12,6 +14,8 @@ LICENSE=	gnu-agpl-v3
 
 USE_LANGUAGES=	# none
 
+USE_PYTEST=	no	# XXX: tests require a connection to archive.org
+
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
 .include "../../lang/python/pyversion.mk"
@@ -27,6 +31,7 @@ DEPENDS+=	${PYPKGPREFIX}-requests-[0-9]*:../../devel/py-requests
 DEPENDS+=	${PYPKGPREFIX}-schema-[0-9]*:../../wip/py-schema
 DEPENDS+=	${PYPKGPREFIX}-tqdm-[0-9]*:../../misc/py-tqdm
 DEPENDS+=	${PYPKGPREFIX}-urllib3-[0-9]*:../../www/py-urllib3
+TEST_DEPENDS+=	${PYPKGPREFIX}-responses-[0-9]*:../../net/py-responses
 
 post-install:
 	cd ${DESTDIR}${PREFIX} &&					\
diff --git a/py-internetarchive/distinfo b/py-internetarchive/distinfo
index db081995e3..6070bb3eaa 100644
--- a/py-internetarchive/distinfo
+++ b/py-internetarchive/distinfo
@@ -1,5 +1,5 @@
 $NetBSD$
 
-BLAKE2s (internetarchive-4.1.0.tar.gz) = 31e0a8f5e5d6f29ae258b8dd698f8dbb05aa3b0b0aeba60676508c16403c8b3e
-SHA512 (internetarchive-4.1.0.tar.gz) = a3bd751c373c61111474dcc13bc0ae9bfc347b0d7dbb14ebc02dd56214321995ca05c6d781641d409acbcf20cf35e6c9be1486d377ecc70bfa029c433da081f3
-Size (internetarchive-4.1.0.tar.gz) = 104655 bytes
+BLAKE2s (internetarchive-4.1.0.tar.gz) = 6df6a7f375a05c6498c694d22654b1b3eb33f7f3e532b1c957a897e47eb30df1
+SHA512 (internetarchive-4.1.0.tar.gz) = 38fd46ab6af9e2f44deb05013b9e65ede3c0eed7ab62e04e4ba4dc80c22a6f4cea483078daeb398c86865ff7477b6a3f776f245e40c5cbee66f819159f254260
+Size (internetarchive-4.1.0.tar.gz) = 146793 bytes


Home | Main Index | Thread Index | Old Index