diff options
| author | Leo <thinkabit.ukim@gmail.com> | 2019-08-31 04:53:51 -0300 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-08-31 14:01:12 -0300 |
| commit | 6819987ebb472e25b08fe739b0293f390bfbceca (patch) | |
| tree | 9812a7020e41f887214fc2f67d737f92899b15e0 /testing | |
| parent | 40f46a1a632b3984ed3a2332984b71eb8fab9b18 (diff) | |
| download | aports-6819987ebb472e25b08fe739b0293f390bfbceca.tar.bz2 aports-6819987ebb472e25b08fe739b0293f390bfbceca.tar.xz | |
testing/py3-librtmp: drop py2
Diffstat (limited to 'testing')
| -rw-r--r-- | testing/py3-librtmp/APKBUILD | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/testing/py3-librtmp/APKBUILD b/testing/py3-librtmp/APKBUILD index 39a08018fc..317e1ca51c 100644 --- a/testing/py3-librtmp/APKBUILD +++ b/testing/py3-librtmp/APKBUILD @@ -1,32 +1,32 @@ # Contributor: Francesco Colista <fcolista@alpinelinux.org> # Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-librtmp +pkgname=py3-librtmp _pkgname=python-librtmp pkgver=0.3.0 pkgrel=0 pkgdesc="Python bindings for librtmp, built with cffi" -url="https://pypi.python.org/pypi/python-librtmp" +url="https://github.com/chrippa/python-librtmp" arch="all" -license="BSD" -depends="py-setuptools rtmpdump-dev py-cffi py2-singledispatch " -depends_dev="" -makedepends="$depends_dev python2-dev" -install="" -subpackages="" +license="BSD-2-Clause" +depends="py3-cffi" +makedepends="python3-dev py3-setuptools rtmpdump-dev" +checkdepends="py3-pytest" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - builddir="$srcdir"/$_pkgname-$pkgver + +replaces="py-librtmp" # Backwards compatibility +provides="py-librtmp=$pkgver-r$pkgrel" # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build || return 1 - python2 setup.py test || return 1 + python3 setup.py build +} + +check() { + PYTHONPATH="$(echo $PWD/build/lib.*)" py.test-3 tests } package() { - cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="f7afe8d463214072281998fa84553927 python-librtmp-0.3.0.tar.gz" -sha256sums="4a41ada646270baa5b388f17481d08679d23b2947835901d0db7602c59ec772b python-librtmp-0.3.0.tar.gz" sha512sums="1fa529f5c68341f225849061cbcf6883f80e48a492fae8319336ea1e17c22070d5bd204f768b2561b0ef8dfdf29b38789673fab3d3386290143eb94d2b51b8fe python-librtmp-0.3.0.tar.gz" |
