diff options
Diffstat (limited to 'dev-python/rapidfuzz')
-rw-r--r-- | dev-python/rapidfuzz/Manifest | 2 | ||||
-rw-r--r-- | dev-python/rapidfuzz/rapidfuzz-3.10.1.ebuild | 59 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/rapidfuzz/Manifest b/dev-python/rapidfuzz/Manifest index b3e2b51a2e43..bb2a0cceb87f 100644 --- a/dev-python/rapidfuzz/Manifest +++ b/dev-python/rapidfuzz/Manifest @@ -1,7 +1,9 @@ DIST rapidfuzz-3.10.0.tar.gz 57942780 BLAKE2B 3510ef495e9eb2a158eae73526e109809a9487ce48a70189b0c6f25957e46a6a640f1d0f9ef00203ea7730a2ba2b1086db9faf20434c92afb6b7205057aa5c22 SHA512 88e92ac4bfd72288546265c4d3957ce672f314f08f39b11ba21c267b07797eec45315af788f94152a4704e0782df77fbcb40ef6773be7d3a5d3684fd7230e437 +DIST rapidfuzz-3.10.1.tar.gz 57982250 BLAKE2B 7b0c5f4a940b46bcc340eb8bf32cec3389b243368c36caa92e39e62f18c7ebb1f56d439bf8609825b4b64d743dc0ae041b4660b89cd03af0016944620ab99648 SHA512 f72a9ed6e3fd64640a877d50ab25c90d1969adfd93ff0029526a94ff1e62aa4fd8e9b4ce63ee8a5b37cfb68d2966051e76d78b26ef502a8c0b28fe5f462c8462 DIST rapidfuzz-3.9.6.tar.gz 1596107 BLAKE2B e108320e05ad3ad194b1ffa05d5fddc5bb6080e73ecb031117a0552d5685734870af4a87503022fceadf3fd38b31e71f85c05483b4aaaf4a9d7358d4566699b4 SHA512 015b947dcfd12ee48c7592ac2fc204833d8aa8e43110dab12dff7650e9f309a9a2017d2faf89b3c154cead23d9dc7fc1658f0ff5d2f8b5b3c73b2c97f021c7d9 DIST rapidfuzz-3.9.7.tar.gz 1596228 BLAKE2B ba3188748dc408cbe91718e890fd67e9ee47feacfe2b307038d7bfc6ffdb7aebb016b2276b591a1fd3a5c59df29a1b55a9555505f938638907d11deec9575f98 SHA512 b1a50f3ff0af044e0aa57a053bcefb3227dce2ed17b94ed82afe72203c6e858221c5ca955e4f190a0cb7adaeada11fab7fa5958e1c439deec60d96899207269d EBUILD rapidfuzz-3.10.0.ebuild 1430 BLAKE2B a6d1eb20a6e086cce08e6c78e3f9cc9f30b529e5ac0312261951db54bf7792feef576f305c07669ac8c49333396c5208ae377bfa47f9f373e868b655dd182aaa SHA512 f578071abff32326c288286270f5e92c100a78beb80d2f8ba368230bd9c7f0e35a818f673faf1a2fc426392eec1809cc7f20b8b4e9a7e0e4476f96f5ffa963f0 +EBUILD rapidfuzz-3.10.1.ebuild 1435 BLAKE2B d0748e9c81bb4811ccba53c7935cdb61287c09ae3803bd833c5fc2e35d1e220be60013ec8892dd23257258c382f0d38a625dd4fe0c95e431984ed976470eb895 SHA512 61c98ae9a9fdcd34036dfea99a146a590f8f12792d46fb6e4a3ac2e21f530108d211f6bf6b55ac14c97086c8b7cadb07025f1f861779c4819ecab74b58dbdf2c EBUILD rapidfuzz-3.9.6.ebuild 1584 BLAKE2B a82d3c988cf3b83f5b1cd9955d3effa17723e49544c7f1b7aced89df52b62a0e0662f96c5b6c338209b60d669b429ac26c3793c700637b4bec23e6b5c71f4d36 SHA512 38b2451743ffb00568ee7fc3113573f74c56a3799a6941342cb8712c844f720ab62e870bb244d2dd5e91fb8f023928f1425ec9e52192df447f40278699a55574 EBUILD rapidfuzz-3.9.7.ebuild 1586 BLAKE2B 96fd075fd2f43c1b62391d4a545ab6c667fb3ddfc5cdff0056f0ca9eb896aff59d52f3243ba82128f892b21e8daf9026d0660e6bd6efd8194056dc1317508015 SHA512 5956eb6f3a55d392cfbff6c829f6ff45f16c2330ba1d5b430623f1754b84682307290dcf4722a8ff1d2fb0434761bbc2d0bf87932015f44637a33490a7a9cec2 MISC metadata.xml 372 BLAKE2B 813733515163b827652c103af137a7adb5c126ee46ad654306e35e958bd5e5d5f9711c388ac0731203b29b441f075cf23d5090388aa4bc454f824697d2c8302e SHA512 a3e13245f49647e164df0554168f45861556a931963776457fa64c0f690c76da302b8a32dadd145dc70887bc1b927f71b06db196ec2b15e89e3702208b85fa59 diff --git a/dev-python/rapidfuzz/rapidfuzz-3.10.1.ebuild b/dev-python/rapidfuzz/rapidfuzz-3.10.1.ebuild new file mode 100644 index 000000000000..e97d242a28e1 --- /dev/null +++ b/dev-python/rapidfuzz/rapidfuzz-3.10.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2022-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 +PYPI_PN=RapidFuzz +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Rapid fuzzy string matching in Python using various string metrics" +HOMEPAGE=" + https://github.com/rapidfuzz/RapidFuzz/ + https://pypi.org/project/RapidFuzz/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# all these are header-only libraries +DEPEND=" + >=dev-cpp/taskflow-3.0.0 + >=dev-cpp/rapidfuzz-cpp-3.1.1 + dev-python/numpy[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/cython-3[${PYTHON_USEDEP}] + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + # sterilize build flags + sed -i -e '/CMAKE_INTERPROCEDURAL_OPTIMIZATION/d' CMakeLists.txt || die + # remove bundled libraries + rm -r extern || die + # force recythonization + find src -name '*.cxx' -delete || die + # do not require exact taskflow version + sed -i -e '/Taskflow/s:3\.8\.0::' CMakeLists.txt || die + # https://github.com/scikit-build/scikit-build-core/issues/912 + sed -i -e '/scikit-build-core/s:0\.10:0.8:' pyproject.toml || die + + distutils-r1_src_prepare + + export RAPIDFUZZ_BUILD_EXTENSION=1 +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |