pentoo-overlay/dev-python/libsast/libsast-1.4.5-r1.ebuild
2022-11-09 09:16:30 +08:00

29 lines
704 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="A generic SAST core built on top of semgrep and regex"
HOMEPAGE="https://github.com/ajinabraham/libsast/"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="amd64"
IUSE="test"
RDEPEND=">=dev-python/requests-2.22.0[${PYTHON_USEDEP}]
>=dev-python/pyyaml-5.3[${PYTHON_USEDEP}]
>=dev-python/semgrep-0.53.0[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare(){
sed -i "s|semgrep==|semgrep>=|g" setup.py
eapply_user
}