Date: Friday, November 18, 2022 @ 20:50:45
  Author: jelle
Revision: 1349615

Stop using python-mock

Modified:
  python-fixtures/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-18 20:46:00 UTC (rev 1349614)
+++ PKGBUILD    2022-11-18 20:50:45 UTC (rev 1349615)
@@ -2,16 +2,21 @@
 
 pkgname=python-fixtures
 pkgver=4.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Fixtures, reusable state for writing clean tests and more"
 arch=('any')
 license=('Apache')
 url="https://launchpad.net/python-fixtures";
 depends=('python-pbr' 'python-six' 'python-testtools')
-checkdepends=('python-subunit' 'python-mock')
+checkdepends=('python-subunit')
 source=("https://pypi.io/packages/source/f/fixtures/fixtures-$pkgver.tar.gz";)
 
sha512sums=('722436f146768e4db1e3312a0db1edab2a7daa86107825fb2436654eaf74e00f569357531316df506ef3f80cef89ac7185aee1adf0b00a6ee85cbc9811ca8100')
 
+prepare() {
+  cd fixtures-$pkgver
+  sed -i 's/import mock/from unittest import mock/' 
fixtures/tests/_fixtures/test_mockpatch.py
+}
+
 build() {
   cd fixtures-$pkgver
   python setup.py build

Reply via email to