1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, aiocoap
6, dtlssocket
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "pytradfri";
12 version = "7.2.0";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "home-assistant-libs";
18 repo = "pytradfri";
19 rev = version;
20 sha256 = "sha256-/1K2jBgDuOIUb4WUownoceprZbOwSkQIqeEt07HfZrY=";
21 };
22
23 propagatedBuildInputs = [
24 aiocoap
25 dtlssocket
26 ];
27
28 checkInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "pytradfri" ];
33
34 meta = with lib; {
35 description = "Python package to communicate with the IKEA Trådfri ZigBee Gateway";
36 homepage = "https://github.com/home-assistant-libs/pytradfri";
37 license = licenses.mit;
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}