Lines 3-21
Link Here
|
3 |
PORTNAME= httmock |
3 |
PORTNAME= httmock |
4 |
PORTVERSION= 1.3.0 |
4 |
PORTVERSION= 1.3.0 |
5 |
CATEGORIES= www python |
5 |
CATEGORIES= www python |
6 |
MASTER_SITES= CHEESESHOP \ |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
https://raw.githubusercontent.com/patrys/${PORTNAME}/${PORTVERSION}/:tests |
|
|
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
10 |
tests.py:tests |
11 |
DIST_SUBDIR= py-${PORTNAME} |
12 |
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} |
13 |
|
7 |
|
14 |
MAINTAINER= dereks@lifeofadishwasher.com |
8 |
MAINTAINER= dereks@lifeofadishwasher.com |
15 |
COMMENT= Mocking library for requests |
9 |
COMMENT= Mocking library for requests |
16 |
|
10 |
|
17 |
BROKEN= unfetchable |
|
|
18 |
|
19 |
LICENSE= APACHE20 |
11 |
LICENSE= APACHE20 |
20 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
21 |
|
13 |
|
Lines 24-36
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:www/py-requests@${PY_FLAVOR}
Link Here
|
24 |
USES= python |
16 |
USES= python |
25 |
USE_PYTHON= distutils autoplist |
17 |
USE_PYTHON= distutils autoplist |
26 |
|
18 |
|
27 |
NO_ARCH= yes |
19 |
USE_GITHUB= yes |
|
|
20 |
GH_ACCOUNT= patrys |
28 |
|
21 |
|
29 |
# Description: tests.py is missing from the pypi package |
22 |
NO_ARCH= yes |
30 |
# Issue ID: https://github.com/patrys/httmock/issues/55 |
|
|
31 |
# TODO: Remove extra MASTER_SITES, DISTFILES/SUBDIR, EXTRACT_ONLY, post-extract |
32 |
post-extract: |
33 |
@${CP} ${DISTDIR}/${DIST_SUBDIR}/tests.py ${WRKSRC} |
34 |
|
23 |
|
35 |
do-test: |
24 |
do-test: |
36 |
cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
25 |
cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |