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

inherit distutils-r1 pypi

DESCRIPTION="Python client for the qBittorrent Web API"
HOMEPAGE="
	https://github.com/rmartin16/qbittorrent-api/
	https://pypi.org/project/qbittorrent-api/
"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

# Tests need a running qBittorrent instance
RESTRICT="test"

RDEPEND="
	dev-python/packaging[${PYTHON_USEDEP}]
	>=dev-python/requests-2.16.0[${PYTHON_USEDEP}]
	>=dev-python/urllib3-1.24.2[${PYTHON_USEDEP}]
"
BDEPEND="
	>=dev-python/setuptools-scm-8[${PYTHON_USEDEP}]
"