[arch-commits] Commit in python-ddt/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 18:40:14 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:40:13
  Author: felixonmars
Revision: 349062

archrelease: copy trunk to community-staging-any

Added:
  python-ddt/repos/community-staging-any/
  python-ddt/repos/community-staging-any/PKGBUILD
    (from rev 349061, python-ddt/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: python-ddt/repos/community-staging-any/PKGBUILD (from rev 349061, python-ddt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:40:13 UTC (rev 349062)
@@ -0,0 +1,51 @@
+# $Id: PKGBUILD 175443 2016-05-16 05:54:00Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-ddt
+pkgname=('python-ddt' 'python2-ddt')
+pkgver=1.1.3
+pkgrel=2
+pkgdesc="Data-Driven/Decorated Tests"
+arch=('any')
+license=('MIT')
+url="https://github.com/txels/ddt"
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-yaml' 'python2-yaml')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/txels/ddt/archive/$pkgver.tar.gz")
+sha512sums=('11ca15bfd521f3edec0bc7127665ba5dc5bf1fa54b752cce86b9fe6deffdc4e63c8fbf933a55dabbe9499ff972f1d6769144c2deffb02052733ed7c9e6115356')
+
+prepare() {
+  cp -a ddt-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/ddt-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/ddt-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/ddt-$pkgver
+  nosetests3
+
+  cd "$srcdir"/ddt-$pkgver-py2
+  nosetests2
+}
+
+package_python-ddt() {
+  depends=('python')
+
+  cd ddt-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}
+
+package_python2-ddt() {
+  depends=('python2')
+
+  cd ddt-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}



More information about the arch-commits mailing list