diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 14:28:38 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-09 14:28:47 -0300 |
| commit | 3b8949c7d83f851763340ff3fa6285c62bba9e22 (patch) | |
| tree | e0fd9fdccf5a8e4ecc050f66f9ca93d3c7601169 /testing | |
| parent | bbb7943774ceaad9c9fcb97a48d3b036b10f8e8f (diff) | |
| download | aports-3b8949c7d83f851763340ff3fa6285c62bba9e22.tar.bz2 aports-3b8949c7d83f851763340ff3fa6285c62bba9e22.tar.xz | |
testing/httpie-oauth: switch to python3
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/httpie-oauth/APKBUILD | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/testing/httpie-oauth/APKBUILD b/testing/httpie-oauth/APKBUILD index 7aed92fc9c..b043e5cc26 100644 --- a/testing/httpie-oauth/APKBUILD +++ b/testing/httpie-oauth/APKBUILD @@ -2,39 +2,21 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=httpie-oauth pkgver=1.0.2 -pkgrel=0 +pkgrel=1 pkgdesc="OAuth plugin for HTTPie" url="https://github.com/jkbr/httpie-oauth" arch="noarch" -license="BSD" -depends="python2 httpie" -depends_dev="" -makedepends="python2-dev py-setuptools" -install="" -subpackages="" -source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz" - -_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 -} +license="BSD-3-Clause" +depends="python3 httpie py3-requests-oauthlib" +makedepends="py3-setuptools" +source="https://files.pythonhosted.org/packages/source/h/httpie-oauth/httpie-oauth-$pkgver.tar.gz" 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="5644a00d4648a0d2b8af7c3fcbe4e36c httpie-oauth-1.0.2.tar.gz" -sha256sums="b4fd8c6e85a7f84e27ba7bfc910627e7010465f4dc4999f81f6c43513485503f httpie-oauth-1.0.2.tar.gz" sha512sums="d2825143e839f82591db59995619f7437fccc42e9f126ca247e19b1533706cfaadaab5c3518d3d994e898fcb3d98ed899cd9a36f07963d701eb019587c2821c6 httpie-oauth-1.0.2.tar.gz" |
