blob: ce805bb8a7f834cf19524a5fd57b9471ad40ad7e (
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
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
RUST_MIN_VER="1.88.0"
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( python3_{13..14} )
inherit cargo distutils-r1 pypi
DESCRIPTION="Provides OpenPGP facilities using Sequoia-PGP library"
HOMEPAGE="
https://github.com/wiktor-k/pysequoia
https://pypi.org/project/pysequoia/
"
if [[ ${PKGBUMPING} != ${PVR} ]]; then
SRC_URI+="
https://github.com/gentoo-crate-dist/${PN}/releases/download/v${PV}/${P}-crates.tar.xz
${CARGO_CRATE_URIS}
"
fi
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0-with-LLVM-exceptions BSD Boost-1.0 LGPL-2+ MIT
Unicode-3.0 ZLIB
"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/lib/python.*/site-packages/pysequoia/.*.so"
EPYTEST_PLUGINS=()
EPYTEST_XDIST=1
distutils_enable_tests pytest
src_test() {
cargo_src_test
distutils-r1_src_test
}
|