mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 01:35:13 +03:00
48 lines
1 KiB
Text
48 lines
1 KiB
Text
# Maintainer:
|
|
pkgname=py3-pytest-mypy
|
|
pkgver=0.10.3
|
|
pkgrel=1
|
|
pkgdesc="Pytest plugin for mypy"
|
|
url="https://github.com/realpython/pytest-mypy"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-attrs
|
|
py3-filelock
|
|
py3-mypy
|
|
py3-pytest
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools_scm
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pexpect
|
|
py3-pytest-xdist
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/realpython/pytest-mypy/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-mypy-$pkgver"
|
|
|
|
build() {
|
|
SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \
|
|
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 -n auto
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
74e0a6759cedd745ea57c0025698b09fe1297fc9fa344b72130a04f43ee06b7f4ceedf8473948429086f15fbb69efed51f5c934a83343cf7b4c92a5b400e6795 py3-pytest-mypy-0.10.3.tar.gz
|
|
"
|