Makefile 972 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.9 2017/04/24 09:32:14 sthen Exp $
  2. COMMENT = Python library for OAuth
  3. MODPY_EGG_VERSION = 2.0.2
  4. GH_ACCOUNT = idan
  5. GH_PROJECT = oauthlib
  6. GH_TAGNAME = v${MODPY_EGG_VERSION}
  7. PKGNAME = py-oauthlib-${MODPY_EGG_VERSION}
  8. CATEGORIES = security
  9. MAINTAINER = Johan Huldtgren <jhuldtgren@gmail.com>
  10. # BSD
  11. PERMIT_PACKAGE_CDROM = Yes
  12. MODULES = lang/python
  13. MODPY_SETUPTOOLS = Yes
  14. RUN_DEPENDS = devel/py-blinker${MODPY_FLAVOR} \
  15. security/py-cryptography${MODPY_FLAVOR} \
  16. www/py-jwt${MODPY_FLAVOR}
  17. TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR} \
  18. devel/py-coverage${MODPY_FLAVOR} \
  19. devel/py-mock${MODPY_FLAVOR} \
  20. ${RUN_DEPENDS}
  21. FLAVORS = python3
  22. FLAVOR ?=
  23. post-extract:
  24. chmod -R o+rX ${WRKSRC}
  25. # tests/oauth2/rfc5849/endpoints/test_error_responses.py
  26. # will throw a warning when make test is run under
  27. # the python3 flavor, fixing this breaks python2 though.
  28. do-test:
  29. cd ${WRKSRC} && ${MODPY_BIN} -m unittest discover
  30. .include <bsd.port.mk>