summaryrefslogtreecommitdiff
path: root/devel/py-Faker/Makefile
blob: e5c2c2285e77a5d8ae00efbeb08e9a07d9e8b809 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Alfred Perlstein <alfred@freebsd.org>

PORTNAME=	Faker
PORTVERSION=	0.8.15
PORTREVISION=	3
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	alfred@FreeBSD.org
COMMENT=	Python package that generates fake data for you

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>=2.4:devel/py-dateutil@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}six>=1.10:devel/py-six@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}text-unidecode>=1.2:converters/py-text-unidecode@${PY_FLAVOR}
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}

USES=		python:3.6+
USE_PYTHON=	distutils concurrent autoplist

CONFLICTS_INSTALL=	rubygem-faker

NO_ARCH=	yes

do-test:
	${RM} ${WRKSRC}/tests/providers/test_address.py # Needs ukpostcodeparser.parser port
	${RM} ${WRKSRC}/tests/providers/test_internet.py # Needs email_validator port
	cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -v

.include <bsd.port.mk>