summaryrefslogtreecommitdiff
path: root/dev-python/steam/steam-2.0.0-r1.ebuild
blob: 851f29ddfb001befbf37eaa11644a97d4b7d0f82 (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
52
53
54
55
56
57
58
59
60
61
62
# 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_{9,10,11,12,13,14} )

inherit distutils-r1

DESCRIPTION="Python package for interacting with Steam"
HOMEPAGE="
	https://github.com/solsticegamestudios/steam/
	https://pypi.org/project/steam/
"
SRC_URI="
	https://github.com/solsticegamestudios/steam/archive/refs/tags/v${PV}-alpha1.tar.gz
		-> ${P}.gh.tar.gz
"
S="${WORKDIR}/${P}-alpha1"

PATCHES=(
	"${FILESDIR}/${P}-path-pycryptodome-and-gevent.patch"
)

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RDEPEND="
	>=dev-python/cachetools-3.0.0[${PYTHON_USEDEP}]
	>=dev-python/pycryptodome-3.7.0[${PYTHON_USEDEP}]
	>=dev-python/requests-2.9.1[${PYTHON_USEDEP}]
	>=dev-python/six-1.10.0[${PYTHON_USEDEP}]
	>=dev-python/vdf-4.0[${PYTHON_USEDEP}]

	dev-python/certifi[${PYTHON_USEDEP}]
	dev-python/protobuf[${PYTHON_USEDEP}]
	dev-python/wsproto[${PYTHON_USEDEP}]
"

BDEPEND="
	test? (
		dev-python/vcrpy[${PYTHON_USEDEP}]
		dev-python/mock[${PYTHON_USEDEP}]
	)
"

distutils_enable_tests pytest

pkg_postinst() {
	if [[ ! ${REPLACING_VERSIONS} ]]; then
		ewarn "If you intend to use this library for anything else than"
		ewarn "ProtonUp-Qt you most likely need additional ebuilds for"
		ewarn "gevent and gevent-eventemitter. These are currently not"
		ewarn "part of the GURU repository."
		ewarn
		ewarn "Project references:"
		ewarn " - http://www.gevent.org/"
		ewarn " - https://github.com/rossengeorgiev/gevent-eventemitter"
	fi
}