1{ lib
2, aiohttp
3, async-timeout
4, buildPythonPackage
5, fetchFromGitHub
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "webthing-ws";
12 version = "0.2.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchFromGitHub {
18 owner = "home-assistant-ecosystem";
19 repo = pname;
20 rev = "refs/tags/${version}";
21 hash = "sha256-j7nc4yJczDs28RVFDHeQ2ZIG9mIW2m25AAeErVKi4E4=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 async-timeout
27 ];
28
29 # Module has no tests
30 doCheck = false;
31
32 pythonImportsCheck = [
33 "webthing_ws"
34 ];
35
36 meta = with lib; {
37 description = "WebThing WebSocket consumer and API client";
38 homepage = "https://github.com/home-assistant-ecosystem/webthing-ws";
39 changelog = "https://github.com/home-assistant-ecosystem/webthing-ws/releases/tag/${version}";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}