diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 14:34:42 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 14:39:12 -0300 |
commit | 06bd1ab55f6d0fc2517623d7d5b30d5304369e81 (patch) | |
tree | cc1d723f9e76d22ac265ad512c245a2df21c9890 /testing/py3-flask-headers | |
parent | 322ad187ba5bc0c85f73f928a3e0301983c614bf (diff) | |
download | aports-06bd1ab55f6d0fc2517623d7d5b30d5304369e81.tar.bz2 aports-06bd1ab55f6d0fc2517623d7d5b30d5304369e81.tar.xz |
testing/py3-flask-headers: drop py2
Diffstat (limited to 'testing/py3-flask-headers')
-rw-r--r-- | testing/py3-flask-headers/APKBUILD | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/testing/py3-flask-headers/APKBUILD b/testing/py3-flask-headers/APKBUILD index abcff736e7..61dedb7758 100644 --- a/testing/py3-flask-headers/APKBUILD +++ b/testing/py3-flask-headers/APKBUILD @@ -1,41 +1,28 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-flask-headers +pkgname=py3-flask-headers _pkgname=Flask-Headers pkgver=1.0 -pkgrel=0 +pkgrel=1 pkgdesc="Flask headers extension" +options="!check" # No testsuite on PYPI, no GitHub tarballs url="https://pypi.python.org/pypi/Flask-Headers" arch="noarch" -license="BSD" -depends="python2 py-flask" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" +license="MIT" +depends="python3 py3-flask" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver -_builddir="$srcdir"/$_pkgname-$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 -} +replaces="py-flask-headers" # Backwards compatibility +provides="py-flask-headers=$pkgver-r$pkgrel" # Backwards compatibility build() { - cd "$_builddir" - python2 setup.py build || return 1 + python3 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="23b9900d896f8de205fa43f91e86a7b0 Flask-Headers-1.0.tar.gz" -sha256sums="195d2acf0caf595ade2c38fe613d4d8c30521074888f83c9580dfff6bbef8fc9 Flask-Headers-1.0.tar.gz" sha512sums="aae3088745970575464dc93bb0198a461ac218f4b9d2396a9ff7b950610f191453341f6d434ba7636d44f54a6d8fd0b3e000dba36c272d80c3d85242e029a48b Flask-Headers-1.0.tar.gz" |