diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-07-02 05:14:15 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-03 08:06:02 -0300 |
| commit | fe097f60426392cb484eed6b466d32bf4d71243e (patch) | |
| tree | 5a0b3be4181c30830307fd756fd53262364cc465 /testing/py3-passlib | |
| parent | 8b216191737c140f4d84e88722269d3796832317 (diff) | |
| download | aports-fe097f60426392cb484eed6b466d32bf4d71243e.tar.bz2 aports-fe097f60426392cb484eed6b466d32bf4d71243e.tar.xz | |
testing/py3-passlib: rebuild as python3 only
Diffstat (limited to 'testing/py3-passlib')
| -rw-r--r-- | testing/py3-passlib/APKBUILD | 43 |
1 files changed, 12 insertions, 31 deletions
diff --git a/testing/py3-passlib/APKBUILD b/testing/py3-passlib/APKBUILD index 3e946ab8cd..a4a36298af 100644 --- a/testing/py3-passlib/APKBUILD +++ b/testing/py3-passlib/APKBUILD @@ -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 } |
