diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-09-26 18:40:12 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-26 18:43:38 +0200 |
commit | d9f6c8b514c8f0ddb8fca620ad10f5c220c090b9 (patch) | |
tree | af2d3cb2ef17fc67fbf25d393cc41825b4ce1ad0 /dev-python/Levenshtein | |
parent | dev-python/traitlets: Bump to 5.10.1 (diff) | |
download | gentoo-d9f6c8b514c8f0ddb8fca620ad10f5c220c090b9.tar.gz gentoo-d9f6c8b514c8f0ddb8fca620ad10f5c220c090b9.tar.bz2 gentoo-d9f6c8b514c8f0ddb8fca620ad10f5c220c090b9.zip |
dev-python/Levenshtein: Bump to 0.22.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/Levenshtein')
-rw-r--r-- | dev-python/Levenshtein/Levenshtein-0.22.0.ebuild | 46 | ||||
-rw-r--r-- | dev-python/Levenshtein/Manifest | 1 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/Levenshtein/Levenshtein-0.22.0.ebuild b/dev-python/Levenshtein/Levenshtein-0.22.0.ebuild new file mode 100644 index 000000000000..c9d35f976f51 --- /dev/null +++ b/dev-python/Levenshtein/Levenshtein-0.22.0.ebuild @@ -0,0 +1,46 @@ +# 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}] +" +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 95992709ee98..396670d389da 100644 --- a/dev-python/Levenshtein/Manifest +++ b/dev-python/Levenshtein/Manifest @@ -1 +1,2 @@ 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 |