Files
gentoo-zh/dev-python/archspec/archspec-0.2.6.ebuild
T
Zakk 10c0bf1feb treewide: drop python3_11 from PYTHON_COMPAT
python3_11 no longer resolves for packages depending on dev-python/requests,
which dropped it. Raise the PYTHON_COMPAT floor to python3_12 across every
package in the overlay that still allowed python3_11, keeping the python3_14
profile default (ceiling raised to python3_14 where it was lower).

python3_15 is only kept where it was already declared and verified on 3.15
(mwparserfromhell: builds and tests pass); it is not added elsewhere, since
python3.15 is not installed here and could not be build-tested.

Bug: https://github.com/gentoo-zh/overlay/issues/11037
2026-07-18 21:06:53 +10:00

34 lines
920 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="A library for detecting, labeling, and reasoning about microarchitectures"
HOMEPAGE="https://github.com/archspec/archspec"
CPUID="5b381ed2af05ad9ead46a136b43c2f7021bd44bb"
SRC_URI="
https://github.com/archspec/archspec/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/archspec/archspec-json/archive/v${PV}.tar.gz -> ${P}-json.tar.gz
https://github.com/archspec/cpuid/archive/${CPUID}.tar.gz -> ${P}-cpuid.tar.gz"
LICENSE="Apache-2.0 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_unpack() {
default
mv -u "${PN}-json-${PV}/cpu/" "${S}/${PN}/json" || die
rm -r "${S}/${PN}/vendor/cpuid" || die
mv -u "cpuid-${CPUID}" "${S}/${PN}/vendor/cpuid" || die
}