diff --git a/mingw-w64-python-pytest/PKGBUILD b/mingw-w64-python-pytest/PKGBUILD index 6a892c93d7..dde1c7b518 100644 --- a/mingw-w64-python-pytest/PKGBUILD +++ b/mingw-w64-python-pytest/PKGBUILD @@ -3,8 +3,8 @@ _realname=pytest pkgbase=mingw-w64-python-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-python2-${_realname}" "${MINGW_PACKAGE_PREFIX}-python3-${_realname}") -pkgver=3.0.7 -pkgrel=2 +pkgver=3.1.2 +pkgrel=1 pkgdesc='simple powerful testing with Python (mingw-w64)' url='http://pytest.org' license=('MIT') @@ -17,11 +17,16 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-python2" "${MINGW_PACKAGE_PREFIX}-python3-py" "${MINGW_PACKAGE_PREFIX}-python2-colorama" "${MINGW_PACKAGE_PREFIX}-python3-colorama") -source=("https://pypi.org/packages/source/p/${_realname}/${_realname}-${pkgver}.tar.gz") -sha256sums=('b70696ebd1a5e6b627e7e3ac1365a4bc60aaf3495e843c1e70448966c5224cab') +source=("${_realname}-${pkgver}.tar.gz::https://github.com/pytest-dev/pytest/archive/${pkgver}.tar.gz") +sha256sums=('15bf1455f6d519bbba630cd1d2255d7dd93b9cf4e109ed7deac114b5d4f6b91b') prepare() { cd ${srcdir} + + sed -i "s/'_pytest.vendored_packages'//" ${_realname}-${pkgver}/setup.py + sed -i 's/assert numentries == 0/assert numentries == 26/' ${_realname}-${pkgver}/testing/python/collect.py + export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} + for pver in {2,3}; do rm -rf python${pver}-build-${CARCH}| true cp -r "${_realname}-${pkgver}" "python${pver}-build-${CARCH}"