diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-11 20:45:33 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-11 22:00:46 -0300 |
commit | 12ef25a55bed47873772a36739070587f469c4f2 (patch) | |
tree | 99c1573f0958b4aabbbd07daf4508fa192abe661 | |
parent | d8d2552916ee5669785bb3db98f3440ecacfe883 (diff) | |
download | aports-12ef25a55bed47873772a36739070587f469c4f2.tar.bz2 aports-12ef25a55bed47873772a36739070587f469c4f2.tar.xz |
community/py3-pygraphviz: drop py2
-rw-r--r-- | community/py3-pygraphviz/APKBUILD | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/community/py3-pygraphviz/APKBUILD b/community/py3-pygraphviz/APKBUILD index c1c2351bbd..74be0accf8 100644 --- a/community/py3-pygraphviz/APKBUILD +++ b/community/py3-pygraphviz/APKBUILD @@ -1,28 +1,33 @@ # Contributor: Stuart Cardall <developer@it-offshore.co.uk> # Maintainer: Stuart Cardall <developer@it-offshore.co.uk> -pkgname=py-pygraphviz +pkgname=py3-pygraphviz pkgver=1.3 -pkgrel=0 +pkgrel=1 pkgdesc="Python interface to Graphviz" +options="!check" # FAILED (failures=11, errors=47) url="https://pygraphviz.github.io/" arch="all" -license="BSD" -depends="python2" -depends_dev="" -makedepends="python2-dev graphviz-dev py-setuptools" +license="BSD-3-Clause" +depends="python3" +makedepends="python3-dev graphviz-dev py3-setuptools" +checkdepends="py3-nose" subpackages="$pkgname-doc" source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$pkgver.tar.gz" - builddir="$srcdir/pygraphviz-pygraphviz-$pkgver" +replaces="py-pygraphviz" # Backwards compatibility +provides="py-pygraphviz=$pkgver-r$pkgrel" # Backwards compatibility + build() { - cd "$builddir" - python2 setup.py build + python3 setup.py build +} + +check() { + python3 setup.py test } package() { - cd "$builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="889574a735e8a9ff696dc38d59baebe44ad2b8b9ce7012e961e48a6f2974d4dfaf54a4dbf28f6c79b9bfcf71499aceec0ea618bf508399efda6583bde3b55107 pygraphviz-1.3.tar.gz" |