# Maintainer: Rich Li # Contributor: Filip S. Adamsen # Contributor: Samed Beyribey pkgname=python2-pyspf _pkgname=pyspf pkgver=2.0.9 pkgrel=1 pkgdesc="Python 2 implementation of Sender Policy Framework (SPF)" arch=('any') url="http://bmsi.com/python/milter.html" license=('Python') depends=('python2-pydns' 'python2' 'python2-ipaddr') checkdepends=('python2-yaml' 'python2-authres') optdepends=('python2-authres: support Authentication-Results headers') #conflicts=('python-pyspf') options=(!emptydirs) source=(https://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz) md5sums=('055b36fd9469ea77713cf064727a9c18') sha1sums=('a239e8e26a67320a022559f72f7748d3c0575000') sha256sums=('e4828f785c935d5d24dcab1e8abe13b57de965219c8e821222e763a27fd423e0') build() { cd "$srcdir/$_pkgname-$pkgver" python2 setup.py build } # While 2.0.8 passed tests, 2.0.9 fails six tests #check() { # # Note that python2-authres, which is normally optional, is required for the tests to finish successfully # cd "$srcdir/$_pkgname-$pkgver/test" # # Use the SPF from this package, not the system-installed version # sed -i -e "s|import spf|sys.path.append('..')\nimport spf|" testspf.py # python2 testspf.py #} package() { cd "$srcdir/$_pkgname-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 } # vim:set ts=2 sw=2 et: