Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sonos-websocket / default.nix
blob594469400cae49540ab017a4dba44b174e6565a3
1 { lib
2 , aiohttp
3 , async-timeout
4 , buildPythonPackage
5 , fetchFromGitHub
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "sonos-websocket";
12   version = "0.1.2";
13   format = "pyproject";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "jjlawren";
19     repo = "sonos-websocket";
20     rev = "refs/tags/${version}";
21     hash = "sha256-QUX724Q8HtOiWuCfKouy7be0gTn6Vo3QHnw3MXJcMZo=";
22   };
24   nativeBuildInputs = [
25     setuptools
26   ];
28   propagatedBuildInputs = [
29     aiohttp
30     async-timeout
31   ];
33   # Module has no tests
34   doCheck = false;
36   pythonImportsCheck = [
37     "sonos_websocket"
38   ];
40   meta = with lib; {
41     description = "Library to communicate with Sonos devices over websockets";
42     homepage = "https://github.com/jjlawren/sonos-websocket";
43     changelog = "https://github.com/jjlawren/sonos-websocket/releases/tag/${version}";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };