1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 10:45:15 +03:00
aports/community/py3-pydantic/APKBUILD
2021-07-13 07:51:57 +00:00

31 lines
937 B
Text

# Contributor: Newbyte <newbyte@disroot.org>
# Maintainer: Newbyte <newbyte@disroot.org>
pkgname=py3-pydantic
pkgver=1.8.2
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 py3-pip"
source="$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/pydantic-$pkgver"
build() {
python3 setup.py build
}
check() {
# Requires pydantic to be installed. See issue 2357 on its GitHub repo
pytest -k "not test_can_construct_models_with_all_fields"
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
0a28c64b97678b932092e546da877a4a6d104fc7d3b7cb043b3494f0b7c6900cdc1ab8a83bdbd1879956a81da1b28ca27578b1a003bdca3e08f0f107e5690e06 py3-pydantic-1.8.2.tar.gz
"