mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-09 10:42:12 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
|
|
pkgname=py-oauthlib
|
|
_pkgname=${pkgname#py-}
|
|
pkgver=1.1.0
|
|
pkgrel=0
|
|
pkgdesc="A Python implementation of the OAuth request-signing logic"
|
|
url="https://github.com/idan/oauthlib"
|
|
arch="noarch"
|
|
license="BSD"
|
|
depends="python py-crypto py-jwt"
|
|
depends_dev=""
|
|
makedepends="python-dev py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
source="oauthlib-$pkgver.tar.gz::https://github.com/idan/oauthlib/archive/$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
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
python setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
|
|
}
|
|
|
|
md5sums="756c360f36a5e425f30dfae3bd426e48 oauthlib-1.1.0.tar.gz"
|
|
sha256sums="a3312416ebb2eeb1041f92e951506ae8c3f1a36f41dedbee9d128f11abf46dd5 oauthlib-1.1.0.tar.gz"
|
|
sha512sums="839cb90ba28f99babeaed43f80c69efc17620d46e4b3e898518699ec817ff3eff028fde3fdfa35d5b6f1c74b5b8dabf5e165d7590564dde7a44e25db5549d942 oauthlib-1.1.0.tar.gz"
|