From 0e48b9d9d9564c00758aa28b3e5d2021a0968286 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 31 Jan 2019 14:48:07 +0000 Subject: [PATCH] security/py-zxcvbn: update to 4.4.27 Upstream switched to universal wheel[1] on PyPI which isn't supported by USES=python or MASTER_SITES=CHEESESHOP. Instead switch to GitHub which also allows to disambiguate MIT[2] and add support for "make test". [1] https://packaging.python.org/discussions/wheel-vs-egg/ [2] https://fedoraproject.org/wiki/Licensing:MIT Changes: https://github.com/dwolfhub/zxcvbn-python/compare/v4.4.26...v4.4.27 PR: 235328 Submitted by: tobias.rehbein@web.de (based on) --- security/py-zxcvbn/Makefile | 13 +++++++++++-- security/py-zxcvbn/distinfo | 6 +++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/security/py-zxcvbn/Makefile b/security/py-zxcvbn/Makefile index 443adfd7c4b1..bfe7e7e791c5 100644 --- a/security/py-zxcvbn/Makefile +++ b/security/py-zxcvbn/Makefile @@ -1,18 +1,27 @@ # $FreeBSD$ PORTNAME= zxcvbn -PORTVERSION= 4.4.26 +DISTVERSIONPREFIX= v +DISTVERSION= 4.4.27 CATEGORIES= security python -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= jbeich@FreeBSD.org COMMENT= Realistic password strength estimator LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} NO_ARCH= yes USES= python +USE_GITHUB= yes USE_PYTHON= autoplist distutils +GH_ACCOUNT= dwolfhub +GH_PROJECT= ${PORTNAME}-python + +do-test: + @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) .include diff --git a/security/py-zxcvbn/distinfo b/security/py-zxcvbn/distinfo index 0f49d281ac0b..71efa20db7f5 100644 --- a/security/py-zxcvbn/distinfo +++ b/security/py-zxcvbn/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1525982731 -SHA256 (zxcvbn-4.4.26.tar.gz) = b722650a7e331892b3d88b0f11822efcea95334391b2dcf3cd43edbcaebca9ab -SIZE (zxcvbn-4.4.26.tar.gz) = 407795 +TIMESTAMP = 1530542872 +SHA256 (dwolfhub-zxcvbn-python-v4.4.27_GH0.tar.gz) = 9b84927fff7b4cc557b63a49adbd74f7a92026e25edd9e1b2867c1610d15fa5d +SIZE (dwolfhub-zxcvbn-python-v4.4.27_GH0.tar.gz) = 9391971