blob: e5a5f24e6444da3e3e666f6c80090d3af4bfcd8d (
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
|
# $NetBSD: Makefile,v 1.41 2019/11/06 17:24:50 adam Exp $
DISTNAME= cffi-1.13.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/cffi/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://cffi.readthedocs.io/
COMMENT= Foreign Function Interface for Python calling C code
LICENSE= mit
USE_LANGUAGES= c c++ # c++ for testing only
USE_TOOLS+= pkg-config
DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
DISTUTILS_BUILDDIR_IN_TEST_ENV= yes
# to avoid py-hypothesis
TEST_ENV+= PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
TEST_ENV+= TMPDIR=${WRKDIR}/tmp
do-test:
${MKDIR} ${WRKDIR}/tmp
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} testing
.include "../../devel/libffi/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|