Files
gentoo/dev-python/pysequoia/pysequoia-0.1.34.ebuild
2026-08-10 00:38:16 +01:00

46 lines
907 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
RUST_MIN_VER="1.87.0"
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( python3_{12..15} )
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"
distutils_enable_tests import-check
src_test() {
cargo_src_test
distutils-r1_src_test
}