diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-20 05:59:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-20 05:59:19 +0100 |
commit | dcf9ac80d0667a18496506842a8903ba5dab2fc7 (patch) | |
tree | 2b00642cd6bdbd7de71159350f01b424ffc37420 /dev-python/Levenshtein/Levenshtein-0.21.0.ebuild | |
parent | f7e94be7540157809ed892278b6765c368a5a912 (diff) |
gentoo auto-resync : 20:04:2023 - 05:59:19
Diffstat (limited to 'dev-python/Levenshtein/Levenshtein-0.21.0.ebuild')
-rw-r--r-- | dev-python/Levenshtein/Levenshtein-0.21.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/Levenshtein/Levenshtein-0.21.0.ebuild b/dev-python/Levenshtein/Levenshtein-0.21.0.ebuild new file mode 100644 index 000000000000..35b4a12135b8 --- /dev/null +++ b/dev-python/Levenshtein/Levenshtein-0.21.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# custom wrapper over setuptools +DISTUTILS_USE_PEP517=standalone +PYTHON_COMPAT=( python3_{9..11} ) + +inherit distutils-r1 + +DESCRIPTION="Functions for fast computation of Levenshtein distance, and edit operations" +HOMEPAGE=" + https://pypi.org/project/Levenshtein/ + https://github.com/maxbachmann/Levenshtein/ +" +SRC_URI=" + https://github.com/maxbachmann/Levenshtein/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +DEPEND=" + >=dev-cpp/rapidfuzz-cpp-1.7.0 +" +RDEPEND=" + <dev-python/rapidfuzz-4.0.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + >=dev-python/scikit-build-0.13.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + # sterilize build flags + sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die + + distutils-r1_src_prepare +} |