openbsd-ports/security/py-trustme/Makefile
kmos 52a4afc4b2 security/py-trustme
"You wrote a cool network client or server. It encrypts connections
using TLS. Your test suite needs to make TLS connections to itself.

Uh oh. Your test suite probably doesn't have a valid TLS certificate.
Now what?

trustme is a tiny Python package that does one thing: it gives you
a fake certificate authority (CA) that you can use to generate fake
TLS certs to use in your tests. Well, technically they're real
certs, they're just signed by your CA, which nobody trusts. But you
can trust it. Trust me."

Provides a temporary CA for doing TLS tests.

Needed for (at least) the py-aiohttp tests.

Version 0.5.3

OK kn@
2019-12-27 05:20:36 +00:00

36 lines
774 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2019/12/27 05:20:36 kmos Exp $
COMMENT = quality TLS certs while you wait, for the discerning
MODPY_EGG_VERSION = 0.5.3
DISTNAME = trustme-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = security devel
HOMEPAGE = https://github.com/python-trio/trustme
# Either MIT or Apache License 2.0
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
FLAVORS = python3
FLAVOR ?=
RUN_DEPENDS = net/py-idna${MODPY_FLAVOR} \
security/py-cryptography${MODPY_FLAVOR} \
security/py-openssl${MODPY_FLAVOR} \
security/py-service_identity${MODPY_FLAVOR}
.if !${FLAVOR:Mpython3}
RUN_DEPENDS += net/py-ipaddress
TEST_DEPENDS += devel/py-futures
.endif
.include <bsd.port.mk>