# Contributor: Maxim Karasev # Maintainer: Patrycja Rosa pkgname=sqlmap pkgver=1.10.6 pkgrel=0 pkgdesc="Automatic SQL injection and database takeover tool" url="https://sqlmap.org/" arch="noarch" license="GPL-2.0-or-later" depends=" py3-beautifulsoup4 py3-bottle py3-chardet py3-colorama py3-keepalive py3-magic py3-pydes py3-six py3-termcolor " makedepends=" py3-setuptools py3-gpep517 py3-wheel " subpackages="$pkgname-pyc" source=" https://pypi.python.org/packages/source/s/sqlmap/sqlmap-$pkgver.tar.gz reduce-amount-of-third-party-dependencies.patch " options="!check" # fail with py311 for some reason prepare() { default_prepare # remove unneeded thirdparty moduels (keep patch small) cd sqlmap/thirdparty rm -rf chardet bottle beautifulsoup colorama keepalive magic odict \ pydes six termcolor } 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 } package() { gpep517 install-wheel --destdir "$pkgdir" \ .dist/*.whl } sha512sums=" 4dd45a9b4d847e0bc25a480043c13dd399b76c290c7807123259e248c6ea288f7df2dbf3f41b53ab0fc860f69c60d5d0636567b3b155a544a712d41e2ba8c1b2 sqlmap-1.10.6.tar.gz bc3c75b30d9b410e1d3c48e8b22b63fb623b55bcf34167c6d4f6a42a6f73a353a0eed7103fbbf3ff9a77b1e7e04d3832935a4bbe53abef337b5d51350a5522d9 reduce-amount-of-third-party-dependencies.patch "