summaryrefslogtreecommitdiff
path: root/dev-python/Levenshtein
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/Levenshtein')
-rw-r--r--dev-python/Levenshtein/Levenshtein-0.23.0.ebuild47
-rw-r--r--dev-python/Levenshtein/Manifest2
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/Levenshtein/Levenshtein-0.23.0.ebuild b/dev-python/Levenshtein/Levenshtein-0.23.0.ebuild
new file mode 100644
index 000000000000..72431dbaab2c
--- /dev/null
+++ b/dev-python/Levenshtein/Levenshtein-0.23.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+# custom wrapper over setuptools
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( python3_{10..12} )
+
+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-2.0.0
+"
+RDEPEND="
+ <dev-python/rapidfuzz-4.0.0[${PYTHON_USEDEP}]
+ >=dev-python/rapidfuzz-3.1.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ >=dev-python/cython-3.0.2[${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
+}
diff --git a/dev-python/Levenshtein/Manifest b/dev-python/Levenshtein/Manifest
index f6cb365b1f14..e4fc55aa9a69 100644
--- a/dev-python/Levenshtein/Manifest
+++ b/dev-python/Levenshtein/Manifest
@@ -1,5 +1,7 @@
DIST Levenshtein-0.21.1.gh.tar.gz 36656 BLAKE2B b2e5325cd836b646d876fb59d1062c7bb415d707076d9692fff2b98e00dce29d813fb68c139283d66f8800fd836ec93b709ac7ebfaa6d9cca563b65c428019ef SHA512 5fd823e7871c53f521198275b7ebb3189f7208347d41f306686e11446397c4ed5b2672230cbfa76a0c2f1afcc08fd24c6c7468d808be2a09bb9c31c2d9f61f16
DIST Levenshtein-0.22.0.gh.tar.gz 36726 BLAKE2B dec59ca80d0c40295a97adeb59f7946be3e38b3b29e7ec7345e07c0853e5817df6d98213e6d60bf4300a7998ee9754da5d266567aed0c543f8c82955b7821a39 SHA512 f762d6702dc3acbde1c545ec4ca3bb5c96ce256319c4cd045737fa9c7309f5fab7dca621a09b1fb6f89a925f505737cbde9c1f480d3c2f4a2b948b1b8083bbee
+DIST Levenshtein-0.23.0.gh.tar.gz 36891 BLAKE2B 847772ee88a76881c0974a1a9c1ef252320308f17b30b227f8251b0a8b8454c2289e02a24b2a9cb225d34183c5b6e4dbf574b22a5d37a1b453596ff0cb6e0aa0 SHA512 137116f337f576534bf2c12dc49d35f81a3b267eb613e5e6cca6cb80e5701dd0adbfd97c1cec4ea8f1bb4dee2bc67deeb19553474348ea78af4e05b79ce01fdf
EBUILD Levenshtein-0.21.1.ebuild 1062 BLAKE2B 51dd32567f98652893949938e241d6c1c62d4715e0dfd2db64594df8d2e93b995725b3d6e0c50139dcae777f803d0a569674dd0daf24ba0a05431763bd93bfc9 SHA512 8790f0a230bd62363669eba93dd95ade80cb58014086d439b7380643b1f8e7e1add645de13903f72dbb13eb62539aa7def1f0e7fa156eeda0722a7fd3d2f63b8
EBUILD Levenshtein-0.22.0.ebuild 1077 BLAKE2B f6f834b2d8b1db9d2d2a8cbf56b128bb13b479c945ca6b996b6cb79bae4e2cee7f73f089b6b1e3757ba31cd649d1ee77009981a12bb1e0601609be7c9e9f57eb SHA512 6403310f2a2adc30beb0bff5de09b5fe264b4e65eedcdf023f79c34499751c1b22f74d09a1d9c4d3f1d9303d1ff4f88f5387375e26457ad68c15954e18bfb4af
+EBUILD Levenshtein-0.23.0.ebuild 1125 BLAKE2B 7226d46530aff5a5a91d174d33be798afdb9c7ef73a30606d845c2dc01d1f4b1777347ab54946f53bea53485567cdfc1bdc7d0a8b6771dccbbb8fb8be457b880 SHA512 4131a065b7ba6614e12befe33d3311e5da7921ad779ac8915070e06fbba9212a44e1893adb1c2a142a18149a92cb38b9b0fc24430f1fc37d9080d690d4185b8e
MISC metadata.xml 378 BLAKE2B 59900a9f2532c274a220466ff9bd5db4a4830b221119a95a0fdf82928b90c64b458b16c26257b69093ac08346bafbe54189bdb873bb8f119753a4f2243973eb9 SHA512 26b3ddc5d3843122a47941cb1e388e41f6a3f98e3f8d2f5108f50240b5c9005edb2b1e2df55c9046d48a8b4e07941f8ccd4fdee129f4ac948a47a6207b73c7ba