Files
MSYS2-packages/python-pytest/PKGBUILD
Matthieu Darbois 618b34ecc1 python-pytest: now depends on python-pygments (#5497)
* [python-pytest] now depends on python-pygments

fix #5496

* pkgrel

---------

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
2025-07-06 15:20:25 +02:00

44 lines
1.2 KiB
Bash

# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
pkgbase=python-pytest
pkgname=('python-pytest')
pkgver=8.4.1
pkgrel=2
provides=("python3-pytest")
replaces=("python3-pytest")
conflicts=("python3-pytest")
pkgdesc="Simple powerful testing with Python"
arch=('any')
license=('spdx:MIT')
url="https://pytest.org/"
msys2_repository_url="https://github.com/pytest-dev/pytest"
msys2_references=(
"anitya: 3765"
"purl: pkg:pypi/pytest"
)
depends=('python'
'python-attrs'
'python-pluggy'
'python-packaging'
'python-iniconfig'
'python-pygments')
makedepends=('python-build'
'python-installer'
'python-setuptools'
'python-setuptools-scm')
source=("pytest-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz")
sha256sums=('9a41951da668f437335d6f7fca41b38d5194d7ef6dcf8575be11c68dfe3b4485')
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"
}