# Contributor: Rejah Rehim <rejah@beaglesecurity.com>
# Maintainer: Rejah Rehim <rejah@beaglesecurity.com>
pkgname=py3-pyrebase
_pkgname=Pyrebase
pkgver=3.0.27
pkgrel=5
pkgdesc="simple python wrapper for the Firebase API"
url="https://github.com/thisbejim/Pyrebase"
arch="noarch"
license="MIT"
depends="python3 py3-pycryptodome py3-requests py3-six py3-oauth2client
	py3-parsing py3-requests-toolbelt py3-python-jwt"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/P/$_pkgname/$_pkgname-$pkgver.tar.gz
	drop-requirements.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
49368b656e49eb74d2e690f916eb3a80f0670f5dfcbca0d9972fd7be993df2901a1fe03c70ef738a721a90ea23a49c5361c4fefe80d6f012af609da104506805  Pyrebase-3.0.27.tar.gz
36fe10f58564995b09d8eced1a2e1b6db7e6c6ad24f3d8f34bbe31edeb331166b1ea11daf93d61c25886f7d5997cf3d4759502e989915aa5b5dceb010e1edd4c  drop-requirements.patch
"
