Import py-macaroons 0.13.0, from maintainer Renaud Allard

Macaroons, like cookies, are a form of bearer credential. Unlike opaque tokens,
macaroons embed caveats that define specific authorization requirements for the
target service, the service that issued the root macaroon and which is capable
of verifying the integrity of macaroons it recieves.

Macaroons allow for delegation and attenuation of authorization. They are
simple and fast to verify, and decouple authorization policy from the
enforcement of that policy.

dependency for upcoming synapse/matrix server port.

ok solene@
This commit is contained in:
landry 2020-03-08 16:47:24 +00:00
parent e24420c37a
commit 107427bd92
4 changed files with 98 additions and 0 deletions

27
www/py-macaroons/Makefile Normal file
View File

@ -0,0 +1,27 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/03/08 16:47:24 landry Exp $
COMMENT = macaroon library for Python
MODPY_EGG_VERSION = 0.13.0
DISTNAME = pymacaroons-${MODPY_EGG_VERSION}
PKGNAME = py-macaroons-${MODPY_EGG_VERSION}
CATEGORIES = www
HOMEPAGE = https://github.com/ecordell/pymacaroons
MAINTAINER = Renaud Allard <renaud@allard.it>
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_SETUPTOOLS = Yes
MODPY_PI = Yes
FLAVORS = python3
FLAVOR = python3
RUN_DEPENDS = security/py-libnacl${MODPY_FLAVOR} \
devel/py-six${MODPY_FLAVOR}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (pymacaroons-0.13.0.tar.gz) = Hmu6QqX2bCRa3zilpABqmdzAagcDeG6mNgmGZ9QpA7g=
SIZE (pymacaroons-0.13.0.tar.gz) = 21083

View File

@ -0,0 +1,8 @@
Macaroons, like cookies, are a form of bearer credential. Unlike opaque tokens,
macaroons embed caveats that define specific authorization requirements for the
target service, the service that issued the root macaroon and which is capable
of verifying the integrity of macaroons it recieves.
Macaroons allow for delegation and attenuation of authorization. They are
simple and fast to verify, and decouple authorization policy from the
enforcement of that policy.

View File

@ -0,0 +1,61 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/03/08 16:47:24 landry Exp $
lib/python${MODPY_VERSION}/site-packages/pymacaroons/
lib/python${MODPY_VERSION}/site-packages/pymacaroons-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/pymacaroons-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/pymacaroons-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/pymacaroons-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/pymacaroons-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/pymacaroons-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/pymacaroons/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}caveat.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}exceptions.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}macaroon.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/${MODPY_PYCACHE}verifier.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/${MODPY_PYCACHE}base_binder.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/${MODPY_PYCACHE}hash_signatures_binder.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/base_binder.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/binders/hash_signatures_binder.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}base_first_party.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}base_third_party.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}encrypted_first_party.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}first_party.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/${MODPY_PYCACHE}third_party.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/base_first_party.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/base_third_party.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/encrypted_first_party.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/first_party.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/caveat_delegates/third_party.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/exceptions.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/${MODPY_PYCACHE}base_field_encryptor.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/${MODPY_PYCACHE}secret_box_encryptor.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/base_field_encryptor.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/field_encryptors/secret_box_encryptor.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/macaroon.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/${MODPY_PYCACHE}base_serializer.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/${MODPY_PYCACHE}binary_serializer.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/${MODPY_PYCACHE}json_serializer.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/base_serializer.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/binary_serializer.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/serializers/json_serializer.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/utils.py
lib/python${MODPY_VERSION}/site-packages/pymacaroons/verifier.py