Import py-service_identity-16.0.0, you know the drill.

service_identity aspires to give you all the tools you need for
verifying whether a certificate is valid for the intended purposes.

In the simplest case, this means host name verification.  However,
service_identity implements RFC 6125 fully and plans to add other
relevant RFCs too.

From Pavel Korovin, ok sthen@
This commit is contained in:
landry 2017-05-06 09:48:44 +00:00
parent dd67028275
commit 3cda241b4a
5 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2017/05/06 09:48:44 landry Exp $
COMMENT = service identity verification for pyOpenSSL
MODPY_EGG_VERSION = 16.0.0
DISTNAME = service_identity-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = security
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
RUN_DEPENDS = devel/py-asn1${MODPY_FLAVOR} \
devel/py-asn1-modules${MODPY_FLAVOR} \
devel/py-attrs${MODPY_FLAVOR} \
net/py-idna${MODPY_FLAVOR} \
security/py-openssl${MODPY_FLAVOR}
TEST_DEPENDS = devel/py-test${MODPY_FLAVOR}
FLAVORS = python3
FLAVOR ?=
TEST_ENV += PYTHONPATH=${WRKSRC}/lib
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${MODPY_BIN} -m pytest
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (service_identity-16.0.0.tar.gz) = BjDiIvWfkfPbSYvkax2Hn/IglV17utcZpcua0U48MDY=
SIZE (service_identity-16.0.0.tar.gz) = 30270

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-setup_cfg,v 1.1.1.1 2017/05/06 09:48:44 landry Exp $
--- setup.cfg.orig
+++ setup.cfg
@@ -1,4 +1,4 @@
-[pytest]
+[tool:pytest]
minversion = 2.8.2
strict = true
addopts = -ra

View File

@ -0,0 +1,6 @@
service_identity aspires to give you all the tools you need for
verifying whether a certificate is valid for the intended purposes.
In the simplest case, this means host name verification. However,
service_identity implements RFC 6125 fully and plans to add other
relevant RFCs too.

View File

@ -0,0 +1,20 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/05/06 09:48:44 landry Exp $
lib/python${MODPY_VERSION}/site-packages/service_identity/
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/service_identity-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/service_identity/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/service_identity/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/service_identity/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/service_identity/${MODPY_PYCACHE}_common.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/service_identity/${MODPY_PYCACHE}_compat.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/service_identity/${MODPY_PYCACHE}exceptions.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/service_identity/${MODPY_PYCACHE}pyopenssl.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/service_identity/_common.py
lib/python${MODPY_VERSION}/site-packages/service_identity/_compat.py
lib/python${MODPY_VERSION}/site-packages/service_identity/exceptions.py
lib/python${MODPY_VERSION}/site-packages/service_identity/pyopenssl.py