1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 setuptools,
8 setuptools-scm,
9
10 # dependencies
11 packaging,
12 requests,
13 urllib3,
14}:
15
16buildPythonPackage rec {
17 pname = "qbittorrent-api";
18 version = "2025.7.0";
19 pyproject = true;
20
21 src = fetchPypi {
22 pname = "qbittorrent_api";
23 inherit version;
24 hash = "sha256-9GLygXVZzKpMbNwSaUoxU++s1Q+jKFpCVAGrMKvA3nY=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 dependencies = [
33 packaging
34 requests
35 urllib3
36 ];
37
38 # Tests require internet access
39 doCheck = false;
40
41 pythonImportsCheck = [ "qbittorrentapi" ];
42
43 meta = {
44 description = "Python client implementation for qBittorrent's Web API";
45 homepage = "https://github.com/rmartin16/qbittorrent-api";
46 changelog = "https://github.com/rmartin16/qbittorrent-api/blob/v${version}/CHANGELOG.md";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ savyajha ];
49 };
50}