summaryrefslogtreecommitdiff
path: root/dev-python/ast-serialize/ast-serialize-0.3.0.ebuild
blob: d3a5099716f1189f0ef16049b335792356e90a18 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=maturin
PYPI_VERIFY_REPO=https://github.com/mypyc/ast_serialize
PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 )

RUST_MIN_VER="1.91"
CRATES="
	aho-corasick@1.1.4
	anyhow@1.0.100
	attribute-derive-macro@0.10.5
	attribute-derive@0.10.5
	bitflags@2.10.0
	block-buffer@0.10.4
	bstr@1.12.1
	castaway@0.2.4
	cfg-if@1.0.4
	collection_literals@1.0.3
	compact_str@0.9.0
	cpufeatures@0.2.17
	crypto-common@0.1.7
	derive-where@1.6.0
	digest@0.10.7
	either@1.15.0
	equivalent@1.0.2
	generic-array@0.14.7
	get-size-derive2@0.7.4
	get-size2@0.7.4
	getopts@0.2.24
	getrandom@0.2.17
	hashbrown@0.16.1
	heck@0.5.0
	indexmap@2.13.0
	indoc@2.0.7
	interpolator@0.5.0
	is-macro@0.3.7
	itertools@0.14.0
	itoa@1.0.17
	libc@0.2.180
	log@0.4.29
	manyhow-macros@0.11.4
	manyhow@0.11.4
	memchr@2.7.6
	once_cell@1.21.3
	ordermap@1.1.0
	phf@0.11.3
	phf_codegen@0.11.3
	phf_generator@0.11.3
	phf_shared@0.11.3
	portable-atomic@1.13.0
	ppv-lite86@0.2.21
	proc-macro-utils@0.10.0
	proc-macro2@1.0.106
	pyo3-build-config@0.28.2
	pyo3-ffi@0.28.2
	pyo3-macros-backend@0.28.2
	pyo3-macros@0.28.2
	pyo3@0.28.2
	quote-use-macros@0.8.4
	quote-use@0.8.4
	quote@1.0.44
	rand@0.8.5
	rand_chacha@0.3.1
	rand_core@0.6.4
	regex-automata@0.4.13
	rustc-hash@2.1.1
	rustversion@1.0.22
	ryu@1.0.22
	serde@1.0.228
	serde_core@1.0.228
	serde_derive@1.0.228
	sha1@0.10.6
	siphasher@1.0.1
	smallvec@1.15.1
	static_assertions@1.1.0
	syn@2.0.114
	target-lexicon@0.13.5
	thiserror-impl@2.0.18
	thiserror@2.0.18
	tinyvec@1.10.0
	tinyvec_macros@0.1.1
	typenum@1.19.0
	unicode-ident@1.0.22
	unicode-normalization@0.1.25
	unicode-width@0.2.2
	unicode_names2@1.3.0
	unicode_names2_generator@1.3.0
	version_check@0.9.5
	wasi@0.11.1+wasi-snapshot-preview1
	zerocopy-derive@0.8.33
	zerocopy@0.8.33
"

declare -A GIT_CRATES=(
	[ruff_python_ast]='https://github.com/astral-sh/ruff;5e4a3d9c3b381df20f6a52caef0f56ed0ebc74be;ruff-%commit%/crates/ruff_python_ast'
	[ruff_python_parser]='https://github.com/astral-sh/ruff;5e4a3d9c3b381df20f6a52caef0f56ed0ebc74be;ruff-%commit%/crates/ruff_python_parser'
	[ruff_python_trivia]='https://github.com/astral-sh/ruff;5e4a3d9c3b381df20f6a52caef0f56ed0ebc74be;ruff-%commit%/crates/ruff_python_trivia'
	[ruff_source_file]='https://github.com/astral-sh/ruff;5e4a3d9c3b381df20f6a52caef0f56ed0ebc74be;ruff-%commit%/crates/ruff_source_file'
	[ruff_text_size]='https://github.com/astral-sh/ruff;5e4a3d9c3b381df20f6a52caef0f56ed0ebc74be;ruff-%commit%/crates/ruff_text_size'
)

inherit cargo distutils-r1 pypi

DESCRIPTION="Python bindings for mypy AST serialization"
HOMEPAGE="
	https://github.com/mypyc/ast_serialize/
	https://pypi.org/project/ast-serialize/
"
SRC_URI+="
	${CARGO_CRATE_URIS}
"

LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
	Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0
	Unicode-DFS-2016
"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~s390 ~sparc ~x86"

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/ast_serialize/ast_serialize.*"

src_unpack() {
	pypi_src_unpack
	cargo_src_unpack
}