472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
46 lines
936 B
Nix
46 lines
936 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests,
|
|
urllib3,
|
|
packaging,
|
|
setuptools,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qbittorrent-api";
|
|
version = "2024.9.67";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "qbittorrent_api";
|
|
inherit version;
|
|
hash = "sha256-+NfttxsUzNVg0YL6H0ULeDb/xobMvUeGwWY/egN9aWY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
urllib3
|
|
packaging
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
# Tests require internet access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "qbittorrentapi" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python client implementation for qBittorrent's Web API";
|
|
homepage = "https://github.com/rmartin16/qbittorrent-api";
|
|
changelog = "https://github.com/rmartin16/qbittorrent-api/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ savyajha ];
|
|
};
|
|
}
|