# Contributor: Stuart Cardall # Maintainer: Stuart Cardall pkgname=py2-traceback2 _pkgname=${pkgname#py2-*} pkgver=1.4.0 pkgrel=2 pkgdesc="Backport of the Python3 stdlib traceback module" options="!check" # Depends on py2-unittest2 for tests which depends on this package url="https://github.com/testing-cabal/traceback2" arch="noarch" license="PSF" depends="py2-linecache2" makedepends="git py-setuptools py-pbr" source="$pkgname-$pkgver.tar.gz::https://github.com/testing-cabal/$_pkgname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-traceback2 py3-traceback2" # Backwards compatibility build() { git init # workaround python pbr picking up the git version from aports python2 setup.py build } package() { python2 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="33ef29ab051d5ddca1dc3e802cd0cbaf216067157b4e5bea4bb0481cd7a6758614fc551d614b5bcf3354757b315b9549bde9ff9c552980fb75ddb3aa31909d79 py2-traceback2-1.4.0.tar.gz"