projects/aports·blob master · refs

33 lines · 1.0 KiB

1# Contributor: Francesco Colista <[email protected]>
2# Maintainer: Francesco Colista <[email protected]>
3pkgname=py3-librtmp
4_pkgname=python-librtmp
5pkgver=0.3.0
6pkgrel=6
7pkgdesc="Python bindings for librtmp, built with cffi"
8url="https://github.com/chrippa/python-librtmp"
9arch="all"
10license="BSD-2-Clause"
11depends="py3-cffi"
12makedepends="python3-dev py3-setuptools rtmpdump-dev"
13checkdepends="py3-pytest"
14subpackages="$pkgname-pyc"
15source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
16builddir="$srcdir"/$_pkgname-$pkgver
17
18replaces="py-librtmp" # Backwards compatibility
19provides="py-librtmp=$pkgver-r$pkgrel" # Backwards compatibility
20
21build() {
22 python3 setup.py build
23}
24
25check() {
26 PYTHONPATH="$(echo $PWD/build/lib.*)" py.test-3 tests
27}
28
29package() {
30 python3 setup.py install --skip-build --root="$pkgdir"
31}
32
33sha512sums="1fa529f5c68341f225849061cbcf6883f80e48a492fae8319336ea1e17c22070d5bd204f768b2561b0ef8dfdf29b38789673fab3d3386290143eb94d2b51b8fe python-librtmp-0.3.0.tar.gz"