git: 1432dd292312 - main - devel/py-pydantic-vault: Add py-pydantic-vault 0.8.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Sep 2023 23:34:48 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=1432dd292312a52cb8cf72ff931894814044410a commit 1432dd292312a52cb8cf72ff931894814044410a Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2023-09-22 23:22:23 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2023-09-22 23:22:23 +0000 devel/py-pydantic-vault: Add py-pydantic-vault 0.8.0 Pydantic-Vault is a simple extension to Pydantic BaseSettings that can retrieve secrets stored in Hashicorp Vault With Pydantic and Pydantic-Vault, you can easily declare your configuration in a type-hinted class, and load configuration from environment variables or Vault secrets. Pydantic-Vault will work the same when developing locally (where you probably login with the Vault CLI and your own user account) and when deploying in production (using a Vault Approle or Kubernetes authentication for example). --- devel/Makefile | 1 + devel/py-pydantic-vault/Makefile | 24 ++++++++++++++++++++++++ devel/py-pydantic-vault/distinfo | 3 +++ devel/py-pydantic-vault/pkg-descr | 8 ++++++++ 4 files changed, 36 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d578bd9e4a24..1736c12b1bf3 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5273,6 +5273,7 @@ SUBDIR += py-pydantic SUBDIR += py-pydantic-core SUBDIR += py-pydantic-extra-types + SUBDIR += py-pydantic-vault SUBDIR += py-pydantic2 SUBDIR += py-pydash SUBDIR += py-pydecor diff --git a/devel/py-pydantic-vault/Makefile b/devel/py-pydantic-vault/Makefile new file mode 100644 index 000000000000..ab19c5860cd3 --- /dev/null +++ b/devel/py-pydantic-vault/Makefile @@ -0,0 +1,24 @@ +PORTNAME= pydantic-vault +PORTVERSION= 0.8.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= pydantic_vault-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Pydantic BaseSettings extension to retrieve secrets from Hashicorp Vault +WWW= https://github.com/nymous/pydantic-vault + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hvac>=0.10.6:devel/py-hvac@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pydantic>=1.8<2:devel/py-pydantic@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-pydantic-vault/distinfo b/devel/py-pydantic-vault/distinfo new file mode 100644 index 000000000000..3597b8d64a37 --- /dev/null +++ b/devel/py-pydantic-vault/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1695357787 +SHA256 (pydantic_vault-0.8.0.tar.gz) = 9fb0f136100f9f82bc49b8808a3bc88fa65b50ec27d5dc07cf907abe157e9e5e +SIZE (pydantic_vault-0.8.0.tar.gz) = 15471 diff --git a/devel/py-pydantic-vault/pkg-descr b/devel/py-pydantic-vault/pkg-descr new file mode 100644 index 000000000000..6cd5ed5ca6c1 --- /dev/null +++ b/devel/py-pydantic-vault/pkg-descr @@ -0,0 +1,8 @@ +Pydantic-Vault is a simple extension to Pydantic BaseSettings that can retrieve +secrets stored in Hashicorp Vault + +With Pydantic and Pydantic-Vault, you can easily declare your configuration in a +type-hinted class, and load configuration from environment variables or Vault +secrets. Pydantic-Vault will work the same when developing locally (where you +probably login with the Vault CLI and your own user account) and when deploying +in production (using a Vault Approle or Kubernetes authentication for example).