depot/third_party/nixpkgs/pkgs/development/python-modules/qbittorrent-api/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
936 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
requests,
urllib3,
packaging,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "qbittorrent-api";
version = "2024.5.63";
pyproject = true;
src = fetchPypi {
pname = "qbittorrent_api";
inherit version;
hash = "sha256-zTAS8EL7lOnVIcQGttxSJgDv0YFNSy08kAxoEOn8viw=";
};
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 ];
};
}