aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-bcrypt
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-07-19 08:38:52 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-07-19 08:38:52 +0000
commit3aaa5e66342d943d3625e3a88fc375006dddc1db (patch)
tree3f25742ccb33324cbc292884ce39927844983e78 /main/py-bcrypt
parent20cd32ffba2ddf952cb3461daa0e4914a268eb1c (diff)
downloadaports-3aaa5e66342d943d3625e3a88fc375006dddc1db.tar.bz2
aports-3aaa5e66342d943d3625e3a88fc375006dddc1db.tar.xz
main/py-bcrypt: moved in main since is a requirement for paramiko
Diffstat (limited to 'main/py-bcrypt')
-rw-r--r--main/py-bcrypt/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/main/py-bcrypt/APKBUILD b/main/py-bcrypt/APKBUILD
new file mode 100644
index 0000000000..77d94963e5
--- /dev/null
+++ b/main/py-bcrypt/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py-bcrypt
+_pkgname=${pkgname/py-/}
+pkgver=3.1.3
+pkgrel=0
+pkgdesc="Modern password hashing for your software and your servers"
+url="https://github.com/pyca/bcrypt"
+arch="all"
+license="APACHE2.0"
+makedepends="python2-dev python3-dev py-setuptools libffi-dev"
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pyca/$_pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+check() {
+ cd "$builddir"
+ python2 setup.py check
+ python3 setup.py check
+}
+
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+ replaces="$pkgname"
+}
+
+_py3() {
+ _py python3
+}
+
+
+sha512sums="181b3f0661b295cc5f3fe2148d7a6dfd94c5a0ecddb94ecd0be16c0c5c04376f355988a5bb00930d397c16d5286865a334702a3c21a658cc4156255ba8bb2886 py-bcrypt-3.1.3.tar.gz"