1{
2 lib,
3 aiohttp,
4 async-timeout,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "sonos-websocket";
13 version = "0.1.3";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "jjlawren";
20 repo = "sonos-websocket";
21 rev = "refs/tags/${version}";
22 hash = "sha256-1sgYLwIW7VWnHJGsfIQ95AGZ5j/DPMKQr5n7F+/MsuY=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 aiohttp
29 async-timeout
30 ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "sonos_websocket" ];
36
37 meta = with lib; {
38 description = "Library to communicate with Sonos devices over websockets";
39 homepage = "https://github.com/jjlawren/sonos-websocket";
40 changelog = "https://github.com/jjlawren/sonos-websocket/releases/tag/${version}";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ fab ];
43 };
44}