1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6,3_7} )
9 DESCRIPTION="Python client for Docker"
10 HOMEPAGE="https://github.com/docker/docker-py"
11 SRC_URI="https://github.com/docker/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="amd64 ~arm64 ~x86"
17 RESTRICT="!test? ( test )"
20 >=dev-python/docker-pycreds-0.4.0[${PYTHON_USEDEP}]
21 !~dev-python/requests-2.18.0[${PYTHON_USEDEP}]
22 >=dev-python/requests-2.14.2[${PYTHON_USEDEP}]
23 >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
24 >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}]
25 $(python_gen_cond_dep '>=dev-python/backports-ssl-match-hostname-3.5[${PYTHON_USEDEP}]' 'python2_7' )
26 $(python_gen_cond_dep '>=dev-python/ipaddress-1.0.16[${PYTHON_USEDEP}]' 'python2_7' )
29 dev-python/setuptools[${PYTHON_USEDEP}]
32 >=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
33 >=dev-python/paramiko-2.4.2[${PYTHON_USEDEP}]
34 dev-python/pytest-runner[${PYTHON_USEDEP}]
35 >=dev-python/pytest-2.9.1[${PYTHON_USEDEP}]
38 dev-python/recommonmark[${PYTHON_USEDEP}]
39 >=dev-python/sphinx-1.4.6[${PYTHON_USEDEP}]
43 python_compile_all() {
45 sphinx-build docs html || die "docs failed to build"
51 py.test tests/unit/ || die "tests failed under ${EPYTHON}"