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