commit: 31700b97c57b97011db3424128491a240926aece
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 15 06:43:44 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Oct 15 07:04:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31700b97
dev-python/blake3: Bump to 1.0.8
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/blake3/Manifest | 1 +
dev-python/blake3/blake3-1.0.8.ebuild | 135 ++++++++++++++++++++++++++++++++++
2 files changed, 136 insertions(+)
diff --git a/dev-python/blake3/Manifest b/dev-python/blake3/Manifest
index 8eae4438fd06..073daa729e0b 100644
--- a/dev-python/blake3/Manifest
+++ b/dev-python/blake3/Manifest
@@ -3,6 +3,7 @@ DIST arrayvec-0.7.6.crate 31237 BLAKE2B
b9d1df7e3ec47d434a2606fe9540e37e02351873
DIST autocfg-1.5.0.crate 18729 BLAKE2B
27580e39b366c6fca02c9db09997b6415c409f12068f1249184268bf96fd85ba659e25ec730f99e10caf452f96c486f3d7442bf09c4552b5f39519b21d6f88cc
SHA512
f279856f234d39d369623576acf9546a1ca24d7fe449f36d4fb93ea75a7efaf2c4015b9616a69bbbed358c5e5882e16b045352f046aa4c049b3d13b1e8257b08
DIST blake3-1.8.2.crate 205967 BLAKE2B
ec9afd8f3fda5ac545fae869e4af941a4ae30473cb3e5a0b0f128c1dbf0c6231e3cf87decdfc765b69b99e2b2879f3f345ff7bf738911557740fb0445c9e028c
SHA512
8635c3ac12c7f333912a6f42c75499395d6178a0dca810d9199bb533facb409970b17bff4b7f55731a7d5d75932e62b236e1651ed0388e2796024bd7dd2852b8
DIST blake3-py-1.0.7.gh.tar.gz 114424 BLAKE2B
4aea5de0f99b5e098b0e45f0db02f15df53a3e73dbaf94aa9d2177c81b00069aec95e1912a5247d7adebbcac2dc4a2dca01e8544ad8434c0ec7bfba5832b9194
SHA512
326cbccb2415e388b310be57e7ed694c86fb808d075dc6093a2a9eb92d71201531e813945fe56235bc3916305a4595f42c5d6a2221ab0e62f16f3ffd98428690
+DIST blake3-py-1.0.8.gh.tar.gz 115913 BLAKE2B
e946f3bffb77c3fce916845726531b2876bbeb80775a96799cc9d9d212fd1828715343dd02bddf138f48dd8ab46f217c493769a214bd609bfb65d4d67ebedb43
SHA512
76682f021f465b523c8d71d4862898fe3e77ce2e31bf964682be9bda795c1364cf9103c57659a9ad6f0adbc97abc002bb9f773ba038b091367fdf83939d71452
DIST cc-1.2.39.crate 90774 BLAKE2B
03c02839a1e464a32a6a6e532e1c7505d7c062facbfa3bfb0e69070d336922e247da8a63876e90f5f31c3c13085500fbf6a0736609db6c840d889e281d345892
SHA512
73f580f1bc1cab96a54a86025957cd846f7a3629f43b3b51b81e336a10cbbe81be6936afcef42118ad9b85184bf3b4dac2c151a62018f75b6b517ff294827954
DIST cfg-if-1.0.3.crate 8719 BLAKE2B
5cd0ac122110740895b45cdf8e0f738f2de1882d5a06c696d08e906765e4ddcd72a866dcc115da52d9fece205c9ad15dc25ad98dff36b32517012a7586e986ee
SHA512
afe424a191c2aaaffec3d114e0116d0324d12117aeb22df78e47ad6752444bc5acb074ab0a174476b71e584a37743f9dcc2b0e8036d590fcc5afc7c55f86122b
DIST constant_time_eq-0.3.1.crate 11561 BLAKE2B
9ac06a1b13da2aacfaa20d60e48df4f32f6462e4036fd9ec116c45a9bbe142a18b82cf18d762989876f31b745d98d52ce7e3d32f6c9700a500f16f00649b5699
SHA512
2b6b0d7572c02606b7c3780013fb1d1773b999a0d9934e4b140dd82f94e6c91d2ef82f6daaa1bda94f95bdf6b5997b2f0ea0c8eba8ca7e28a07d1e06b1071b50
diff --git a/dev-python/blake3/blake3-1.0.8.ebuild
b/dev-python/blake3/blake3-1.0.8.ebuild
new file mode 100644
index 000000000000..72eeb2f18f97
--- /dev/null
+++ b/dev-python/blake3/blake3-1.0.8.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CARGO_OPTIONAL=1
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=standalone
+PYTHON_COMPAT=( python3_{11..14} )
+
+RUST_MIN_VER="1.80.0"
+CRATES="
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+"
+
+inherit cargo distutils-r1
+
+MY_P=blake3-py-${PV}
+DESCRIPTION="Python bindings for the BLAKE3 cryptographic hash function"
+HOMEPAGE="
+ https://github.com/oconnor663/blake3-py/
+ https://pypi.org/project/blake3/
+"
+SRC_URI="
+ https://github.com/oconnor663/blake3-py/archive/${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+ rust? (
+ ${CARGO_CRATE_URIS}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="
+ || ( CC0-1.0 Apache-2.0 )
+ rust? (
+"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0-with-LLVM-exceptions BSD-2 MIT Unicode-3.0
+ || ( Apache-2.0 CC0-1.0 MIT-0 )
+"
+LICENSE+="
+ )
+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+rust"
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+BDEPEND="
+ rust? (
+ ${RUST_DEPEND}
+ dev-util/maturin[${PYTHON_USEDEP}]
+ )
+ !rust? (
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+ )
+ test? (
+ dev-python/numpy[${PYTHON_USEDEP}]
+ )
+"
+
+QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/blake3/blake3.*.so"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+pkg_setup() {
+ use rust && rust_pkg_setup
+}
+
+src_unpack() {
+ # Do this unconditionally as it has sensible behaviour even
+ # w/ USE=-rust.
+ cargo_src_unpack
+}
+
+src_prepare() {
+ # sed the package name and version to improve compatibility
+ sed -e 's:blake3_experimental_c:blake3:' \
+ -e "s:0[.]0[.]1:${PV}:" \
+ -i c_impl/setup.py || die
+
+ distutils-r1_src_prepare
+}
+
+python_compile() {
+ local DISTUTILS_USE_PEP517=$(usex rust maturin setuptools)
+
+ if ! use rust; then
+ cd c_impl || die
+ fi
+ distutils-r1_python_compile
+ if ! use rust; then
+ cd - >/dev/null || die
+ fi
+}