[arch-commits] Commit in (4 files)

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Nov 18 08:04:01 UTC 2018


    Date: Sunday, November 18, 2018 @ 08:04:01
  Author: yan12125
Revision: 408653

addpkg: python-nose-random 1.0.0-2

Added:
  python-nose-random/
  python-nose-random/repos/
  python-nose-random/trunk/
  python-nose-random/trunk/PKGBUILD

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

Added: python-nose-random/trunk/PKGBUILD
===================================================================
--- python-nose-random/trunk/PKGBUILD	                        (rev 0)
+++ python-nose-random/trunk/PKGBUILD	2018-11-18 08:04:01 UTC (rev 408653)
@@ -0,0 +1,31 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgname=python-nose-random
+_pkgname=nose-random
+pkgver=1.0.0
+pkgrel=2
+pkgdesc='Nose plugin to facilitate randomized unit testing'
+arch=(any)
+url='https://github.com/ZoomerAnalytics/nose-random'
+license=(MIT)
+depends=(python-nose)
+makedepends=(python-setuptools)
+source=("$pkgname-$pkgver.tar.gz"::"https://github.com/ZoomerAnalytics/nose-random/archive/$pkgver.tar.gz")
+sha256sums=('528b1c9396cfa415741afaad60ecde695a657c9364dc01240050c747192f5148')
+
+build() {
+  cd $_pkgname-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+  nosetests -v examples
+}
+
+package() {
+  cd $_pkgname-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}



More information about the arch-commits mailing list