mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-07 00:00:27 -04:00
cf2f416d93
Main difference is that we can drop a patch for py3.12 (and newer, I suppose) as upstream included the patch in this release. Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Part-of: https://codeberg.org/gentoo/gentoo/pulls/34 Merges: https://codeberg.org/gentoo/gentoo/pulls/34 Signed-off-by: Sam James <sam@gentoo.org>
39 lines
799 B
Bash
39 lines
799 B
Bash
# Copyright 2022-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_EXT=1
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..14} )
|
|
|
|
inherit distutils-r1
|
|
|
|
MY_P=tlsh-${PV}
|
|
DESCRIPTION="Fuzzy matching library - C++ extension for Python"
|
|
HOMEPAGE="
|
|
https://github.com/trendmicro/tlsh/
|
|
https://pypi.org/project/python-tlsh/
|
|
"
|
|
SRC_URI="
|
|
https://github.com/trendmicro/tlsh/archive/${PV}.tar.gz
|
|
-> ${MY_P}.gh.tar.gz
|
|
"
|
|
S=${WORKDIR}/${MY_P}/py_ext
|
|
|
|
LICENSE="|| ( Apache-2.0 BSD )"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
|
|
|
|
DEPEND="dev-libs/tlsh"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-4.8.2-setup-sources.patch
|
|
"${FILESDIR}"/${P}-tlshmodule.patch
|
|
)
|
|
|
|
python_test() {
|
|
../Testing/python_test.sh "${EPYTHON}" || die
|
|
}
|