blob: 3338667fde9a4b7ca772ad4159c637a2241b4078 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{12..13} )
inherit distutils-r1 pypi
DESCRIPTION="Bluetooth Low Energy platform Agnostic Klient (BLEAK) for Python"
HOMEPAGE="https://bleak.readthedocs.io"
LICENSE="MIT"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
# Dependencies unsurprisingly derive from "pyproject.toml".
BDEPEND="test? (
>=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
>=dev-python/pytest-asyncio-0.19.0[${PYTHON_USEDEP}]
>=dev-python/pytest-cov-3.0.0[${PYTHON_USEDEP}]
)"
RDEPEND="
>=dev-python/dbus-fast-1.22.0[${PYTHON_USEDEP}]
$(python_gen_cond_dep '
>=dev-python/async-timeout-3.0.0[${PYTHON_USEDEP}]
' python3_{8..10})
"
DEPEND="${RDEPEND}"
distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
#FIXME: Tests currently fail to run and I can't be bothered to resolve. *sigh*
# distutils_enable_tests pytest
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hbldh/bleak.git"
EGIT_BRANCH="develop"
else
KEYWORDS="~amd64"
fi
python_install_all() {
[[ -d examples ]] && dodoc -r examples
distutils-r1_python_install_all
}
|