blob: 398d964086af841fa1320d16e9a69b277c938bb1 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
DESCRIPTION="Pure-Python gRPC implementation for asyncio"
HOMEPAGE="https://github.com/vmagamedov/grpclib"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/vmagamedov/grpclib"
else
MY_PV="${PV/_rc/rc}"
S="${WORKDIR}/${PN}-${MY_PV}"
SRC_URI="https://github.com/vmagamedov/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
PATCHES=(
"${FILESDIR}/${PN}-add_css_file.patch"
)
LICENSE="BSD"
SLOT="0"
RDEPEND="
>=dev-python/h2-4.1.0[${PYTHON_USEDEP}]
>=dev-python/hpack-4.0.0[${PYTHON_USEDEP}]
>=dev-python/hyperframe-6.0.1[${PYTHON_USEDEP}]
>=dev-python/multidict-6.0.2[${PYTHON_USEDEP}]
>=dev-python/grpcio-tools-1.43.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/async-timeout[${PYTHON_USEDEP}]
dev-python/googleapis-common-protos[${PYTHON_USEDEP}]
dev-python/Faker[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
distutils_enable_sphinx docs \
'dev-python/sphinx-rtd-theme'
|