1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-pydantic/APKBUILD
2023-02-20 20:31:28 +00:00

34 lines
1.1 KiB
Text

# Contributor: Newbyte <newbyte@disroot.org>
# Maintainer: Newbyte <newbyte@disroot.org>
pkgname=py3-pydantic
pkgver=1.10.5
pkgrel=0
pkgdesc="Data parsing and validation using Python type hints"
url="https://github.com/samuelcolvin/pydantic"
arch="noarch"
license="MIT"
depends="python3 py3-typing-extensions"
makedepends="py3-setuptools"
checkdepends="py3-hypothesis py3-pytest py3-pytest-mock"
source="$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
deprecation-warning.patch"
builddir="$srcdir/pydantic-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 -m venv --clear --without-pip --system-site-packages test-env
test-env/bin/python3 setup.py install
test-env/bin/python3 -m pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
2f25e5ed3016a64af05674a21dd8dccf3af7e075237b0d078433fa347e58482113e243f9c21ddd55677432d22da692cbb24a682c5af2f09bfdb6fb5cbd53d408 py3-pydantic-1.10.5.tar.gz
20fe12362cbe6a7d9f393eea71f8aa968e4a09cd6e4594505a95f889b5ec27f06c1214ef8aa841f3aa5b57f6c9bb41fbe382ef7512724e5e0947e2e916f495c9 deprecation-warning.patch
"