X-Original-To: alpine-aports@lists.alpinelinux.org Received: from ux-p-intmta7-1.amc.nl (ux-p-intmta7-1.amc.nl [145.117.228.13]) by lists.alpinelinux.org (Postfix) with ESMTP id 268205C0763 for ; Wed, 19 Jul 2017 11:37:19 +0000 (GMT) Received: from alpine.my.domain (16-000476.amc.nl [145.117.168.38]) by ux-p-intmta7-1.amc.nl (Postfix) with ESMTP id 5B5351DD; Wed, 19 Jul 2017 13:37:13 +0200 (CEST) From: =?UTF-8?q?Andr=C3=A9=20Bierwolf?= To: alpine-aports@lists.alpinelinux.org Cc: =?UTF-8?q?Andr=C3=A9=20Bierwolf?= Subject: [alpine-aports] [PATCH] testing/py-bcrypt: New aport for Python bcrypt module Date: Wed, 19 Jul 2017 11:36:48 +0000 Message-Id: <20170719113648.5720-1-a.b.bierwolf@gmail.com> X-Mailer: git-send-email 2.13.2 X-AMC-MailScanner-Information: Please contact the ICT-Servicedesk for information X-AMC-MailScanner-ID: 5B5351DD.A01CC X-AMC-MailScanner: Found to be clean X-AMC-MailScanner-From: a.b.bierwolf@gmail.com X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: This package is needed as an dependency for the kimchi aport. Fixes on the kimchi aport will need this aport --- testing/py-bcrypt/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 testing/py-bcrypt/APKBUILD diff --git a/testing/py-bcrypt/APKBUILD b/testing/py-bcrypt/APKBUILD new file mode 100644 index 0000000000..063f2062d7 --- /dev/null +++ b/testing/py-bcrypt/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Andre Bierwolf +# Maintainer: Andre Bierwolf +pkgname=py-bcrypt +_pkgname=bcrypt +pkgver=3.1.3 +pkgrel=0 +pkgdesc="Modern password hashing for your software and your servers" +url="https://pypi.python.org/pypi/bcrypt" +arch="all" +license="ASL 2.0" +makedepends="python2-dev py-setuptools libressl-dev swig" +subpackages="py2-${pkgname#py-}:_py2" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + depends="py2-typing" + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="1fe80a156cd3707c27d4d3b6495caede3404acfdcd238d0461fdd83249601a0b0f2945e0f531dd4422f19e9cd47107245d8e40eb8b47b78e5c679e7e6b37a92c bcrypt-3.1.3.tar.gz" -- 2.13.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---