commit: 3e06b51b19a49c09c8f0a91ed2c0e8a400c96399
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 2 03:57:41 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jun 2 04:06:53 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e06b51b
dev-python/simsimd: Bump to 6.4.7
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/simsimd/Manifest | 1 +
dev-python/simsimd/simsimd-6.4.7.ebuild | 64 +++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+)
diff --git a/dev-python/simsimd/Manifest b/dev-python/simsimd/Manifest
index 65249764a003..8e5b26756ad1 100644
--- a/dev-python/simsimd/Manifest
+++ b/dev-python/simsimd/Manifest
@@ -1 +1,2 @@
DIST SimSIMD-6.4.5.gh.tar.gz 219987 BLAKE2B
35ba9c1913727b55c9ced73c7940343c1653bc059c5e289683011c236581362ee3d6ce29626ec29f6eb6d0c2bc0fd85dc2989ed84e4362a81506b7ac7b4c71e3
SHA512
734700ec6b8dc5d6a73999f2b53365740ffc3c24787a02680e9b329a1c63fff61b429591cf168adbb002b85599a84801a28530cf929f7ade40d5ce1770ce334c
+DIST SimSIMD-6.4.7.gh.tar.gz 221008 BLAKE2B
074c6d466a3b091fdba61d5896dc88adda516e90218940106a139249c70a27f51538a44fafe68159aba81e0c2b4662741d596e3258ad6a0147b69eef4e160b90
SHA512
73caaf4aa4b9de338d3f7205c60c6c2476ebf692d58ba9ae29797ab70c556fbf4e2acc111e5c48abc948addec3911e526bc77fe89a0624f7c02487d61da20f6b
diff --git a/dev-python/simsimd/simsimd-6.4.7.ebuild
b/dev-python/simsimd/simsimd-6.4.7.ebuild
new file mode 100644
index 000000000000..2855eb30f7fb
--- /dev/null
+++ b/dev-python/simsimd/simsimd-6.4.7.ebuild
@@ -0,0 +1,64 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1 toolchain-funcs
+
+MY_P=SimSIMD-${PV}
+DESCRIPTION="Fastest SIMD-Accelerated Vector Similarity Functions for x86 and
Arm"
+HOMEPAGE="
+ https://github.com/ashvardanian/SimSIMD/
+ https://pypi.org/project/simsimd/
+"
+# no sdist, as of 4.3.1
+# https://github.com/ashvardanian/SimSIMD/issues/113
+SRC_URI="
+ https://github.com/ashvardanian/SimSIMD/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="openmp"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-repeat[${PYTHON_USEDEP}]
+ dev-python/tabulate[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+pkg_pretend() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+}
+
+pkg_setup() {
+ if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
+ tc-check-openmp
+ fi
+}
+
+src_prepare() {
+ sed -i -e '/-O3/d' setup.py || die
+ if ! use openmp; then
+ sed -i -e '/-fopenmp/d' setup.py || die
+ fi
+
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest -p repeat scripts/test.py
+}