python-pytest: Different versions for python2 and 3
This commit is contained in:
39
python3-pytest/PKGBUILD
Normal file
39
python3-pytest/PKGBUILD
Normal file
@@ -0,0 +1,39 @@
|
||||
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
|
||||
|
||||
pkgbase=python-pytest
|
||||
pkgname=('python3-pytest')
|
||||
pkgver=5.0.1
|
||||
pkgrel=1
|
||||
pkgdesc="Simple powerful testing with Python"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
url="https://pytest.org/"
|
||||
depends=('python3'
|
||||
'python3-atomicwrites'
|
||||
'python3-attrs'
|
||||
'python3-more-itertools'
|
||||
'python3-pluggy'
|
||||
'python3-py'
|
||||
'python3-setuptools'
|
||||
'python3-six')
|
||||
makedepends=('python3-setuptools-scm')
|
||||
source=("pytest-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz")
|
||||
sha512sums=('738f8a3b38ad36be6a66ad036999a9b78023c40dd6c9cb9bd01a023841011ae276fec556eb6dabf35638a6c7cf49304c140d90d5174ded710e0f51b51145e5cb')
|
||||
|
||||
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}"
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
package() {
|
||||
cd pytest-${pkgver}
|
||||
python3 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