[arch-commits] Commit in python-nose-fixes/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Jul 23 15:32:26 UTC 2018
Date: Monday, July 23, 2018 @ 15:32:26
Author: foutrelis
Revision: 363026
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 363025, python-nose-fixes/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-nose-fixes/repos/community-staging-any/PKGBUILD (from rev 363025, python-nose-fixes/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-23 15:32:26 UTC (rev 363026)
@@ -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=3
+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