aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2020-05-07 08:57:49 +0100
committerLeo <thinkabit.ukim@gmail.com>2020-05-21 18:01:22 +0000
commit187b38ff18825d6e0fd63b077aa9a129c007a113 (patch)
tree955898617735bff63da70b1f87ef230c211aabb0
parentbab4aca1d8ed9b0f4ef7eeec2abf2d3e491a231e (diff)
downloadaports-187b38ff18825d6e0fd63b077aa9a129c007a113.tar.gz
aports-187b38ff18825d6e0fd63b077aa9a129c007a113.tar.bz2
aports-187b38ff18825d6e0fd63b077aa9a129c007a113.tar.xz
main/py3-mock: upgrade to 4.0.2
Also enable check()
-rw-r--r--main/py3-mock/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/main/py3-mock/APKBUILD b/main/py3-mock/APKBUILD
index 45ea092157..faa3073847 100644
--- a/main/py3-mock/APKBUILD
+++ b/main/py3-mock/APKBUILD
@@ -2,16 +2,17 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-mock
_pkgname=mock
-pkgver=2.0.0
-pkgrel=6
+pkgver=4.0.2
+pkgrel=0
pkgdesc="Python3 Mocking and Patching Library for Testing"
url="https://github.com/testing-cabal/mock"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-pbr py3-six"
makedepends="py3-setuptools"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+source="https://files.pythonhosted.org/packages/source/m/mock/mock-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+checkdepends="py3-pytest"
replaces="py-mock" # Backwards compatibility
provides="py-mock=$pkgver-r$pkgrel" # Backwards compatibility
@@ -24,4 +25,10 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="a08007651b749d2843b94f5045d74c122958888290aea21930455538a854e6b04c07115e21d82edde996154bf597d7a8784a2f4213cbabc49a98dec22dd92238 mock-2.0.0.tar.gz"
+check() {
+ # partial test suite as community/py3-pytest-asyncio and
+ # testing/py3-pytest-trio aren't available
+ python3 -m pytest
+}
+
+sha512sums="82bfef0ffa2888be48bc50a0fa2259685aa0f9ddab7ec0f6329806487765e2998e10fe59c1d0600a6bdc1f19b5603de9e380a6db40279cc61cf66081303be7cc mock-4.0.2.tar.gz"