1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 17:25:17 +03:00
aports/community/py3-pydantic-settings/APKBUILD
2025-05-11 01:44:09 +02:00

53 lines
1.4 KiB
Text

# Contributor: Steven Guikal <void@fluix.one>
# Maintainer: Steven Guikal <void@fluix.one>
pkgname=py3-pydantic-settings
pkgdesc="Settings management using pydantic"
pkgver=2.9.1
pkgrel=0
arch="noarch"
url="https://github.com/pydantic/pydantic-settings"
license="MIT"
depends="
python3
py3-dotenv
py3-pydantic
py3-typing-inspection
"
makedepends="
py3-gpep517
py3-hatchling
py3-setuptools
py3-wheel
"
checkdepends="
py3-pytest
py3-pytest-mock
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/pydantic/pydantic-settings/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/pydantic-settings-$pkgver
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
# test_docs.py needs pytest-examples which is not packaged
# test_source_azure_key_vault.py requires azure-keyvault-secrets
# test_source_gcp_secret_manager.py requires google-cloud-secret-manager
testenv/bin/python3 -m pytest --ignore=tests/test_docs.py \
--ignore tests/test_source_azure_key_vault.py \
--ignore tests/test_source_gcp_secret_manager.py
}
package() {
python3 -m installer -d "$pkgdir" dist/*.whl
}
sha512sums="
51e2ca06da7afab1bb0609945890c0ea8635d83d76ce0b84ab5937a93d8c4c62dae8ea830fccbbf48887c0aee409dbe4ababf55464c82cd71906bdba31c0dc13 py3-pydantic-settings-2.9.1.tar.gz
"