summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-08-07 10:41:54 +0200
committerMichał Górny <mgorny@gentoo.org>2022-08-07 10:54:10 +0200
commite1d64ed3f4169995164fb58d25154823f68e2451 (patch)
tree45307e6f1bdeedc5472b122a29f42a3a7b390667 /dev-python/pyxDamerauLevenshtein
parentdev-python/stripe: Bump to 4.0.2 (diff)
downloadgentoo-e1d64ed3f4169995164fb58d25154823f68e2451.tar.gz
gentoo-e1d64ed3f4169995164fb58d25154823f68e2451.tar.bz2
gentoo-e1d64ed3f4169995164fb58d25154823f68e2451.zip
dev-python/pyxDamerauLevenshtein: Bump to 1.7.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyxDamerauLevenshtein')
-rw-r--r--dev-python/pyxDamerauLevenshtein/Manifest1
-rw-r--r--dev-python/pyxDamerauLevenshtein/metadata.xml2
-rw-r--r--dev-python/pyxDamerauLevenshtein/pyxDamerauLevenshtein-1.7.1.ebuild40
3 files changed, 42 insertions, 1 deletions
diff --git a/dev-python/pyxDamerauLevenshtein/Manifest b/dev-python/pyxDamerauLevenshtein/Manifest
index 61ec1a0905cb..0ac9fe91428d 100644
--- a/dev-python/pyxDamerauLevenshtein/Manifest
+++ b/dev-python/pyxDamerauLevenshtein/Manifest
@@ -1 +1,2 @@
DIST pyxDamerauLevenshtein-1.7.0.tar.gz 41867 BLAKE2B a8fe379a10bfd37e1675dab83d83d1b53308b5539c86e31f507a0243da898d57c4d320661642e23be439c4aabf88b1aaa559bc620e193e58586568cdfd8040df SHA512 11704d3968261cd844ce248c913f1b9baf813d0f8c712971ac4ec05466f8aa5719932e282b49e378d6799ae88483804055765a881d3cef8e7adff486b450e98e
+DIST pyxDamerauLevenshtein-1.7.1.gh.tar.gz 43690 BLAKE2B 52950fa10667775828ee57ae9f68ea06bf8cf4e794c3cf27189fbc1affe877ee2537a5dfc3173a58a8b9ccfae664190e4eac250ddbc7cbeda748af033dd3fbbb SHA512 d16be05305ac8cdabecae90353e68cc51ac99ea88338fafe8379f6969434a9e3e3ac95ba58f71d15ccfcadfb3a9fbe30af563ec848e54115c64c83c69596e116
diff --git a/dev-python/pyxDamerauLevenshtein/metadata.xml b/dev-python/pyxDamerauLevenshtein/metadata.xml
index 0fd668f7517e..053dcd413581 100644
--- a/dev-python/pyxDamerauLevenshtein/metadata.xml
+++ b/dev-python/pyxDamerauLevenshtein/metadata.xml
@@ -11,6 +11,6 @@
</maintainer>
<upstream>
<remote-id type="pypi">pyxDamerauLevenshtein</remote-id>
- <remote-id type="github">gfairchild/pyxDamerauLevenshtein</remote-id>
+ <remote-id type="github">lanl/pyxDamerauLevenshtein</remote-id>
</upstream>
</pkgmetadata>
diff --git a/dev-python/pyxDamerauLevenshtein/pyxDamerauLevenshtein-1.7.1.ebuild b/dev-python/pyxDamerauLevenshtein/pyxDamerauLevenshtein-1.7.1.ebuild
new file mode 100644
index 000000000000..0a2eac2f69e0
--- /dev/null
+++ b/dev-python/pyxDamerauLevenshtein/pyxDamerauLevenshtein-1.7.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Implements the Damerau-Levenshtein edit distance algorithm for Python in Cython"
+HOMEPAGE="
+ https://github.com/lanl/pyxDamerauLevenshtein/
+ https://pypi.org/project/pyxDamerauLevenshtein/
+"
+SRC_URI="
+ https://github.com/lanl/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+RDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+src_configure() {
+ # recythonize
+ cd pyxdameraulevenshtein || die
+ cython -3 -f *.pyx || die
+}
+
+src_test() {
+ rm -r pyxdameraulevenshtein || die
+ distutils-r1_src_test
+}