Files
MSYS2-packages/python-pytest/PKGBUILD
2022-02-06 11:21:06 +01:00

41 lines
1.1 KiB
Bash

# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
pkgbase=python-pytest
pkgname=('python-pytest')
pkgver=6.2.1
pkgrel=3
provides=("python3-pytest")
replaces=("python3-pytest")
conflicts=("python3-pytest")
pkgdesc="Simple powerful testing with Python"
arch=('any')
license=('MIT')
url="https://pytest.org/"
depends=('python'
'python-atomicwrites'
'python-attrs'
'python-more-itertools'
'python-pluggy'
'python-py'
'python-packaging'
'python-iniconfig'
'python-toml'
'python-six')
makedepends=('python-setuptools-scm'
'python-setuptools')
source=("pytest-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz")
sha256sums=('efc60ff9d50f63a6cc1571f5f121155cd1775905a29dbc58b55612ac5a81f530')
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
cd "${srcdir}/pytest-${pkgver}"
/usr/bin/python setup.py build
}
package() {
cd pytest-${pkgver}
/usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}