1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-aiohttp
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pydeconz";
13 version = "85";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "Kane610";
18 repo = "deconz";
19 rev = "v${version}";
20 sha256 = "sha256-6GTMG3BfHcfLMoyabFbhsJFVDHmEICuzf32603+jyZ4=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 ];
26
27 checkInputs = [
28 aioresponses
29 pytest-aiohttp
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "pydeconz" ];
34
35 meta = with lib; {
36 description = "Python library wrapping the Deconz REST API";
37 homepage = "https://github.com/Kane610/deconz";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}