[arch-commits] Commit in python-nose-fixes/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 24 10:56:22 UTC 2016
Date: Saturday, December 24, 2016 @ 10:56:21
Author: felixonmars
Revision: 201362
archrelease: copy trunk to community-staging-any
Added:
python-nose-fixes/repos/community-staging-any/
python-nose-fixes/repos/community-staging-any/PKGBUILD
(from rev 201361, python-nose-fixes/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-nose-fixes/repos/community-staging-any/PKGBUILD (from rev 201361, python-nose-fixes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-24 10:56:21 UTC (rev 201362)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-nose-fixes
+pkgname=("python-nose-fixes" "python2-nose-fixes")
+pkgver=1.3
+pkgrel=2
+pkgdesc="A plugin to make nose behave better"
+arch=('any')
+url="https://github.com/cjw296/nose_fixes"
+license=('LGPL')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-nose' 'python2-nose' 'git')
+checkdepends=('python-testfixtures' 'python2-testfixtures')
+source=("git+https://github.com/cjw296/nose_fixes.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+ cp -a "nose_fixes"{,-py2}
+}
+
+build() {
+ cd "$srcdir/nose_fixes"
+ python setup.py build
+
+ cd "$srcdir/nose_fixes-py2"
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir/nose_fixes"
+ nosetests3
+
+ cd "$srcdir/nose_fixes-py2"
+ nosetests2
+}
+
+package_python-nose-fixes() {
+ depends=('python-nose')
+
+ cd nose_fixes
+ python setup.py install --root="${pkgdir}" --optimize=1
+}
+
+package_python2-nose-fixes() {
+ depends=('python2-nose')
+
+ cd nose_fixes-py2
+ python2 setup.py install --root="${pkgdir}" --optimize=1
+}
More information about the arch-commits
mailing list