projects/aports·blob master · refs

62 lines · 1.5 KiB

1# Contributor: Maxim Karasev <[email protected]>
2# Maintainer: Patrycja Rosa <[email protected]>
3pkgname=sqlmap
4pkgver=1.10.6
5pkgrel=0
6pkgdesc="Automatic SQL injection and database takeover tool"
7url="https://sqlmap.org/"
8arch="noarch"
9license="GPL-2.0-or-later"
10depends="
11 py3-beautifulsoup4
12 py3-bottle
13 py3-chardet
14 py3-colorama
15 py3-keepalive
16 py3-magic
17 py3-pydes
18 py3-six
19 py3-termcolor
20 "
21makedepends="
22 py3-setuptools
23 py3-gpep517
24 py3-wheel
25 "
26subpackages="$pkgname-pyc"
27source="
28 https://pypi.python.org/packages/source/s/sqlmap/sqlmap-$pkgver.tar.gz
29 reduce-amount-of-third-party-dependencies.patch
30 "
31options="!check" # fail with py311 for some reason
32
33prepare() {
34 default_prepare
35
36 # remove unneeded thirdparty moduels (keep patch small)
37 cd sqlmap/thirdparty
38 rm -rf chardet bottle beautifulsoup colorama keepalive magic odict \
39 pydes six termcolor
40}
41
42build() {
43 gpep517 build-wheel \
44 --wheel-dir .dist \
45 --output-fd 3 3>&1 >&2
46}
47
48check() {
49 python3 -m venv --clear --without-pip --system-site-packages .testenv
50 .testenv/bin/python3 -m installer .dist/*.whl
51 .testenv/bin/python3 -m pytest
52}
53
54package() {
55 gpep517 install-wheel --destdir "$pkgdir" \
56 .dist/*.whl
57}
58
59sha512sums="
604dd45a9b4d847e0bc25a480043c13dd399b76c290c7807123259e248c6ea288f7df2dbf3f41b53ab0fc860f69c60d5d0636567b3b155a544a712d41e2ba8c1b2 sqlmap-1.10.6.tar.gz
61bc3c75b30d9b410e1d3c48e8b22b63fb623b55bcf34167c6d4f6a42a6f73a353a0eed7103fbbf3ff9a77b1e7e04d3832935a4bbe53abef337b5d51350a5522d9 reduce-amount-of-third-party-dependencies.patch
62"