summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2025-05-23 17:29:44 +0200
committerMichał Górny <mgorny@gentoo.org>2025-05-23 18:04:02 +0200
commitf23e5d4a736a20e33fb8b01cdef11f2cc34b252b (patch)
tree4912e9967a3b7775f83fe69f3f49a7f9cd3d0efb /dev-python
parent623d013380bced88f3662e3c4ed301c633ec8c63 (diff)
downloadgentoo-f23e5d4a736a20e33fb8b01cdef11f2cc34b252b.tar.gz
gentoo-f23e5d4a736a20e33fb8b01cdef11f2cc34b252b.tar.bz2
gentoo-f23e5d4a736a20e33fb8b01cdef11f2cc34b252b.zip
dev-python/hcloud: Bump to 2.5.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/hcloud/Manifest1
-rw-r--r--dev-python/hcloud/hcloud-2.5.2.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/hcloud/Manifest b/dev-python/hcloud/Manifest
index e3246014ebdc..eb51d8a5a3ee 100644
--- a/dev-python/hcloud/Manifest
+++ b/dev-python/hcloud/Manifest
@@ -1 +1,2 @@
DIST hcloud-python-2.5.1.gh.tar.gz 121374 BLAKE2B 08f936960415252e2fb980d2f1175e94ae8d148fa9699e1fc2885204240a5588754064375a4e40be6fbbcf4b40a699052b1c6637ce6760fa5cfb6cb5bce0e342 SHA512 9f54bc0f0eca3aad3dabe0187d9ce2612c5d9b806ceb3c04311e6794a0f21538a6ac65d0ebc74b4702f3a3b179f686950148f6d21cfb0cf3596eea41efb69a64
+DIST hcloud-python-2.5.2.gh.tar.gz 121398 BLAKE2B 7872e13cbaff1f010cfd93f4512320644d062e117573a29ec0e995ffa704a08620e0a66321bf1082a9cf1772f2870a55aa317477cbac1a9911c049ed7d985684 SHA512 0a0b9abfc4e7127f3ffc4acd9932b1b5f11d432a54ea1b10c612e1eb450f9107afd37f49fc4332267e84d26d96349852b8953400f358b9f91fe55d7cedcf4f20
diff --git a/dev-python/hcloud/hcloud-2.5.2.ebuild b/dev-python/hcloud/hcloud-2.5.2.ebuild
new file mode 100644
index 000000000000..67a5b89183c0
--- /dev/null
+++ b/dev-python/hcloud/hcloud-2.5.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1
+
+MY_P=hcloud-python-${PV}
+DESCRIPTION="Official Hetzner Cloud python library"
+HOMEPAGE="
+ https://github.com/hetznercloud/hcloud-python/
+ https://pypi.org/project/hcloud/
+"
+# sdist is missing doc assets as of 1.19.0
+# https://github.com/hetznercloud/hcloud-python/pull/183
+SRC_URI="
+ https://github.com/hetznercloud/hcloud-python/archive/v${PV}.tar.gz
+ -> ${MY_P}.gh.tar.gz
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+RDEPEND="
+ >=dev-python/python-dateutil-2.7.5[${PYTHON_USEDEP}]
+ >=dev-python/requests-2.20[${PYTHON_USEDEP}]
+"
+
+distutils_enable_sphinx docs \
+ dev-python/myst-parser \
+ dev-python/sphinx-rtd-theme
+distutils_enable_tests pytest
+
+EPYTEST_IGNORE=(
+ # Integration tests need docker:
+ # https://github.com/hetznercloud/hcloud-python/blob/master/.travis.yml#L16
+ tests/integration
+)
+
+python_install_all() {
+ use examples && dodoc -r examples
+ distutils-r1_python_install_all
+}