blob: f60c784d69611512358159ebee9aba2f277d8f1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYPI_VERIFY_REPO=https://github.com/pypi/pypi-attestations
PYTHON_COMPAT=( python3_{13..14} )
inherit distutils-r1 pypi
DESCRIPTION="Convert between Sigstore Bundles and PEP-740 Attestation objects"
HOMEPAGE="
https://github.com/pypi/pypi-attestations/
https://pypi.org/project/pypi-attestations/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~ppc ~ppc64 ~x86"
RDEPEND="
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
=dev-python/pyasn1-0.6*[${PYTHON_USEDEP}]
>=dev-python/pydantic-2.10.0[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/rfc3986[${PYTHON_USEDEP}]
=dev-python/sigstore-4*[${PYTHON_USEDEP}]
dev-python/sigstore-models[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]
test? (
dev-python/pretend[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_unpack() {
if use verify-provenance &&
has_version "<dev-python/pypi-attestations-0.0.28" &&
has_version ">=dev-python/sigstore-4"
then
# https://bugs.gentoo.org/969332
einfo "Skipping provenance check due to sigstore/pypi-attestations upgrade cycle"
default
return
fi
pypi_src_unpack
}
|