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

Felix Yan fyan at archlinux.org
Sat Sep 19 15:11:55 UTC 2015


    Date: Saturday, September 19, 2015 @ 17:11:54
  Author: fyan
Revision: 140892

archrelease: copy trunk to community-staging-any

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

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

Copied: python-passlib/repos/community-staging-any/PKGBUILD (from rev 140891, python-passlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 15:11:54 UTC (rev 140892)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: onny <onny at project-insanity.org>
+
+_pypiname=passlib
+pkgbase=python-$_pypiname
+pkgname=(python-$_pypiname python2-$_pypiname)
+pkgver=1.6.5
+pkgrel=3
+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' '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}{,-py2}
+}
+
+check() {
+  export PASSLIB_TEST_MODE=full
+
+  cd "$srcdir/$_pypiname-$pkgver"
+  nosetests3
+
+  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}"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-passlib() {
+  depends=("python2")
+  optdepends=("python2-m2crypto: accelerate PBKDF2-based hashes"
+              "python2-bcrypt: accelerate Bcrypt hashes")
+
+  cd ${_pypiname}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list