git » python-pytest.git » commit dd20e5b

Remove python-mock checkdep

author Daniel M. Capella
2022-11-12 02:05:48 UTC
committer Daniel M. Capella
2022-11-12 02:05:48 UTC
parent 89bece6c46b8fb657c57bd2357c6df71b7bf7488

Remove python-mock checkdep

https://archlinux.org/todo/drop-python-mock-checkdepends/

PKGBUILD +11 -6

diff --git a/PKGBUILD b/PKGBUILD
index 55633d0..0e1771c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=python-pytest
 pkgver=7.2.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Simple powerful testing with Python"
 arch=('any')
 license=('MIT')
@@ -13,15 +13,18 @@ depends=('python-attrs' 'python-exceptiongroup' 'python-iniconfig'
          'python-packaging' 'python-pluggy' 'python-tomli')
 makedepends=('python-build' 'python-installer' 'python-setuptools'
              'python-wheel')
-checkdepends=('python-argcomplete' 'python-hypothesis' 'python-mock'
-              'python-nose' 'python-requests' 'python-xmlschema'
+checkdepends=('python-argcomplete' 'python-hypothesis' 'python-nose'
+              'python-requests' 'python-xmlschema'
               # Unlisted, but actually used. Check again after a while:
               'lsof' 'python-asynctest' 'python-decorator' 'python-docutils'
               'python-jinja' 'python-numpy' 'python-pexpect' 'python-pygments'
               'python-pytest-xdist' 'python-twisted')
-source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz")
-sha256sums=('c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59')
-b2sums=('051c1c28aae1b2ff97af0b6e58046d8d3ee9b72909d4c8360f7ca3b9f2ed46f24a6db2d6138d1a629ec650bf7b0a14d89b44d0779340c31b60abb8608defd30b')
+source=("https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz"
+        'pytest-fix_test_raising_repr_test.patch::https://github.com/pytest-dev/pytest/commit/54d5a63d1485110015665ece1065982407394517.patch')
+sha256sums=('c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59'
+            '0b9325fd0ab8789f3dbe82c09cb9a9cfd2aa52383925d4b8c699203c7c4284fd')
+b2sums=('051c1c28aae1b2ff97af0b6e58046d8d3ee9b72909d4c8360f7ca3b9f2ed46f24a6db2d6138d1a629ec650bf7b0a14d89b44d0779340c31b60abb8608defd30b'
+        'f87c12594070e567169bfd3ea2c0d62879b564085bdbab9b096e51061280254ef1257bc763a71f8a11d5aaaff062baf22a0a4ed28d04ee697cf93d53b411bf21')
 
 # Remove dep on setuptools_scm
 prepare() {
@@ -30,6 +33,8 @@ prepare() {
   /setuptools-scm/d" setup.cfg
   sed -i '/setuptools-scm\|wheel/d
   /\[tool.setuptools_scm\]/,/^$/d' pyproject.toml
+
+  patch --forward --strip=1 --input=../pytest-fix_test_raising_repr_test.patch
 }
 
 build() {