Makefile 751 B

123456789101112131415161718192021222324252627282930313233343536
  1. # $OpenBSD: Makefile,v 1.1.1.1 2017/05/06 09:48:44 landry Exp $
  2. COMMENT = service identity verification for pyOpenSSL
  3. MODPY_EGG_VERSION = 16.0.0
  4. DISTNAME = service_identity-${MODPY_EGG_VERSION}
  5. PKGNAME = py-${DISTNAME}
  6. CATEGORIES = security
  7. # MIT
  8. PERMIT_PACKAGE_CDROM = Yes
  9. MODULES = lang/python
  10. MODPY_PI = Yes
  11. MODPY_SETUPTOOLS = Yes
  12. RUN_DEPENDS = devel/py-asn1${MODPY_FLAVOR} \
  13. devel/py-asn1-modules${MODPY_FLAVOR} \
  14. devel/py-attrs${MODPY_FLAVOR} \
  15. net/py-idna${MODPY_FLAVOR} \
  16. security/py-openssl${MODPY_FLAVOR}
  17. TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
  18. FLAVORS = python3
  19. FLAVOR ?=
  20. TEST_ENV += PYTHONPATH=${WRKSRC}/lib
  21. do-test:
  22. cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${MODPY_BIN} -m pytest
  23. .include <bsd.port.mk>