depot/third_party/nixpkgs/pkgs/development/python-modules/qbittorrent-api/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

48 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, six
, urllib3
, packaging
, setuptools
, wheel
}:
buildPythonPackage rec {
pname = "qbittorrent-api";
version = "2023.9.53";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-/q0bL1WxIn6giOp9kLUCLZRpS/2d2Rdr61rRwZXQRP8=";
};
propagatedBuildInputs = [
requests
six
urllib3
packaging
];
nativeBuildInputs = [
setuptools
wheel
];
# 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 ];
};
}