summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2014-04-30 13:28:56 (GMT)
committerBritney Fransen <brfransen@gmail.com>2014-04-30 13:28:56 (GMT)
commitb220fce3c46d73b62ea09b8f4ef3db7c40b96532 (patch)
tree48256b0f62d17b6ec6706a19d74263f19b84f91f /abs/core
parent966dee2f697dcffe7aa4945854a6168efb76df0d (diff)
downloadlinhes_pkgbuild-b220fce3c46d73b62ea09b8f4ef3db7c40b96532.zip
linhes_pkgbuild-b220fce3c46d73b62ea09b8f4ef3db7c40b96532.tar.gz
linhes_pkgbuild-b220fce3c46d73b62ea09b8f4ef3db7c40b96532.tar.bz2
python-mock: initial inclusion. dep of python-pytest
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-mock/PKGBUILD40
-rw-r--r--abs/core/python_modules/python-mock/__changelog1
2 files changed, 41 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-mock/PKGBUILD b/abs/core/python_modules/python-mock/PKGBUILD
new file mode 100644
index 0000000..63fd848
--- /dev/null
+++ b/abs/core/python_modules/python-mock/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: jelle van der Waa <jelle@vdwaa.nl>
+# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
+
+pkgbase=python-mock
+pkgname=(python2-mock)
+pkgver=1.0.1
+pkgrel=3
+pkgdesc='Mocking and Patching Library for Testing'
+url='http://www.voidspace.org.uk/python/mock/'
+makedepends=('python2')
+license=('BSD')
+arch=('any')
+source=("http://pypi.python.org/packages/source/m/mock/mock-$pkgver.tar.gz")
+md5sums=('c3971991738caa55ec7c356bbc154ee2')
+
+build() {
+ cd "$srcdir"
+ cp -rf "mock-$pkgver" "mock2-$pkgver"
+
+# cd "$srcdir/mock-$pkgver"
+# python3 setup.py build
+
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py build
+}
+
+#package_python-mock() {
+#depends=('python')
+# cd "$srcdir/mock-$pkgver"
+# python3 setup.py install --optimize=1 --root="$pkgdir"
+# install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+#}
+
+package_python2-mock() {
+depends=('python2')
+ cd "$srcdir/mock2-$pkgver"
+ python2 setup.py install --optimize=1 --root="$pkgdir"
+ install -Dm644 LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
diff --git a/abs/core/python_modules/python-mock/__changelog b/abs/core/python_modules/python-mock/__changelog
new file mode 100644
index 0000000..488d3cf
--- /dev/null
+++ b/abs/core/python_modules/python-mock/__changelog
@@ -0,0 +1 @@
+PKGBUILD: rm py 3 stuff