# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-nmap _pkgname=nmap pkgver=0.6.4 pkgrel=0 pkgdesc="Python3 class to use nmap and access scan results" options="!check" # Some tests fail due to missing file url="http://xael.org/pages/python-nmap-en.html" arch="noarch" license="GPL-3.0-or-later" depends="nmap" makedepends="py3-setuptools" checkdepends="py3-nose" source="http://xael.org/pages/python-$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/python-$_pkgname-$pkgver replaces="py-nmap" # Backwards compatibility provides="py-nmap=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { nosetests } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="9c5176087e39271015283abcd8fc4d7828c063e9209ec1e549737142864e199a78014c2ab518f9afcb75f2ea2affc94fa1f612c9d2849d25eed9589a03864b76 python-nmap-0.6.4.tar.gz"