public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/blake3/
Date: Sat, 25 Jan 2025 06:24:39 +0000 (UTC)	[thread overview]
Message-ID: <1737786273.95a124b9b9ad5776c8a839408e680145cd7b6d86.mgorny@gentoo> (raw)

commit:     95a124b9b9ad5776c8a839408e680145cd7b6d86
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 25 06:08:33 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jan 25 06:24:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a124b9

dev-python/blake3: Bump to 1.0.4

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/blake3/Manifest            |   1 +
 dev-python/blake3/blake3-1.0.4.ebuild | 127 ++++++++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+)

diff --git a/dev-python/blake3/Manifest b/dev-python/blake3/Manifest
index cf0b76d29884..3c46b90bbd57 100644
--- a/dev-python/blake3/Manifest
+++ b/dev-python/blake3/Manifest
@@ -5,6 +5,7 @@ DIST blake3-1.5.5.crate 181134 BLAKE2B 0195efa92e121dfa22abf56e72daef664f00c36ea
 DIST blake3-py-1.0.0.gh.tar.gz 113868 BLAKE2B 5b2b7ddea81cb9080a9db18b4262ec7b1e922454cb9fafe08a24d36721ddbc551093431f9b908e9453c8a72be4dffbaf47815c7dbe3178ec8fe3336db90b2d4c SHA512 fecef1d92b1fa209fe24bc94aa1f3bb83a5896f0615f62f99811b7cdf45099a5b7e9be35355174fc49721e72b6ec594719e4cfc01bb89b7534aa594acbdbfc54
 DIST blake3-py-1.0.1.gh.tar.gz 114051 BLAKE2B 4ff842d91d64237b030d7fa9e5b6efefb8d0a78c846bb78fa2a5075da5a969a7aec98edf4b5d1bbba0276f5d6d4021f85a9f54af66c54f6c0ce0d643b3aefcb5 SHA512 54d2b0b3aef48dfde6f15d3cfb7a4ebd4549ca8bedbb8b4a95fc882e4a08ed1beb1ad53f62042f0de3792fa1a9177f287e6c8f6c65aa4e7414210549bc67ec77
 DIST blake3-py-1.0.2.gh.tar.gz 114126 BLAKE2B 03aa71de8fa1b48d40635a1ad2a3890e94b3b7209705e3c617cb50cf6d73da46278544b011fc33e923244051452a62b3c5ac477304fa9e947bc3eb9b5169b021 SHA512 e6a288c672692b2e004660cfcd9f8889e8740e3dcb2b61632e3e589fc41cc183006147f2809101f6f75aba0a4ab88644f698893f6991e9bdb7625be2c79ec393
+DIST blake3-py-1.0.4.gh.tar.gz 114159 BLAKE2B e424185f1aa1baf4c8dd3d3fe7e3bb4b3399169a1e97289ec88ace0c85c79e7006d3ef3757ee95f091b087429653980d5cbdebc35e0044a882256c4fc7b86670 SHA512 3c1d8113cb8cbc5eb28e43466ee9d003a27e4f561fadffcc85774c936e1aa0fd2a18a2b84fe3e5ed3e7855a69e7a4566fa4bf7be9d7eaefb385df7caeeeecec9
 DIST cc-1.2.2.crate 98719 BLAKE2B 7a7722721f98869bfe773ce90c6d756bb5ab76df05b516067528d7285c47cbc80d965aca97c7d7a118515035326c843b1721429e12afd6b15f187f0c59fe18c0 SHA512 5364d3822a566573d45e40a6076d3f9aef20c67f1a5687895f5a76be210a48cc44857ac778e2cce58d3a5dfb07255a3e6e541dd97be8492ae6f66fa18222492c
 DIST cc-1.2.7.crate 100283 BLAKE2B 98102a93e01ff0fc95a18ec4b2382a0e4b74000c33002da4553c2ea030d5f09b898b5c046bcf1868368b5fbf510d74c710916b98ead11a1bbe21c4f7bd1c5977 SHA512 f3c947912aaeb9d76fc5e3fa3c7ec1f87b19d9815170190b47e9925edfcca2963d56b75a140506656ef49a3a0ca22575304ab76e1b4c028730557b436baa3da4
 DIST cc-1.2.9.crate 101156 BLAKE2B 05f44c0c8161b75a9697c55e0d024f305cceb685823085d449f98612de71c58a913ceca5a472a89cce3ccf3ae58c21ecc0f5a3e14283facf92937da8f4a8c31b SHA512 a4368b1b2bb7f428139c0fe8ce5d0c17386d274f0f02de459c5d127052d39b089cf6e2920a258721196453cc89960292fde4d811e9f6b94c69a679b96713c756

diff --git a/dev-python/blake3/blake3-1.0.4.ebuild b/dev-python/blake3/blake3-1.0.4.ebuild
new file mode 100644
index 000000000000..e7420a53224a
--- /dev/null
+++ b/dev-python/blake3/blake3-1.0.4.ebuild
@@ -0,0 +1,127 @@
+# 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_{10..13} )
+
+CRATES="
+	arrayref@0.3.9
+	arrayvec@0.7.6
+	autocfg@1.4.0
+	blake3@1.5.5
+	cc@1.2.9
+	cfg-if@1.0.0
+	constant_time_eq@0.3.1
+	crossbeam-deque@0.8.6
+	crossbeam-epoch@0.9.18
+	crossbeam-utils@0.8.21
+	either@1.13.0
+	heck@0.5.0
+	hex@0.4.3
+	indoc@2.0.5
+	libc@0.2.169
+	memmap2@0.9.5
+	memoffset@0.9.1
+	once_cell@1.20.2
+	portable-atomic@1.10.0
+	proc-macro2@1.0.93
+	pyo3-build-config@0.23.4
+	pyo3-ffi@0.23.4
+	pyo3-macros-backend@0.23.4
+	pyo3-macros@0.23.4
+	pyo3@0.23.4
+	quote@1.0.38
+	rayon-core@1.12.1
+	rayon@1.10.0
+	shlex@1.3.0
+	syn@2.0.96
+	target-lexicon@0.12.16
+	unicode-ident@1.0.14
+	unindent@0.2.3
+"
+
+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"
+
+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"
+
+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
+}


             reply	other threads:[~2025-01-25  6:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-25  6:24 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-14  6:59 [gentoo-commits] repo/gentoo:master commit in: dev-python/blake3/ Michał Górny
2025-01-04  9:30 Michał Górny
2024-11-30  6:52 Michał Górny
2024-11-11 17:27 Sam James
2024-11-11 13:00 Sam James
2024-06-13 19:18 Michał Górny
2024-02-05  3:52 Michał Górny
2024-02-02 13:24 Michał Górny
2023-12-30 18:26 Michał Górny
2023-12-12 16:27 Michał Górny
2023-12-12 16:27 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1737786273.95a124b9b9ad5776c8a839408e680145cd7b6d86.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox