diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 16:18:38 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 16:48:43 -0300 |
commit | 23d2f24b877b8a8e34d5e386343b65f1a36e28d5 (patch) | |
tree | e234b3491a8b0760d51c73b23a69581cd428bd18 /community | |
parent | 3ddcacabb6ee7e8db42f4a2da84748c102787aaa (diff) | |
download | aports-23d2f24b877b8a8e34d5e386343b65f1a36e28d5.tar.bz2 aports-23d2f24b877b8a8e34d5e386343b65f1a36e28d5.tar.xz |
community/py3-service_identity: drop py2
Diffstat (limited to 'community')
-rw-r--r-- | community/py3-service_identity/APKBUILD | 40 |
1 files changed, 10 insertions, 30 deletions
diff --git a/community/py3-service_identity/APKBUILD b/community/py3-service_identity/APKBUILD index b9da9b2e2b..a3edd66d52 100644 --- a/community/py3-service_identity/APKBUILD +++ b/community/py3-service_identity/APKBUILD @@ -1,48 +1,28 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-service_identity +pkgname=py3-service_identity _pkgname=service_identity pkgver=18.1.0 -pkgrel=1 -pkgdesc="Service identity verification for Python" +pkgrel=2 +pkgdesc="Service identity verification for Python3" +options="!check" # No testsuite url="https://service-identity.readthedocs.org/" arch="noarch" license="MIT" -depends="py-asn1 py-asn1-modules py-attrs py-characteristic py-cryptography" -makedepends="py-setuptools python2-dev python3-dev" -subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +depends="py3-asn1 py3-asn1-modules py3-attrs py3-characteristic py3-cryptography" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/s/$_pkgname/$_pkgname-$pkgver.tar.gz" - builddir="$srcdir"/$_pkgname-$pkgver +replaces="py-service_identity" # Backwards compatibility +provides="py-service_identity=$pkgver-r$pkgrel" # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build python3 setup.py build } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-} py2-ipaddress" - _py python2 -} - -_py3() { - depends="${depends//py-/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" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="c1556e385035a8d43fd0e3960c0396b9d2536c5e3c7450b3669c8c9b8ff60b6a9d2f0282dc30c1fb46034b4abcb0ff6d74ed79f6bcc33f59035988ccaf3324d2 service_identity-18.1.0.tar.gz" |