-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcryptography-46.0.7.ebuild
More file actions
49 lines (44 loc) · 1.4 KB
/
cryptography-46.0.7.ebuild
File metadata and controls
49 lines (44 loc) · 1.4 KB
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
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit
EAPI=7
PYTHON_COMPAT=( python3+ )
DISTUTILS_USE_PEP517="maturin"
ECARGO_BUNDLE_POSTFIX="mark-rust-bundle"
CARGO_OPTIONAL="yes"
inherit cargo distutils-r1
DESCRIPTION="cryptography is a package which provides cryptographic recipes and primitives to Python developers."
SRC_URI="
https://files.pythonhosted.org/packages/47/93/ac8f3d5ff04d54bc814e961a43ae5b0b146154c89c61b47bb07557679b18/cryptography-46.0.7.tar.gz -> cryptography-46.0.7.tar.gz
mirror://macaroni/cryptography-46.0.7-mark-rust-bundle.tar.xz -> cryptography-46.0.7-mark-rust-bundle.tar.xz"
SLOT="0"
KEYWORDS="*"
IUSE="idna"
BDEPEND="
>=dev-python/setuptools-rust-0.12.1[${PYTHON_USEDEP}]
"
RDEPEND="
dev-python/ipaddress[${PYTHON_USEDEP}]
idna? ( >=dev-python/idna-2.1[${PYTHON_USEDEP}] )
>=dev-python/cffi-1.11.3[${PYTHON_USEDEP}]
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
"
DEPEND="virtual/rust
>=dev-python/cffi-1.11.3[${PYTHON_USEDEP}]
>=dev-python/six-1.4.1[${PYTHON_USEDEP}]
"
S="${WORKDIR}/cryptography-46.0.7"
src_unpack() {
if [[ ${CRYPTOGRAPHY_DONT_BUILD_RUST} ]] ; then
default
else
cargo_src_unpack
fi
}
python_install() {
distutils-r1_python_install
if [ -e "${D}$(python_get_sitedir)/tests" ] ; then
einfo "Removing $(python_get_sitedir)/tests directory..."
rm -r "${D}$(python_get_sitedir)"/tests || die
fi
}
# vim: filetype=ebuild