net-misc/gsutil - 5.37 (nest)

Search

Install

Install this version:

emerge -a =net-misc/gsutil-5.37

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

autounmask =net-misc/gsutil-5.37

Or alternatively:

emerge --autounmask-write -a =net-misc/gsutil-5.37

Package Information

Description:
A command line tool for interacting with cloud storage services
Homepage:
https://github.com/GoogleCloudPlatform/gsutil
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
5.37 8 ~amd64 ~arm64 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=setuptools
PYTHON_COMPAT=( python3_{12..15} )

inherit distutils-r1 pypi

DESCRIPTION="A command line tool for interacting with cloud storage services"
HOMEPAGE="https://github.com/GoogleCloudPlatform/gsutil"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="test"
PROPERTIES="test_network"

RDEPEND="dev-python/aiohttp[${PYTHON_USEDEP}]
	dev-python/argcomplete[${PYTHON_USEDEP}]
	dev-python/boto[${PYTHON_USEDEP}]
	dev-python/crcmod[${PYTHON_USEDEP}]
	dev-python/fasteners[${PYTHON_USEDEP}]
	dev-python/gcs-oauth2-boto-plugin[${PYTHON_USEDEP}]
	dev-python/google-apitools[${PYTHON_USEDEP}]
	dev-python/google-auth[${PYTHON_USEDEP}]
	dev-python/google-auth-httplib2[${PYTHON_USEDEP}]
	dev-python/google-reauth[${PYTHON_USEDEP}]
	dev-python/httplib2[${PYTHON_USEDEP}]
	dev-python/oauth2client[${PYTHON_USEDEP}]
	dev-python/pyopenssl[${PYTHON_USEDEP}]
	dev-python/retry-decorator[${PYTHON_USEDEP}]
	dev-python/six[${PYTHON_USEDEP}]"

PATCHES=( "${FILESDIR}/${PN}"-5.37-gslib.patch
	"${FILESDIR}/${PN}"-5.37-gsutil.patch
	"${FILESDIR}/${PN}"-5.37-tests.patch )

EPYTEST_PLUGINS=()
distutils_enable_tests pytest

src_prepare() {
	default

	# preserve boto's mock S3 service used by gsutil tests
	cp gslib/vendored/boto/tests/integration/s3/mock_storage_service.py \
		gslib/tests/ || die

	# remove bundled boto and oauth2client in favor of system packages
	rm -r gslib/vendored || die

	# remove obsolete monotonic dependency
	sed -i '/monotonic/d' setup.py || die "sed failed for setup.py"
}

python_test() {
	epytest -o log_cli=true -o log_cli_level=INFO gslib/tests
}

Inherited Eclasses

Dependencies

RDEPEND

dev-python/aiohttp[]
	dev-python/argcomplete[]
	dev-python/boto[]
	dev-python/crcmod[]
	dev-python/fasteners[]
	dev-python/gcs-oauth2-boto-plugin[]
	dev-python/google-apitools[]
	dev-python/google-auth[]
	dev-python/google-auth-httplib2[]
	dev-python/google-reauth[]
	dev-python/httplib2[]
	dev-python/oauth2client[]
	dev-python/pyopenssl[]
	dev-python/retry-decorator[]
	dev-python/six[]