mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-15 05:32:26 +01:00
58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
|
pkgname=py-passlib
|
|
_pkgname=passlib
|
|
pkgver=1.6.5
|
|
pkgrel=0
|
|
pkgdesc="A python hashing library for over 30 schemes"
|
|
url="https://pypi.python.org/pypi/passlib"
|
|
arch="noarch"
|
|
license="BSD"
|
|
makedepends="python2-dev python3-dev py-setuptools"
|
|
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
|
|
builddir="$srcdir"/passlib-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build || return 1
|
|
python3 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"
|
|
}
|
|
|
|
_py2() {
|
|
replaces="$pkgname"
|
|
_py python2
|
|
}
|
|
|
|
_py3() {
|
|
_py python3
|
|
}
|
|
|
|
_py() {
|
|
local python="$1"
|
|
pkgdesc="$pkgdesc (for $python)"
|
|
depends="$depends $python"
|
|
install_if="$pkgname=$pkgver-r$pkgrel $python"
|
|
|
|
cd "$builddir"
|
|
$python setup.py install --prefix=/usr --root="$subpkgdir"
|
|
}
|
|
|
|
md5sums="d2edd6c42cde136a538b48d90a06ad67 passlib-1.6.5.tar.gz"
|
|
sha256sums="a83d34f53dc9b17aa42c9a35c3fbcc5120f3fcb07f7f8721ec45e6a27be347fc passlib-1.6.5.tar.gz"
|
|
sha512sums="b5323834a0a7fc7e799882c512a2fcaddb0cbf4dbfb3ec578c9a9ea7a7f08349335cd3124fe2b379eef265ecdf9d823b7562951881710cf4dafff128a65c82d4 passlib-1.6.5.tar.gz"
|