[arch-commits] Commit in python-passlib/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Mon Sep 14 06:45:39 UTC 2015


    Date: Monday, September 14, 2015 @ 08:45:38
  Author: fyan
Revision: 140075

upgpkg: python-passlib 1.6.5-2

enable more tests and add bcrypt to optdepends

Modified:
  python-passlib/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-09-14 05:37:07 UTC (rev 140074)
+++ PKGBUILD	2015-09-14 06:45:38 UTC (rev 140075)
@@ -1,5 +1,5 @@
 # $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: onny <onny at project-insanity.org>
 
 _pypiname=passlib
@@ -6,30 +6,34 @@
 pkgbase=python-$_pypiname
 pkgname=(python-$_pypiname python2-$_pypiname)
 pkgver=1.6.5
-pkgrel=1
+pkgrel=2
 pkgdesc="A password hashing library for Python"
 arch=('any')
 url=("https://code.google.com/p/passlib/")
 license=('custom:BSD')
 makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-nose' 'python2-nose')
+checkdepends=('python-nose' 'python2-nose' 'python-bcrypt' 'python2-bcrypt'
+              'python-django' 'python2-django' 'python2-m2crypto')
 source=("https://pypi.python.org/packages/source/p/passlib/passlib-$pkgver.tar.gz")
 sha512sums=('b5323834a0a7fc7e799882c512a2fcaddb0cbf4dbfb3ec578c9a9ea7a7f08349335cd3124fe2b379eef265ecdf9d823b7562951881710cf4dafff128a65c82d4')
 
 prepare() {
-  cp -a ${_pypiname}-${pkgver} python2-${_pypiname}-${pkgver}
+  cp -a ${_pypiname}-${pkgver}{,-py2}
 }
 
 check() {
+  export PASSLIB_TEST_MODE=full
+
   cd "$srcdir/$_pypiname-$pkgver"
   nosetests3
 
-  cd "$srcdir/python2-$_pypiname-$pkgver"
+  cd "$srcdir/$_pypiname-$pkgver-py2"
   nosetests2
 }
 
 package_python-passlib() {
   depends=("python")
+  optdepends=("python-bcrypt: accelerate Bcrypt hashes")
 
   cd ${_pypiname}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}"
@@ -38,9 +42,10 @@
 
 package_python2-passlib() {
   depends=("python2")
-  optdepends=("python2-m2crypto: accelerate PBKDF2-based hashes")
+  optdepends=("python2-m2crypto: accelerate PBKDF2-based hashes"
+              "python2-bcrypt: accelerate Bcrypt hashes")
 
-  cd python2-${_pypiname}-${pkgver}
+  cd ${_pypiname}-${pkgver}-py2
   python2 setup.py install -O1 --root="${pkgdir}"
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list