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