summaryrefslogtreecommitdiff
path: root/user/py3-mock
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 03:21:27 -0800
committerzlg <zlg@zlg.space>2018-11-21 03:35:29 -0800
commitb54e41a457e6233dc51f17322b3ce61a1c6a8f79 (patch)
tree5bd696d06ebc4e9a58fbf9ba08dc7fc5cb0eeeba /user/py3-mock
parentdad36fec1bde77520971a3af519279d5a307ce98 (diff)
downloadpackages-b54e41a457e6233dc51f17322b3ce61a1c6a8f79.tar.gz
packages-b54e41a457e6233dc51f17322b3ce61a1c6a8f79.tar.bz2
packages-b54e41a457e6233dc51f17322b3ce61a1c6a8f79.tar.xz
packages-b54e41a457e6233dc51f17322b3ce61a1c6a8f79.zip
user/py3-mock: new package
Diffstat (limited to 'user/py3-mock')
-rw-r--r--user/py3-mock/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/user/py3-mock/APKBUILD b/user/py3-mock/APKBUILD
new file mode 100644
index 000000000..d474ad7ae
--- /dev/null
+++ b/user/py3-mock/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=py3-mock
+_pkgname=${pkgname#py3-}
+pkgver=2.0.0
+pkgrel=0
+pkgdesc="A Python Mocking and Patching Library for Testing"
+url="https://github.com/testing-cabal/mock"
+arch="noarch"
+options="!check" # tries to import mock-2, uses nose
+license="BSD"
+depends="py3-pbr py3-six"
+makedepends="python3-dev"
+subpackages=""
+source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="a08007651b749d2843b94f5045d74c122958888290aea21930455538a854e6b04c07115e21d82edde996154bf597d7a8784a2f4213cbabc49a98dec22dd92238 py3-mock-2.0.0.tar.gz"