diff options
Diffstat (limited to 'community/py3-impacket/APKBUILD')
-rw-r--r-- | community/py3-impacket/APKBUILD | 48 |
1 files changed, 39 insertions, 9 deletions
diff --git a/community/py3-impacket/APKBUILD b/community/py3-impacket/APKBUILD index a761230d243..50b0a1eda88 100644 --- a/community/py3-impacket/APKBUILD +++ b/community/py3-impacket/APKBUILD @@ -2,15 +2,32 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py3-impacket _pkgname=impacket -pkgver=0.9.23 -pkgrel=0 +pkgver=0.11.0 +pkgrel=1 pkgdesc="Collection of Python3 classes providing access to network packets" url="https://github.com/SecureAuthCorp/impacket" arch="noarch" license="Apache-2.0" -depends="python3" -makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +depends=" + py3-asn1 + py3-chardet + py3-flask + py3-future + py3-ldap3 + py3-openssl + py3-pycryptodomex + py3-six + " +makedepends=" + py3-gpep517 + py3-setuptools + py3-wheel + " +checkdepends="py3-pytest" +subpackages="$pkgname-pyc" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz + version.patch + " builddir="$srcdir"/$_pkgname-$pkgver replaces="py-impacket" # Backwards compatibility @@ -21,14 +38,27 @@ provides="py-impacket=$pkgver-r$pkgrel" # Backwards compatibility # - CVE-2021-31800 build() { - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -m 'not remote' } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" - rm -rf "$pkgdir"/usr/share/doc # LICENSE and README.md + python3 -m installer -d "$pkgdir" \ + .dist/*.whl + + rm -r "$pkgdir"/usr/share/doc # LICENSE and README.md + # "examples" but imported for cli apps + # rm -r "$pkgdir"/usr/lib/python*/site-packages/impacket/examples } sha512sums=" -24725695b5249e04ccfd6ee5be7c045e731ee69a29be7f76e31c28f81c684377364f3d317bfbb96e81e62f4eaa5169c4827d9840b6bf9e2d23e472f6ea5461c8 impacket-0.9.23.tar.gz +8bd7baf3c9c4ca826d9bd472bc1842e4fc1b0a9eae643f247606b05f4b375416550b9e4445414ec51e6524422666ce0c869ee63a2aef59451b827feaccb0db7b impacket-0.11.0.tar.gz +adf35684d0e6498c6b39edc5a19ee84065d4bd306c5a76565b650ace25fa754e0e505e15aee7a84ac872a29c6bf9c59ea8651a27d0b8cd0dbcb5694f44430c9a version.patch " |