[arch-commits] Commit in python-passlib/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Sep 14 06:45:54 UTC 2015
Date: Monday, September 14, 2015 @ 08:45:54
Author: fyan
Revision: 140076
archrelease: copy trunk to community-any
Added:
python-passlib/repos/community-any/PKGBUILD
(from rev 140075, python-passlib/trunk/PKGBUILD)
Deleted:
python-passlib/repos/community-any/PKGBUILD
----------+
PKGBUILD | 101 ++++++++++++++++++++++++++++++++-----------------------------
1 file changed, 53 insertions(+), 48 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-14 06:45:38 UTC (rev 140075)
+++ PKGBUILD 2015-09-14 06:45:54 UTC (rev 140076)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at gmail.com>
-# Contributor: onny <onny at project-insanity.org>
-
-_pypiname=passlib
-pkgbase=python-$_pypiname
-pkgname=(python-$_pypiname python2-$_pypiname)
-pkgver=1.6.5
-pkgrel=1
-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')
-source=("https://pypi.python.org/packages/source/p/passlib/passlib-$pkgver.tar.gz")
-sha512sums=('b5323834a0a7fc7e799882c512a2fcaddb0cbf4dbfb3ec578c9a9ea7a7f08349335cd3124fe2b379eef265ecdf9d823b7562951881710cf4dafff128a65c82d4')
-
-prepare() {
- cp -a ${_pypiname}-${pkgver} python2-${_pypiname}-${pkgver}
-}
-
-check() {
- cd "$srcdir/$_pypiname-$pkgver"
- nosetests3
-
- cd "$srcdir/python2-$_pypiname-$pkgver"
- nosetests2
-}
-
-package_python-passlib() {
- depends=("python")
-
- 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")
-
- cd python2-${_pypiname}-${pkgver}
- python2 setup.py install -O1 --root="${pkgdir}"
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-passlib/repos/community-any/PKGBUILD (from rev 140075, python-passlib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2015-09-14 06:45:54 UTC (rev 140076)
@@ -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=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' '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