blob: 8f5666a32d7182f782a9af6e9e8c0655c48ecd33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: username227
# Contributor: ejedev <evan@ejedev.com>
# Contributor: Aloxaf <aloxafx@gmail.com>
_name=semgrep
pkgname=${_name}-bin
pkgver=1.149.0
pkgrel=1
pkgdesc="Lightweight static analysis for many languages. Find bug variants with patterns that look like source code."
arch=(x86_64)
url=https://github.com/returntocorp/semgrep
license=(LGPL-2.1-only)
makedepends=('python-pip' 'python-setuptools' 'python-wheel')
depends=(
'python>=3.14' 'python-attrs' 'python-boltons' 'python-click' 'python-click-option-group'
'python-colorama' 'python-defusedxml' 'python-glom' 'python-jsonschema' 'python-packaging'
'python-peewee' 'python-lsp-jsonrpc' 'python-requests' 'python-rich' 'python-ruamel-yaml'
'python-tomli' 'python-typing_extensions' 'python-urllib3' 'python-wcmatch' 'python-pydantic'
'python-opentelemetry-api' 'python-opentelemetry-exporter-otlp-proto-http' 'python-opentelemetry-sdk'
'python-opentelemetry-instrumentation-requests' 'python-starlette' 'python-mcp' 'python-fastmcp'
)
optdepends=('jsonnet: experimental jsonnet support')
provides=('semgrep')
_b2sum="e925c0d1fa71ed66c200732d922f6607c44bed24b94ae636e7669a8f6d45d4d2"
_whl="semgrep-${pkgver}-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-musllinux_1_0_${CARCH}.manylinux2014_${CARCH}.whl"
options=('!strip')
noextract=("${_whl}")
source=("https://files.pythonhosted.org/packages/${_b2sum:0:2}/${_b2sum:2:2}/${_b2sum:4}/${_whl}"
"fix.patch")
sha512sums=('09c53a62adf0b4b443fe92fea63272b273b687b55aed521d911f9514dcb3a31b1efb65800fb16cf908e20ac97b572943a7215f10238711397afcfcfb25897f34'
'1e9ef18cb9130075aac39408f2ede92956e81360358a23eda4835788ced0c654283dfc90588c54baaed9272574cf58024aac9d6f1afca51029f17ecf26844040')
package() {
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-warn-script-location --root-user-action ignore --no-deps "${_whl}"
python -O -m compileall "${pkgdir}"
cd "${pkgdir}/" || return 1
patch -p1 < "${srcdir}/fix.patch"
}
|