dev-python/crc32c: Bump to 2.7.1_p0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-10-13 04:21:54 +02:00
parent 60322f40a8
commit c0f4501dfe
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 47 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST crc32c-2.7.1.post0.tar.gz 46574 BLAKE2B e4241f9ba5416323130b80510e5adff0f0adc3f29a3565ab62af32754d452eba90c934ead2468e0c3525fbbdb2e7742bf86130e9be86e9f08d70bc1232a8026f SHA512 d89a9b34db7b9cf9b8255105c3054b1aa4de7c391630720f4df226e4efcc6a860c3eb5b18a9e1baee8dc9422c7ffa0c2067c5700aff53d3072b47a1c3b33d864
DIST crc32c-2.7.1.tar.gz 45712 BLAKE2B 1aec82c981aaa4ff1e0858fb60df437c9c54cec5642cf5726c202ed1a682e9cf27ee2eeb6858ef3832fcbddbe9ffc244ce9bb1c8ffeeb4135a00858db3066d2a SHA512 2240339fa6b82ac16f5e4bf70d933a65dc2d32d4cbf62daaa1ba7d3dae0194de64a6e48c62a519dcdd261178b869abc0853634c45df14d23076f08dc2535225d

View File

@ -0,0 +1,46 @@
# 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 pypi
DESCRIPTION="CRC32c algorithm in hardware and software"
HOMEPAGE="
https://github.com/ICRAR/crc32c/
https://pypi.org/project/crc32c/
"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86"
# NB: these don't affect the build, they are only used for tests
IUSE="cpu_flags_arm_crc32 cpu_flags_x86_sse4_2"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_test() {
local -x CRC32C_SW_MODE
# force = run "software" code (i.e. unoptimized)
# none = run "hardware" code (i.e. SSE4.2 / ARMv8 CRC32)
for CRC32C_SW_MODE in none force; do
if [[ ${CRC32C_SW_MODE} == none ]]; then
if ! use cpu_flags_arm_crc32 && ! use cpu_flags_x86_sse4_2; then
continue
fi
# the test suite just skips all tests, so double-check
"${EPYTHON}" -c "import crc32c" ||
die "Importing crc32c failed (accelerated code path broken?)"
fi
einfo "Testing with CRC32C_SW_MODE=${CRC32C_SW_MODE}"
epytest
done
}