Date: Sunday, November 13, 2022 @ 13:05:00
  Author: yan12125
Revision: 1347242

upgpkg: python-sphinxcontrib-blockdiag 3.0.0-2; move away from python-mock [1]

Not proposing the patch to upstream, which seems inactive

Also adds a note about moving away from python-nose

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

Added:
  python-sphinxcontrib-blockdiag/trunk/use-unittest-mock.diff
Modified:
  python-sphinxcontrib-blockdiag/trunk/PKGBUILD

------------------------+
 PKGBUILD               |   12 ++++++++----
 use-unittest-mock.diff |   10 ++++++++++
 2 files changed, 18 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-13 12:52:44 UTC (rev 1347241)
+++ PKGBUILD    2022-11-13 13:05:00 UTC (rev 1347242)
@@ -2,7 +2,7 @@
 
 pkgname=python-sphinxcontrib-blockdiag
 pkgver=3.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A sphinx extension for embedding block diagram using blockdiag'
 arch=(any)
 url='https://github.com/blockdiag/sphinxcontrib-blockdiag'
@@ -10,18 +10,22 @@
 depends=(python blockdiag python-sphinx)
 makedepends=(python-setuptools)
 # otf-ipafont is used by test_latex
-checkdepends=(python-nose python-sphinx-testing python-mock python-reportlab 
otf-ipafont)
+# python-nose will not be needed after 
https://github.com/blockdiag/sphinxcontrib-blockdiag/pull/25
+checkdepends=(python-nose python-sphinx-testing python-reportlab otf-ipafont)
 optdepends=(
   'python-reportlab: for using PDF as the format of images'
 )
 
source=("https://github.com/blockdiag/sphinxcontrib-blockdiag/archive/$pkgver/$pkgname-$pkgver.tar.gz";
-        ipafont-path.diff)
+        ipafont-path.diff
+        use-unittest-mock.diff)
 sha256sums=('9061847004d900b458c2d611b4b539b2a3d594648060a222959f49c837cb41dc'
-            'cd127f6f66d49d91d1b8716b5361d917c354e8eed6b6817e037d2c2441b7e9e8')
+            'cd127f6f66d49d91d1b8716b5361d917c354e8eed6b6817e037d2c2441b7e9e8'
+            '63d132b35ebb7702c2d8d638787bd54c3a12506a634d9181f008d4c66d3bb938')
 
 prepare() {
   cd sphinxcontrib-blockdiag-$pkgver
   patch -Np1 -i ../ipafont-path.diff
+  patch -Np1 -i ../use-unittest-mock.diff
 }
 
 build() {

Added: use-unittest-mock.diff
===================================================================
--- use-unittest-mock.diff                              (rev 0)
+++ use-unittest-mock.diff      2022-11-13 13:05:00 UTC (rev 1347242)
@@ -0,0 +1,10 @@
+--- sphinxcontrib-blockdiag-3.0.0/tests/test_errors.py.orig    2022-11-13 
03:36:24.915816674 +0000
++++ sphinxcontrib-blockdiag-3.0.0/tests/test_errors.py 2022-11-13 
03:36:29.122741097 +0000
+@@ -1,6 +1,6 @@
+ # -*- coding: utf-8 -*-
+ 
+-from mock import patch
++from unittest.mock import patch
+ from sphinx_testing import with_app
+ 
+ import sys

Reply via email to