summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-10-28 05:58:12 +0100
committerMichał Górny <mgorny@gentoo.org>2024-10-28 05:58:12 +0100
commitda91cabfc791dfb97afa4532f566f59a36174e5c (patch)
tree55a536fd1444a7403183859d15d5769b54ce73ba /dev-python/Levenshtein
parentdev-python/starlette: Bump to 0.41.2 (diff)
downloadgentoo-da91cabfc791dfb97afa4532f566f59a36174e5c.tar.gz
gentoo-da91cabfc791dfb97afa4532f566f59a36174e5c.tar.bz2
gentoo-da91cabfc791dfb97afa4532f566f59a36174e5c.zip
dev-python/Levenshtein: Bump to 0.26.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/Levenshtein')
-rw-r--r--dev-python/Levenshtein/Levenshtein-0.26.1.ebuild45
-rw-r--r--dev-python/Levenshtein/Manifest1
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-python/Levenshtein/Levenshtein-0.26.1.ebuild b/dev-python/Levenshtein/Levenshtein-0.26.1.ebuild
new file mode 100644
index 000000000000..20b556469ade
--- /dev/null
+++ b/dev-python/Levenshtein/Levenshtein-0.26.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=scikit-build-core
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="Functions for fast computation of Levenshtein distance, and edit operations"
+HOMEPAGE="
+ https://pypi.org/project/Levenshtein/
+ https://github.com/rapidfuzz/Levenshtein/
+"
+SRC_URI="
+ https://github.com/rapidfuzz/Levenshtein/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+DEPEND="
+ <dev-cpp/rapidfuzz-cpp-4
+ >=dev-cpp/rapidfuzz-cpp-3.0.0
+"
+RDEPEND="
+ <dev-python/rapidfuzz-4.0.0[${PYTHON_USEDEP}]
+ >=dev-python/rapidfuzz-3.9.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ >=dev-python/cython-3.0.11[${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 49acda299a21..f9e70a2c3422 100644
--- a/dev-python/Levenshtein/Manifest
+++ b/dev-python/Levenshtein/Manifest
@@ -1,2 +1,3 @@
DIST Levenshtein-0.25.1.gh.tar.gz 39060 BLAKE2B 9d058d910be7c6c3e668cca631a7da5bed678e219c96e4255dbf69c46cb3c55002928fcd90f39916b6c1a57845e9cf1a2327701ae21c662b81f909b9ea1f4bff SHA512 936dab36b15df6f2ee5425efb1fdb1490fb8f618ba453f464a6dd615bcc427e55ceee7474f06b34392871d9f38470b853602a11d8f9776eee66ec34156511ca4
DIST Levenshtein-0.26.0.gh.tar.gz 38404 BLAKE2B c78a53ba9d5c10968f000264cd20e9d5bc155135765088d4cb7f3f937c6cb5c30f01c09c977e9c8a50d4d0bafab0ad89848102d6f28c57cd471b5901f652d175 SHA512 cf48aa9e81a90c6a9a4cc7033f5035dc89f45db9c7e35929c4b11e2b9af180a018d455a56b8c1f5c748db263401155950e1985a195613a5bb914050f5d68e998
+DIST Levenshtein-0.26.1.gh.tar.gz 38429 BLAKE2B d217bf620f5ebe68a50230f7ce91f292f0a9cd9781b29a9e328e1e788d2d2f2ee71362a1ab660794f6adfa7e7267d9bc3685e9460754354226a6b964affd0ade SHA512 589b1f404108f488caf880063f20ee9c6a2033b0a2cd819352bf15e285ea8537c1dc8117de70679f720fd3da47546f7e0e5c620e4da8cf09bf8df9b119e6abc9