2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
2021-08-22 07:53:02 +00:00
|
|
|
, stdenv
|
2021-04-05 15:23:46 +00:00
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, defusedxml
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-didl-lite
|
|
|
|
, pythonOlder
|
|
|
|
, voluptuous
|
|
|
|
}:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "async-upnp-client";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "0.32.3";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StevenLooman";
|
|
|
|
repo = "async_upnp_client";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-1/RW84ammc6mu90izMtL7Cv11krc4WhdqCSq9ncFibI=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
defusedxml
|
|
|
|
python-didl-lite
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
pytestCheckHook
|
2020-08-20 17:08:02 +00:00
|
|
|
pytest-asyncio
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
# socket.gaierror: [Errno -2] Name or service not known
|
|
|
|
"test_async_get_local_ip"
|
2021-09-18 10:52:07 +00:00
|
|
|
"test_get_local_ip"
|
2021-06-28 23:13:55 +00:00
|
|
|
# OSError: [Errno 101] Network is unreachable
|
|
|
|
"test_auto_resubscribe_fail"
|
2021-09-18 10:52:07 +00:00
|
|
|
"test_init"
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_on_notify_dlna_event"
|
|
|
|
"test_on_notify_upnp_event"
|
2021-09-18 10:52:07 +00:00
|
|
|
"test_server_init"
|
|
|
|
"test_server_start"
|
|
|
|
"test_start_server"
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_subscribe"
|
2021-09-18 10:52:07 +00:00
|
|
|
"test_subscribe_auto_resubscribe"
|
|
|
|
"test_subscribe_fail"
|
|
|
|
"test_subscribe_manual_resubscribe"
|
2021-06-28 23:13:55 +00:00
|
|
|
"test_subscribe_renew"
|
2021-09-18 10:52:07 +00:00
|
|
|
"test_unsubscribe"
|
2021-08-22 07:53:02 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"test_deferred_callback_url"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tries to bind to multicast socket and fails to find proper interface
|
|
|
|
"tests/test_ssdp_listener.py"
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"async_upnp_client"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
meta = with lib; {
|
2021-04-05 15:23:46 +00:00
|
|
|
description = "Asyncio UPnP Client library for Python";
|
2020-08-20 17:08:02 +00:00
|
|
|
homepage = "https://github.com/StevenLooman/async_upnp_client";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/StevenLooman/async_upnp_client/blob/${version}/CHANGES.rst";
|
2020-08-20 17:08:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|