Index | Thread | Search

From:
Kirill A. Korinsky <kirill@korins.ky>
Subject:
Re: [new] audio/pylast: new port (version 5.3.0)
To:
Edd Barrett <edd@openbsd.org>, OpenBSD ports <ports@openbsd.org>
Date:
Thu, 30 May 2024 12:56:07 +0100

Download raw body.

Thread
Here an updated diff which addressed Stuart's remark that test doesn't work
when py-last doesn't installed and included added a few missed tabs.

diff --git audio/py-last/Makefile audio/py-last/Makefile
index 97e7449bbd7..63eb10a7111 100644
--- audio/py-last/Makefile
+++ audio/py-last/Makefile
@@ -1,10 +1,9 @@
 COMMENT =		Python last.fm library
 
-MODPY_EGG_VERSION =	0.5.11
+MODPY_EGG_VERSION =	5.3.0
 DISTNAME =		pylast-${MODPY_EGG_VERSION}
 PKGNAME =		py-last-${MODPY_EGG_VERSION}
 CATEGORIES =		audio net
-REVISION =		8
 
 HOMEPAGE =		https://github.com/pylast/pylast
 
@@ -13,13 +12,19 @@ MAINTAINER = 		Edd Barrett <edd@openbsd.org>
 # Apache 2.0
 PERMIT_PACKAGE =	Yes
 
-MODPY_PI =	Yes
+MODPY_PI =		Yes
+MODPY_PYBUILD =		hatch-vcs
 
-FLAVORS =	python3
-FLAVOR =	python3
+FLAVORS =		python3
+FLAVOR =		python3
 
-MODULES =	lang/python
+MODULES =		lang/python
 
-NO_TEST =	Yes
+RUN_DEPENDS =		www/py-httpx${MODPY_FLAVOR}
+
+# NOTE: majority of tests require the real access to servers
+# See: https://github.com/pylast/pylast?tab=readme-ov-file#testing
+TEST_DEPENDS =		${FULLPKGNAME}:${BUILD_PKGPATH} \
+			devel/py-flaky${MODPY_FLAVOR}
 
 .include <bsd.port.mk>
diff --git audio/py-last/distinfo audio/py-last/distinfo
index 754693b694f..04e6ea29070 100644
--- audio/py-last/distinfo
+++ audio/py-last/distinfo
@@ -1,2 +1,2 @@
-SHA256 (pylast-0.5.11.tar.gz) = vzWCC+NUR9VVZNNgctQLCayKf9Qabxp6nUCPTQ6u+sQ=
-SIZE (pylast-0.5.11.tar.gz) = 26146
+SHA256 (pylast-5.3.0.tar.gz) = Y3lDsbDmBF3YXtc4nbYHGh/qRcx/+Q3GEm/VCcpvri8=
+SIZE (pylast-5.3.0.tar.gz) = 41552
diff --git audio/py-last/pkg/PLIST audio/py-last/pkg/PLIST
index c644a1a5484..4125ceb9177 100644
--- audio/py-last/pkg/PLIST
+++ audio/py-last/pkg/PLIST
@@ -1,6 +1,14 @@
 @conflict py-last-*
 @pkgpath audio/py-last
-${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}/
-lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}pylast.${MODPY_PYC_MAGIC_TAG}pyc
-lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
-lib/python${MODPY_VERSION}/site-packages/pylast.py
+lib/python${MODPY_VERSION}/site-packages/pylast/
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/METADATA
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/RECORD
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/WHEEL
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/licenses/
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/licenses/COPYING
+lib/python${MODPY_VERSION}/site-packages/pylast-${MODPY_EGG_VERSION}.dist-info/licenses/LICENSE.txt
+lib/python${MODPY_VERSION}/site-packages/pylast/__init__.py
+${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pylast/${MODPY_PYCACHE}/
+lib/python${MODPY_VERSION}/site-packages/pylast/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
+lib/python${MODPY_VERSION}/site-packages/pylast/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc


--
wbr, Kirill