diff options
Diffstat (limited to 'dev-python/pyxdameraulevenshtein')
-rw-r--r-- | dev-python/pyxdameraulevenshtein/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pyxdameraulevenshtein/metadata.xml | 12 | ||||
-rw-r--r-- | dev-python/pyxdameraulevenshtein/pyxdameraulevenshtein-1.8.0.ebuild | 43 |
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/pyxdameraulevenshtein/Manifest b/dev-python/pyxdameraulevenshtein/Manifest new file mode 100644 index 000000000000..ab262b81e068 --- /dev/null +++ b/dev-python/pyxdameraulevenshtein/Manifest @@ -0,0 +1,3 @@ +DIST pyxDamerauLevenshtein-1.8.0.gh.tar.gz 9175 BLAKE2B 2c17ee794153071081cb463597a85d1428eb0620f4f30966a0deb257eb03efb34f95c45fc7d90a22bfd5034283ba7ba08ab1338278f0d81024e45d6ab8d19b05 SHA512 87429f8c106b31c024893313645d9f7af04f855c01009a461a59c506ac778be717c3052af47e9dce53a28c00ed4ee47347e975e9f8ccb50eb504c97b7d580206 +EBUILD pyxdameraulevenshtein-1.8.0.ebuild 892 BLAKE2B bfba737602fdd8d988b41d727f1a2f997fe9403350897d348420e05750b10a728ab8e4ed9671fce6e76838679b83217d3b6ca8960603ed0fc64024865473189d SHA512 e55518ca8115a7430ac1fd72df58d134ff45f0a1f15cfd05bedb0d79e0cb8ee28ae47d5dea3b3e90887af8698697298a6797821f4121729fe2eb1e77b166e9a3 +MISC metadata.xml 391 BLAKE2B c4cb09d3d351d586dfd6b7636135e7cdcaf14dd019147641429c6179d703774e9ba757302abe813cf28473bbb0d978bb81788942e115c0fa2d667a4c7effd022 SHA512 beea80f190eeb9747d4d3c04b18cd342db11637232a36ebb593e10b2e6394863fbd2c5835e15065f8031804da9a7422ca1922cd316964b08d4d1d4f3e9c486a9 diff --git a/dev-python/pyxdameraulevenshtein/metadata.xml b/dev-python/pyxdameraulevenshtein/metadata.xml new file mode 100644 index 000000000000..dc344125bd85 --- /dev/null +++ b/dev-python/pyxdameraulevenshtein/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">pyxDamerauLevenshtein</remote-id> + <remote-id type="github">lanl/pyxDamerauLevenshtein</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/pyxdameraulevenshtein/pyxdameraulevenshtein-1.8.0.ebuild b/dev-python/pyxdameraulevenshtein/pyxdameraulevenshtein-1.8.0.ebuild new file mode 100644 index 000000000000..e6eaaabc3af6 --- /dev/null +++ b/dev-python/pyxdameraulevenshtein/pyxdameraulevenshtein-1.8.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} ) + +inherit distutils-r1 + +MY_P=pyxDamerauLevenshtein-${PV} +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/pyxDamerauLevenshtein/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ppc64 ~riscv x86" + +BDEPEND=" + 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 +} |