mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/py3-passlib: rebuild as python3 only
This commit is contained in:
parent
8b21619173
commit
fe097f6042
@ -1,52 +1,33 @@
|
||||
# Contributor:
|
||||
# Maintainer:
|
||||
pkgname=py-passlib
|
||||
# Contributor:
|
||||
# Maintainer:
|
||||
pkgname=py3-passlib
|
||||
_pkgname=passlib
|
||||
pkgver=1.7.1
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="A python hashing library for over 30 schemes"
|
||||
url="https://pypi.python.org/pypi/passlib"
|
||||
arch="noarch"
|
||||
license="BSD"
|
||||
checkdepends="py-nose"
|
||||
makedepends="python2-dev python3-dev py-setuptools"
|
||||
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
|
||||
license="BSD-2-Clause"
|
||||
depends="python3"
|
||||
makedepends="py3-setuptools"
|
||||
checkdepends="py3-nose"
|
||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
||||
skip-bsdi_crypt-test.patch
|
||||
"
|
||||
builddir="$srcdir"/passlib-$pkgver
|
||||
|
||||
replaces="py-passlib" # Backwards compatibility
|
||||
provides="py-passlib=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
cd "$builddir"
|
||||
python2 setup.py build
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
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"
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$builddir"
|
||||
nosetests --tests passlib.tests
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user