testing/py3-facebook-sdk: move from user
This commit is contained in:
parent
ab424f26ff
commit
c8374a9d05
1 changed files with 22 additions and 8 deletions
|
@ -4,29 +4,43 @@
|
|||
_pyname=facebook-sdk
|
||||
pkgname="py3-$_pyname"
|
||||
pkgver=3.1.0
|
||||
pkgrel=1
|
||||
pkgrel=0
|
||||
arch="noarch"
|
||||
pkgdesc="Python SDK for Facebook's Graph API"
|
||||
url="https://pypi.python.org/project/$_pyname"
|
||||
license="Apache-2.0"
|
||||
depends="py3-requests"
|
||||
makedepends="py3-setuptools"
|
||||
checkdepends="py3-pytest"
|
||||
depends="
|
||||
py3-requests
|
||||
"
|
||||
makedepends="
|
||||
py3-setuptools
|
||||
py3-wheel
|
||||
py3-gpep517
|
||||
py3-installer
|
||||
"
|
||||
checkdepends="
|
||||
py3-pytest
|
||||
"
|
||||
options="!check" # Testsuite requires API access
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/mobolic/facebook-sdk/archive/refs/tags/v$pkgver.tar.gz"
|
||||
builddir="$srcdir"/$_pyname-$pkgver
|
||||
subpackages="$pkgname-pyc"
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
PYTHONPATH="$srcdir" pytest || true
|
||||
pytest -v
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
|
||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
python3 -m installer -d "$pkgdir" \
|
||||
dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
90bb8242107ba37e0b3e05b91f2f8be07b359aa7c60646c1319f38a0ad910eb18b432af75515947109745539a6728b6571ceeb0239e8b94a669455d809cfab59 py3-facebook-sdk-3.1.0.tar.gz
|
||||
"
|
Loading…
Reference in a new issue