blob: 6d4da634abbde75b62105e411354cba3ac1f7fff (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: ejedev <evan@ejedev.com>
# Contributor: Aloxaf <aloxafx@gmail.com>
# Contributor: username227
_name=semgrep
pkgname=${_name}-bin
pkgver=1.180.0
pkgrel=1
pkgdesc="Lightweight static analysis for many languages. Find bug variants with patterns that look like source code."
arch=('x86_64')
license=('LGPL-2.1-only')
url="https://github.com/${_name}/${_name}"
_urlraw="https://raw.githubusercontent.com/${_name}/${_name}/develop"
makedepends=('python-pip' 'python-setuptools' 'python-wheel')
depends=(
'python>=3.14'
'python-attrs'
'python-boltons'
'python-click'
'python-click-option-group'
'python-colorama'
'python-glom'
'python-jsonschema'
'python-packaging'
'python-peewee'
'python-requests'
'python-rich'
'python-ruamel-yaml'
'python-toml'
'python-tomli'
'python-typing_extensions'
'python-urllib3'
'python-wcmatch'
'python-pydantic'
'python-starlette'
'python-mcp'
'python-semantic-version'
'python-opentelemetry-api'
'python-opentelemetry-sdk'
'python-opentelemetry-instrumentation-requests'
'python-opentelemetry-instrumentation-threading'
)
optdepends=('jsonnet: experimental jsonnet support')
provides=("${_name}")
_b2sum="7c1ff4af9cc92651f04ab973eac214a62ed23260da9e0696c105b4b9734da453"
_whl="${_name}-${pkgver}-cp310.cp311.cp312.cp313.cp314.py310.py311.py312.py313.py314-none-manylinux_2_34_${CARCH}.whl"
options=('!strip')
noextract=("${_whl}")
source=("https://files.pythonhosted.org/packages/${_b2sum:0:2}/${_b2sum:2:2}/${_b2sum:4}/${_whl}"
"README-${pkgver}.md::${_urlraw}/README.md"
"LICENSE-${pkgver}::${_urlraw}/LICENSE")
sha512sums=('da519c5441d8f17575275e2d57ddef8d39502014b4a5906e9d7200b6f973e467917bf528fe83fc74ceafa7b7d50a90f9bedf839da8907b63bd07f48d29519486'
'0add923c611511754f6c0baaa435e805cb3677fcb059af0bd867e2dda7c25525b9ff67da53975298ebf87f1265c8a2cf846adcf775d447e527874fc430b64551'
'dec798f85edac11b3a3f4bb1f309397719dd4de04f66357a5520b23e758cba757c9c7bee87bdbae2a5f936368cab0670bbd3395030393c029d68d0e72fcfba1e')
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}"
install -Dm644 "README-${pkgver}.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|