# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

# Autogenerated by pycargoebuild 0.13.3

EAPI=8

CRATES="
	adler@1.0.2
	aho-corasick@0.7.20
	anstream@0.3.2
	anstyle-parse@0.2.0
	anstyle-query@1.0.0
	anstyle-wincon@1.0.1
	anstyle@1.0.0
	anyhow@1.0.71
	async-compression@0.3.15
	autocfg@1.1.0
	base64@0.21.0
	bitflags@1.3.2
	bstr@1.2.0
	bumpalo@3.12.0
	byteorder@1.4.3
	bytes@1.4.0
	cc@1.0.79
	cfg-if@1.0.0
	clap@4.2.7
	clap_builder@4.2.7
	clap_derive@4.2.0
	clap_lex@0.4.1
	colorchoice@1.0.0
	core-foundation-sys@0.8.3
	core-foundation@0.9.3
	crc32fast@1.3.2
	crossbeam-utils@0.8.14
	either@1.8.1
	encoding_rs@0.8.32
	errno-dragonfly@0.1.2
	errno@0.3.1
	fastrand@1.9.0
	fixedbitset@0.4.2
	flate2@1.0.25
	fnv@1.0.7
	foreign-types-shared@0.1.1
	foreign-types@0.3.2
	form_urlencoded@1.1.0
	futures-channel@0.3.28
	futures-core@0.3.28
	futures-executor@0.3.28
	futures-io@0.3.28
	futures-macro@0.3.28
	futures-sink@0.3.28
	futures-task@0.3.28
	futures-util@0.3.28
	futures@0.3.28
	globset@0.4.10
	globwalk@0.8.1
	h2@0.3.15
	hashbrown@0.12.3
	heck@0.4.1
	hermit-abi@0.2.6
	hermit-abi@0.3.1
	http-body@0.4.5
	http@0.2.8
	httparse@1.8.0
	httpdate@1.0.2
	hyper-tls@0.5.0
	hyper@0.14.24
	idna@0.3.0
	ignore@0.4.20
	indexmap@1.9.2
	indoc@1.0.9
	instant@0.1.12
	io-lifetimes@1.0.5
	ipnet@2.7.1
	is-terminal@0.4.7
	itertools@0.10.5
	itoa@1.0.5
	js-sys@0.3.61
	lazy_static@1.4.0
	libc@0.2.139
	linux-raw-sys@0.3.6
	linya@0.3.0
	lock_api@0.4.9
	log@0.4.17
	memchr@2.5.0
	memoffset@0.8.0
	mime@0.3.16
	miniz_oxide@0.6.2
	mio@0.8.6
	multimap@0.8.3
	native-tls@0.2.11
	num_cpus@1.15.0
	once_cell@1.17.1
	openssl-macros@0.1.0
	openssl-probe@0.1.5
	openssl-sys@0.9.80
	openssl@0.10.45
	parking_lot@0.12.1
	parking_lot_core@0.9.7
	path-absolutize@3.0.14
	path-dedot@3.0.18
	percent-encoding@2.2.0
	petgraph@0.6.3
	pin-project-lite@0.2.9
	pin-utils@0.1.0
	pkg-config@0.3.26
	prettyplease@0.1.23
	proc-macro2@1.0.56
	prost-build@0.11.9
	prost-derive@0.11.9
	prost-types@0.11.9
	prost@0.11.9
	pyo3-build-config@0.18.3
	pyo3-ffi@0.18.3
	pyo3-macros-backend@0.18.3
	pyo3-macros@0.18.3
	pyo3@0.18.3
	quote@1.0.26
	redox_syscall@0.2.16
	regex-syntax@0.6.28
	regex@1.7.1
	remove_dir_all@0.5.3
	reqwest@0.11.17
	rustix@0.37.3
	ryu@1.0.12
	same-file@1.0.6
	schannel@0.1.21
	scopeguard@1.1.0
	security-framework-sys@2.8.0
	security-framework@2.8.2
	serde@1.0.160
	serde_derive@1.0.160
	serde_json@1.0.96
	serde_urlencoded@0.7.1
	slab@0.4.7
	smallvec@1.10.0
	smart-default@0.7.1
	socket2@0.4.9
	strsim@0.10.0
	syn@1.0.107
	syn@2.0.15
	target-lexicon@0.12.6
	tempfile@3.3.0
	terminal_size@0.1.17
	thread_local@1.1.7
	tinyvec@1.6.0
	tinyvec_macros@0.1.1
	tokio-macros@2.1.0
	tokio-native-tls@0.3.1
	tokio-util@0.7.7
	tokio@1.28.0
	tower-service@0.3.2
	tracing-core@0.1.30
	tracing@0.1.37
	try-lock@0.2.4
	unicode-bidi@0.3.10
	unicode-ident@1.0.6
	unicode-normalization@0.1.22
	unindent@0.1.11
	url@2.3.1
	utf8parse@0.2.1
	vcpkg@0.2.15
	walkdir@2.3.2
	want@0.3.0
	wasi@0.11.0+wasi-snapshot-preview1
	wasm-bindgen-backend@0.2.84
	wasm-bindgen-futures@0.4.34
	wasm-bindgen-macro-support@0.2.84
	wasm-bindgen-macro@0.2.84
	wasm-bindgen-shared@0.2.84
	wasm-bindgen@0.2.84
	web-sys@0.3.61
	which@4.4.0
	winapi-i686-pc-windows-gnu@0.4.0
	winapi-util@0.1.5
	winapi-x86_64-pc-windows-gnu@0.4.0
	winapi@0.3.9
	windows-sys@0.42.0
	windows-sys@0.45.0
	windows-sys@0.48.0
	windows-targets@0.42.1
	windows-targets@0.48.0
	windows_aarch64_gnullvm@0.42.1
	windows_aarch64_gnullvm@0.48.0
	windows_aarch64_msvc@0.42.1
	windows_aarch64_msvc@0.48.0
	windows_i686_gnu@0.42.1
	windows_i686_gnu@0.48.0
	windows_i686_msvc@0.42.1
	windows_i686_msvc@0.48.0
	windows_x86_64_gnu@0.42.1
	windows_x86_64_gnu@0.48.0
	windows_x86_64_gnullvm@0.42.1
	windows_x86_64_gnullvm@0.48.0
	windows_x86_64_msvc@0.42.1
	windows_x86_64_msvc@0.48.0
	winreg@0.10.1
	zip@0.6.4
"
PYTHON_COMPAT=( python3_{11..13} )

inherit cargo python-any-r1

DESCRIPTION="Replacement for depot_tools (gclient) and luci-go (cipd)"
HOMEPAGE="https://codeberg.org/selfisekai/teapot_tools"
SRC_URI="
	https://codeberg.org/selfisekai/teapot_tools/archive/v${PV}.tar.gz -> ${P}.tar.gz
	${CARGO_CRATE_URIS}
"
S="${WORKDIR}/teapot_tools"

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"

DEPEND="${PYTHON_DEPS}"
BDEPEND="dev-libs/protobuf"