pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/streamlink streamlink: fix depends, add tes...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9c984417db97
branches: trunk
changeset: 379159:9c984417db97
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu May 12 09:30:54 2022 +0000
description:
streamlink: fix depends, add test target
diffstat:
multimedia/streamlink/Makefile | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diffs (63 lines):
diff -r c72fc8ee3d72 -r 9c984417db97 multimedia/streamlink/Makefile
--- a/multimedia/streamlink/Makefile Thu May 12 08:39:48 2022 +0000
+++ b/multimedia/streamlink/Makefile Thu May 12 09:30:54 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2022/05/11 22:30:17 bouyer Exp $
+# $NetBSD: Makefile,v 1.33 2022/05/12 09:30:54 wiz Exp $
DISTNAME= streamlink-4.0.1
CATEGORIES= multimedia
@@ -10,27 +10,26 @@
COMMENT= Tool that pipes video streams into a video player
LICENSE= 2-clause-bsd
-PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-iso3166
+PYTHON_VERSIONS_INCOMPATIBLE= 27
USE_PKG_RESOURCES= yes
-.include "../../lang/python/egg.mk"
-
+DEPENDS+= ${PYPKGPREFIX}-country-[0-9]*:../../geography/py-country
DEPENDS+= ${PYPKGPREFIX}-cryptodome>=3.4.3:../../security/py-cryptodome
-DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>=4.0.0:../../devel/py-importlib-metadata
-DEPENDS+= ${PYPKGPREFIX}-requests>=2.25.0:../../devel/py-requests
-DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
-DEPENDS+= ${PYPKGPREFIX}-versioningit>=1.1.1:../../devel/py-versioningit
DEPENDS+= ${PYPKGPREFIX}-isodate-[0-9]*:../../time/py-isodate
-DEPENDS+= ${PYPKGPREFIX}-iso-639-[0-9]*:../../devel/py-iso-639
-DEPENDS+= ${PYPKGPREFIX}-iso3166-[0-9]*:../../devel/py-iso3166
-DEPENDS+= ${PYPKGPREFIX}-country-[0-9]*:../../geography/py-country
DEPENDS+= ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
-DEPENDS+= ${PYPKGPREFIX}-tomli-[0-9]*:../../textproc/py-tomli
-DEPENDS+= ${PYPKGPREFIX}-websocket-client>=1.2.1*:../../www/py-websocket-client
-DEPENDS+= ${PYPKGPREFIX}-Socks-[0-9]*:../../net/py-Socks
-TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun-[0-9]*:../../devel/py-freezegun
+DEPENDS+= ${PYPKGPREFIX}-Socks>=1.5.6:../../net/py-Socks
+DEPENDS+= ${PYPKGPREFIX}-requests>=2.26.0:../../devel/py-requests
+DEPENDS+= ${PYPKGPREFIX}-websocket-client>=1.2.1:../../www/py-websocket-client
+BUILD_DEPENDS+= ${PYPKGPREFIX}-versioningit>=1.1.1:../../devel/py-versioningit
+BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools>=45:../../devel/py-setuptools
+BUILD_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8
+TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-import-order-[0-9]*:../../devel/py-flake8-import-order
+TEST_DEPENDS+= ${PYPKGPREFIX}-freezegun>=1.0.0:../../devel/py-freezegun
TEST_DEPENDS+= ${PYPKGPREFIX}-requests-mock-[0-9]*:../../devel/py-requests-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
EGG_NAME= streamlink-0.0.0+unknown
@@ -44,5 +43,12 @@
REPLACE_PYTHON+= src/streamlink/plugins/tv3cat.py
REPLACE_PYTHON+= src/streamlink/plugins/tvplayer.py
+# as of 4.0.1
+# 1 failed, 4591 passed, 31 skipped
+TEST_ENV+= PYTHONPATH=${WRKSRC}/build/lib
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
.include "../../lang/python/application.mk"
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index