Drop Python2 support. Round 4
This commit is contained in:
42
python-pytest/PKGBUILD
Normal file
42
python-pytest/PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
||||
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
|
||||
|
||||
pkgbase=python-pytest
|
||||
pkgname=('python-pytest')
|
||||
pkgver=5.3.5
|
||||
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/"
|
||||
depends=('python'
|
||||
'python-atomicwrites'
|
||||
'python-attrs'
|
||||
'python-more-itertools'
|
||||
'python-pluggy'
|
||||
'python-py'
|
||||
'python-setuptools'
|
||||
'python-six')
|
||||
makedepends=('python-setuptools-scm')
|
||||
source=("pytest-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz")
|
||||
sha512sums=('487bd492522d85184d89c834e606063fc2a1ee3fb374f4a11d851db0dbf6e9d4bea749ee96727600a78dac1dc24f83798d2214b3043bad8fa3da647026b43e04')
|
||||
|
||||
prepare() {
|
||||
sed -i "s/'_pytest.vendored_packages'//" pytest-${pkgver}/setup.py
|
||||
sed -i 's/assert numentries == 0/assert numentries == 26/' pytest-${pkgver}/testing/python/collect.py
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user