From b220fce3c46d73b62ea09b8f4ef3db7c40b96532 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 30 Apr 2014 13:28:56 +0000 Subject: python-mock: initial inclusion. dep of python-pytest --- abs/core/python_modules/python-mock/PKGBUILD | 40 +++++++++++++++++++++++++ abs/core/python_modules/python-mock/__changelog | 1 + 2 files changed, 41 insertions(+) create mode 100644 abs/core/python_modules/python-mock/PKGBUILD create mode 100644 abs/core/python_modules/python-mock/__changelog 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 +# Contributor: Felix Kaiser + +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 -- cgit v0.12