1{
2 lib,
3 aiohttp,
4 async-upnp-client,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "devialet";
13 version = "1.5.7";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "fwestenberg";
20 repo = "devialet";
21 tag = "v${version}";
22 hash = "sha256-HmTiHa7DEmjARaYn7/OoGotnTirE7S7zXLK/TfHdEAg=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 aiohttp
29 async-upnp-client
30 ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "devialet" ];
36
37 meta = with lib; {
38 description = "Library to interact with the Devialet API";
39 homepage = "https://github.com/fwestenberg/devialet";
40 changelog = "https://github.com/fwestenberg/devialet/releases/tag/${src.tag}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}