python3Packages.aiobtclientrpc: init at 5.0.1

Changed files
+77
pkgs
development
python-modules
aiobtclientrpc
top-level
+75
pkgs/development/python-modules/aiobtclientrpc/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitea,
+
async-timeout,
+
httpx,
+
httpx-socks,
+
proxy-py,
+
pytest-asyncio,
+
pytest-mock,
+
pytestCheckHook,
+
python-socks,
+
rencode,
+
setuptools,
+
}:
+
+
buildPythonPackage rec {
+
pname = "aiobtclientrpc";
+
version = "5.0.1";
+
pyproject = true;
+
+
src = fetchFromGitea {
+
domain = "codeberg.org";
+
owner = "plotski";
+
repo = "aiobtclientrpc";
+
tag = "v${version}";
+
hash = "sha256-2nBrIMlYUI4PwirkiSJSkw5zw2Kc/KoVRyIIYYx4iYs=";
+
};
+
+
pythonRelaxDeps = [
+
"async-timeout"
+
];
+
+
build-system = [
+
setuptools
+
];
+
+
dependencies = [
+
async-timeout
+
httpx
+
httpx-socks
+
python-socks
+
rencode
+
] ++ python-socks.optional-dependencies.asyncio;
+
+
nativeCheckInputs = [
+
proxy-py
+
pytest-asyncio
+
pytest-mock
+
pytestCheckHook
+
];
+
+
disabledTests = [
+
# Missing lambda parameter
+
"test_add_event_handler_with_autoremove"
+
# Try to use `htpasswd` and `nginx` with hard-coded paths
+
"test_authentication_error[rtorrent_http]"
+
"test_api_as_context_manager[rtorrent_http]"
+
"test_add_and_remove_torrents[rtorrent_http-paused]"
+
"test_add_and_remove_torrents[rtorrent_http-started]"
+
"test_proxy[rtorrent_http-http_proxy]"
+
"test_timeout[rtorrent_http]"
+
"test_event_subscriptions_survive_reconnecting[rtorrent_http]"
+
"test_waiting_for_event[rtorrent_http]"
+
];
+
+
pythonImportsCheck = [ "aiobtclientrpc" ];
+
+
meta = {
+
description = "Asynchronous low-level communication with BitTorrent clients";
+
homepage = "https://aiobtclientrpc.readthedocs.io";
+
license = lib.licenses.gpl3Plus;
+
maintainers = with lib.maintainers; [ ambroisie ];
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
aiobroadlink = callPackage ../development/python-modules/aiobroadlink { };
+
aiobtclientrpc = callPackage ../development/python-modules/aiobtclientrpc { };
+
aiocache = callPackage ../development/python-modules/aiocache { };
aiocoap = callPackage ../development/python-modules/aiocoap { };