depot/third_party/nixpkgs/pkgs/development/python-modules/qbittorrent-api/default.nix
Default email 23b612e36f Project import generated by Copybara.
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
2024-01-25 23:12:00 +09:00

46 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, urllib3
, packaging
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "qbittorrent-api";
version = "2024.1.58";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-6JyU9mr0xfRLB7AJOcnPc+PpF0EWi/R/Wy3lCKanAmA=";
};
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 ];
};
}