Files
guru/dev-python/steam/steam-2.0.0-r1.ebuild
Gonçalo Negrier Duarte 08b49ba74a dev-python/steam: add test useflag to BDEPEND
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
2025-08-14 18:07:35 +01:00

63 lines
1.5 KiB
Bash

# 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_{12..13} )
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
}