blob: 0bd525cbb948dbbf2e829ece15f250cad4093bf6 (
plain)
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
|
# $NetBSD: Makefile,v 1.1 2018/05/17 08:09:11 adam Exp $
DISTNAME= python-subunit-1.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^python-//}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-subunit/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://launchpad.net/subunit
COMMENT= Python implementation of subunit test streaming protocol
LICENSE= apache-2.0 OR modified-bsd
DEPENDS+= ${PYPKGPREFIX}-extras-[0-9]*:../../devel/py-extras
DEPENDS+= ${PYPKGPREFIX}-testtools>=0.9.34:../../devel/py-testtools
TEST_DEPENDS+= ${PYPKGPREFIX}-fixtures-[0-9]*:../../devel/py-fixtures
TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
TEST_DEPENDS+= ${PYPKGPREFIX}-testscenarios-[0-9]*:../../devel/py-testscenarios
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
for f in subunit-1to2 subunit-1to2 subunit-2to1 subunit-filter subunit-ls \
subunit-notify subunit-output subunit-stats subunit-tags subunit2csv \
subunit2disk subunit2gtk subunit2junitxml subunit2pyunit tap2subunit; do \
${MV} $${f} $${f}-${PYVERSSUFFIX} || ${TRUE}; \
done
do-test:
cd ${WRKSRC}/python && ${PYTHONBIN} -m unittest discover -v
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|