depot/third_party/nixpkgs/pkgs/development/python-modules/async-upnp-client/default.nix
Default email 21cecf6002 Project import generated by Copybara.
GitOrigin-RevId: dd14e5d78e90a2ccd6007e569820de9b4861a6c2
2021-07-24 08:14:16 -04:00

65 lines
1.4 KiB
Nix

{ lib
, aiohttp
, async-timeout
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, python-didl-lite
, pythonOlder
, voluptuous
}:
buildPythonPackage rec {
pname = "async-upnp-client";
version = "0.19.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "StevenLooman";
repo = "async_upnp_client";
rev = version;
sha256 = "sha256-qxEn9UrQuwRaP7sZlu3854gDI7Gqku055DF8KvsU6p4=";
};
propagatedBuildInputs = [
aiohttp
async-timeout
defusedxml
python-didl-lite
voluptuous
];
checkInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = [
# socket.gaierror: [Errno -2] Name or service not known
"test_get_local_ip"
"test_async_get_local_ip"
# OSError: [Errno 101] Network is unreachable
"test_subscribe_fail"
"test_subscribe_auto_resubscribe"
"test_subscribe_manual_resubscribe"
"test_auto_resubscribe_fail"
"test_on_notify_dlna_event"
"test_on_notify_upnp_event"
"test_unsubscribe"
"test_subscribe"
"test_subscribe_renew"
"test_start_server"
"test_init"
];
pythonImportsCheck = [ "async_upnp_client" ];
meta = with lib; {
description = "Asyncio UPnP Client library for Python";
homepage = "https://github.com/StevenLooman/async_upnp_client";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}