[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Wed Dec 14 07:34:37 UTC 2016
Date: Wednesday, December 14, 2016 @ 07:34:36
Author: felixonmars
Revision: 199312
addpkg: python-mockito 0.7.0-1
Added:
python-mockito/
python-mockito/repos/
python-mockito/trunk/
python-mockito/trunk/PKGBUILD
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Added: python-mockito/trunk/PKGBUILD
===================================================================
--- python-mockito/trunk/PKGBUILD (rev 0)
+++ python-mockito/trunk/PKGBUILD 2016-12-14 07:34:36 UTC (rev 199312)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Thomas S Hatch <thatch45 at gmail.com>
+
+pkgbase=python-mockito
+pkgname=('python-mockito' 'python2-mockito')
+pkgver=0.7.0
+pkgrel=1
+pkgdesc='Spying framework'
+arch=('any')
+url='https://github.com/kaste/mockito-python'
+license=('MIT')
+makedepends=('python-nose' 'python2-nose' 'python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/kaste/mockito-python.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+ cp -a mockito-python{,-py2}
+}
+
+build() {
+ cd "$srcdir"/mockito-python
+ python setup.py build
+
+ cd "$srcdir"/mockito-python-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/mockito-python
+ python setup.py test
+
+ cd "$srcdir"/mockito-python-py2
+ python2 setup.py test
+}
+
+package_python-mockito() {
+ depends=('python')
+
+ cd mockito-python
+ python setup.py install --root="$pkgdir" -O1
+}
+
+package_python2-mockito() {
+ depends=('python2')
+
+ cd mockito-python-py2
+ python2 setup.py install --root="$pkgdir" -O1
+}
Property changes on: python-mockito/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list