blob: ba5f8de14fc8aa797d57c7d03b049608e99f5906 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYTHON_COMPAT=( python3_{10..13} )
CRATES="
asn1@0.19.0
asn1_derive@0.19.0
autocfg@1.3.0
bitflags@2.6.0
block-buffer@0.10.4
byteorder@1.5.0
cc@1.1.28
cfg-if@1.0.0
cpufeatures@0.2.14
crypto-common@0.1.6
digest@0.10.7
foreign-types-shared@0.1.1
foreign-types@0.3.2
generic-array@0.14.7
getrandom@0.2.15
heck@0.5.0
hex@0.4.3
indoc@2.0.5
itoa@1.0.11
libc@0.2.158
memoffset@0.9.1
once_cell@1.19.0
openssl-macros@0.1.1
openssl-src@300.4.0+3.4.0
openssl-sys@0.9.104
openssl@0.10.68
pkg-config@0.3.31
portable-atomic@1.7.0
ppv-lite86@0.2.20
proc-macro2@1.0.86
proc-macro2@1.0.89
pyo3-build-config@0.23.1
pyo3-ffi@0.23.1
pyo3-macros-backend@0.23.1
pyo3-macros@0.23.1
pyo3@0.23.1
quote@1.0.37
rand@0.8.5
rand_chacha@0.3.1
rand_core@0.6.4
self_cell@1.0.4
sha2@0.10.8
shlex@1.3.0
syn@2.0.77
syn@2.0.87
target-lexicon@0.12.16
typenum@1.17.0
unicode-ident@1.0.13
unindent@0.2.3
vcpkg@0.2.15
version_check@0.9.5
wasi@0.11.0+wasi-snapshot-preview1
zerocopy-derive@0.7.35
zerocopy@0.7.35
"
declare -A GIT_CRATES=(
[cryptography-x509]='https://github.com/pyca/cryptography;4c72f368234e60a06e4a0beaf87be55940dd49c1;cryptography-%commit%/src/rust/cryptography-x509'
)
inherit cargo distutils-r1
DESCRIPTION="An Opinionated Python RFC3161 Client"
HOMEPAGE="
https://github.com/trailofbits/rfc3161-client/
https://pypi.org/project/rfc3161-client/
"
# no tests in sdist, as of 0.0.4
SRC_URI="
https://github.com/trailofbits/rfc3161-client/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
${CARGO_CRATE_URIS}
"
LICENSE="Apache-2.0"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD MIT Unicode-DFS-2016
"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
=dev-python/cryptography-43*[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pretend[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
epytest
cargo_src_test --manifest-path rust/Cargo.toml
cargo_src_test --manifest-path rust/tsp-asn1/Cargo.toml
}
|