[arch-commits] Commit in python-anyio/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Sat Jun 19 10:27:57 UTC 2021
Date: Saturday, June 19, 2021 @ 10:27:57
Author: yan12125
Revision: 965485
upgpkg: python-anyio 3.2.0-1
Ref: https://github.com/pytest-dev/pytest-mock/issues/202
Modified:
python-anyio/trunk/PKGBUILD
----------+
PKGBUILD | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-19 10:25:31 UTC (rev 965484)
+++ PKGBUILD 2021-06-19 10:27:57 UTC (rev 965485)
@@ -1,7 +1,7 @@
# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
pkgname=python-anyio
-pkgver=3.1.0
+pkgver=3.2.0
pkgrel=1
pkgdesc='High level compatibility layer for multiple asynchronous event loop implementations'
arch=(any)
@@ -16,10 +16,19 @@
'python-trio: trio backend'
)
source=(https://github.com/agronholm/anyio/archive/$pkgver/anyio-$pkgver.tar.gz)
-sha256sums=('012c200b3f6566d8909aa922f8c5ad37d059e11eda96fb21348a4a63b4ea4484')
+sha256sums=('679f0289220a176440e5b6baeb5caed89d5d5f0582471fd59dc7e628b40d5ffa')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+prepare() {
+ cd anyio-$pkgver
+ # pytest-mock 3.3 comes with an API change [1], and anyio uses the new API,
+ # while python-pytest-mock in Arch is out-dated. Patch the sources to use
+ # the old API.
+ # [1] https://github.com/pytest-dev/pytest-mock/issues/202
+ sed -i 's#MockerFixture#MockFixture#' tests/test_eventloop.py
+}
+
build() {
cd anyio-$pkgver
python setup.py build
More information about the arch-commits
mailing list