dev-python/docker - 7.2.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-python/docker-7.2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-python/docker-7.2.0

Or alternatively:

emerge --autounmask-write -a =dev-python/docker-7.2.0

Package Information

Description:
Python client for Docker
Homepage:
https://github.com/docker/docker-py/ https://pypi.org/project/docker/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
7.2.0 8 ~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1

MY_P=docker-py-${PV}
DESCRIPTION="Python client for Docker"
HOMEPAGE="
	https://github.com/docker/docker-py/
	https://pypi.org/project/docker/
"
SRC_URI="
	https://github.com/docker/docker-py/archive/${PV}.tar.gz
		-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"

RDEPEND="
	>=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
	>=dev-python/urllib3-1.26.0[${PYTHON_USEDEP}]
"
BDEPEND="
	dev-python/hatch-vcs[${PYTHON_USEDEP}]
	test? (
		>=dev-python/paramiko-2.4.3[${PYTHON_USEDEP}]
		>=dev-python/websocket-client-1.3.0[${PYTHON_USEDEP}]
	)
"

distutils_enable_sphinx docs \
	'dev-python/myst-parser'
EPYTEST_PLUGINS=()
distutils_enable_tests pytest

src_prepare() {
	# localhost has a better chance of being in /etc/hosts
	sed -e 's:socket[.]gethostname():"localhost":' \
		-i tests/unit/api_test.py || die

	distutils-r1_src_prepare

	export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
}

python_test() {
	local -x TZ=UTC
	epytest tests/unit
}

Inherited Eclasses

Dependencies

RDEPEND

	>=dev-python/requests-2.26.0[]
	>=dev-python/urllib3-1.26.0[]

BDEPEND

	dev-python/hatch-vcs[]
	test? (
		>=dev-python/paramiko-2.4.3[]
		>=dev-python/websocket-client-1.3.0[]
	)

Manifest for 7.2.0

Type File Size Source URLs
DIST docker-py-7.2.0.gh.tar.gz 255679 bytes https://github.com/docker/docker-py/archive/7.2.0.tar.gz