Install this version:
emerge -a =dev-util/semgrep-1.163.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/semgrep-1.163.0
Or alternatively:
emerge --autounmask-write -a =dev-util/semgrep-1.163.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.163.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 edo
DESCRIPTION="Lightweight static analysis for many languages"
HOMEPAGE="https://github.com/semgrep/semgrep"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/${P}/cli"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="test"
PROPERTIES="test_network"
RDEPEND="dev-python/attrs[${PYTHON_USEDEP}]
dev-python/boltons[${PYTHON_USEDEP}]
dev-python/click[${PYTHON_USEDEP}]
dev-python/click-option-group[${PYTHON_USEDEP}]
dev-python/colorama[${PYTHON_USEDEP}]
dev-python/exceptiongroup[${PYTHON_USEDEP}]
dev-python/glom[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/mcp[${PYTHON_USEDEP}]
dev-python/opentelemetry-api[${PYTHON_USEDEP}]
dev-python/opentelemetry-instrumentation-requests[${PYTHON_USEDEP}]
dev-python/opentelemetry-instrumentation-threading[${PYTHON_USEDEP}]
dev-python/opentelemetry-exporter-otlp-proto-http[${PYTHON_USEDEP}]
dev-python/opentelemetry-sdk[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/peewee[${PYTHON_USEDEP}]
dev-python/pyjwt[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/rich[${PYTHON_USEDEP}]
dev-python/ruamel-yaml[${PYTHON_USEDEP}]
dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]
dev-python/semantic-version[${PYTHON_USEDEP}]
dev-python/tomli[${PYTHON_USEDEP}]
dev-python/typing-extensions[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]
dev-python/wcmatch[${PYTHON_USEDEP}]
dev-util/semgrep-core"
BDEPEND="test? ( dev-python/appdirs[${PYTHON_USEDEP}] )"
PATCHES=( "${FILESDIR}/${PN}"-1.163.0-tests.patch )
EPYTEST_XDIST=1
EPYTEST_PLUGINS=( freezegun pytest-{asyncio,mock,snapshot} requests-mock )
distutils_enable_tests pytest
EPYTEST_IGNORE=( tests/default/e2e
tests/default/e2e-other
tests/default/e2e-pysemgrep )
src_prepare() {
default
if use test ; then
edo git init > /dev/null
edo git config user.email "you@example.com"
edo git config user.name "Your Name"
edo git remote add origin https://github.com/semgrep/semgrep
fi
}
dev-python/attrs[] dev-python/boltons[] dev-python/click[] dev-python/click-option-group[] dev-python/colorama[] dev-python/exceptiongroup[] dev-python/glom[] dev-python/jsonschema[] dev-python/mcp[] dev-python/opentelemetry-api[] dev-python/opentelemetry-instrumentation-requests[] dev-python/opentelemetry-instrumentation-threading[] dev-python/opentelemetry-exporter-otlp-proto-http[] dev-python/opentelemetry-sdk[] dev-python/packaging[] dev-python/peewee[] dev-python/pyjwt[] dev-python/requests[] dev-python/rich[] dev-python/ruamel-yaml[] dev-python/ruamel-yaml-clib[] dev-python/semantic-version[] dev-python/tomli[] dev-python/typing-extensions[] dev-python/urllib3[] dev-python/wcmatch[] dev-util/semgrep-core
test? ( dev-python/appdirs[] )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | semgrep-1.163.0.gh.tar.gz | 11869128 bytes | https://github.com/semgrep/semgrep/archive/v1.163.0.tar.gz |