1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/textproc/py-chardet/Makefile
Kubilay Kocak 5dad846cad textproc/py-charset: Fix test target
Fix test invocation with pytest 4.x [1], which was failing with:

    if len(param.values) != len(argnames):
  E   TypeError: object of type 'MarkDecorator' has no len()

While here, fix out of order MASTER_SITES

[1] https://github.com/chardet/chardet/pull/174

Approved by:	portmgr (blanket: ports compliance)
MFH:		2019Q4 (blanket(s): bugfix, ports compliance)
2019-12-18 04:52:14 +00:00

29 lines
701 B
Makefile

# Created by: arved
# $FreeBSD$
PORTNAME= chardet
PORTVERSION= 3.0.4
PORTREVISION= 3
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= rm@FreeBSD.org
COMMENT= Universal encoding detector for Python 2 and 3
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
NO_ARCH= yes
USES= python
USE_PYTHON= autoplist concurrent distutils
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ptr
.include <bsd.port.mk>