2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
urllib3,
|
|
|
|
packaging,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qbittorrent-api";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "2024.9.67";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-06-05 15:53:02 +00:00
|
|
|
pname = "qbittorrent_api";
|
|
|
|
inherit version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-+NfttxsUzNVg0YL6H0ULeDb/xobMvUeGwWY/egN9aWY=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
2024-01-25 14:12:00 +00:00
|
|
|
setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require internet access
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "qbittorrentapi" ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|