68 lines
1.6 KiB
Bash
68 lines
1.6 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Daniel M. Capella <polyzen@archlinux.org>
|
|
# Contributor: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
|
|
|
|
pkgname=python-pytest
|
|
_name=${pkgname#python-}
|
|
pkgver=8.3.3
|
|
pkgrel=1
|
|
epoch=1
|
|
pkgdesc="Simple powerful testing with Python"
|
|
arch=(any)
|
|
url=https://docs.pytest.org
|
|
license=(MIT)
|
|
depends=(
|
|
python-iniconfig
|
|
python-packaging
|
|
python-pluggy
|
|
)
|
|
makedepends=(
|
|
git
|
|
python-build
|
|
python-installer
|
|
python-setuptools
|
|
python-setuptools-scm
|
|
python-wheel
|
|
)
|
|
checkdepends=(
|
|
python-argcomplete
|
|
python-attrs
|
|
python-hypothesis
|
|
python-pygments
|
|
python-requests
|
|
python-xmlschema
|
|
# Unlisted, but actually used. Check again after a while:
|
|
lsof
|
|
python-decorator
|
|
python-docutils
|
|
python-jinja
|
|
python-numpy
|
|
python-pexpect
|
|
python-pytest-xdist
|
|
python-twisted
|
|
)
|
|
source=("git+https://github.com/$_name-dev/$_name.git#tag=$pkgver")
|
|
b2sums=('34f6b3dee29bba474080ee21a58c9b968eb4704631946509d15ada2320a80c83e5a8c5ebe25fce69e65af0556ab5b6ce6a502ffad010c2986c36e5d823caeb73')
|
|
|
|
build() {
|
|
cd "$_name"
|
|
python -m build --wheel --skip-dependency-check --no-isolation
|
|
}
|
|
|
|
check() {
|
|
cd "$_name"
|
|
# https://github.com/pytest-dev/pytest/issues/10042
|
|
PYTHONPATH="$PWD/src:$PYTHONPATH" pytest -o xfail_strict=False
|
|
}
|
|
|
|
package() {
|
|
local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
|
|
install -d "$pkgdir"/usr/share/licenses/$pkgname
|
|
ln -s "$site_packages"/"$_name"-$pkgver.dist-info/LICENSE \
|
|
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
|
|
cd "$_name"
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
}
|