mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 20:28:14 +02:00
32 lines
1 KiB
Text
32 lines
1 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=py3-typing-inspection
|
|
pkgver=0.4.0
|
|
pkgrel=0
|
|
pkgdesc="Provides tools to inspect type annotations at runtime"
|
|
url="https://github.com/pydantic/typing-inspection"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-typing-extensions"
|
|
makedepends="py3-gpep517 py3-hatchling"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/typing_inspection/typing_inspection-$pkgver.tar.gz"
|
|
builddir="$srcdir/typing_inspection-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
95e725e7db7609406f8a63dda46ac7559adf13ef5d63e44a43966977163ff69825df465fb741d288e63ee01240dc3fe8b1314b0cd5030f2d5b08d24a739b7b02 py3-typing-inspection-0.4.0.tar.gz
|
|
"
|