# Contributor: Steven Guikal # Maintainer: Steven Guikal 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 "