2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
48 lines
908 B
Nix
48 lines
908 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, six
|
|
, urllib3
|
|
, packaging
|
|
, setuptools
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "qbittorrent-api";
|
|
version = "2023.10.54";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xCHB/pPURc1+vje6IhBHZ6HogUsmYfBE9977Qtwoc2w=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|