# Maintainer: J. Peter Mugaas pkgbase=python-pytest pkgname=('python-pytest') pkgver=7.4.4 pkgrel=1 provides=("python3-pytest") replaces=("python3-pytest") conflicts=("python3-pytest") pkgdesc="Simple powerful testing with Python" arch=('any') license=('MIT') url="https://pytest.org/" msys2_repository_url="https://github.com/pytest-dev/pytest" depends=('python' 'python-attrs' 'python-pluggy' 'python-packaging' 'python-iniconfig') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel') source=("pytest-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz") sha256sums=('4f4e35d86a155fe870137979829b7a916bffffb570b0d5dab0429e0fdc37dc8e') build() { export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} cd "${srcdir}/pytest-${pkgver}" /usr/bin/python -m build --wheel --skip-dependency-check --no-isolation } package() { cd pytest-${pkgver} /usr/bin/python -m installer --destdir="${pkgdir}" dist/*.whl install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }