1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2, click, click-datetime, deprecation 3, pytest, voluptuous }: 4 5buildPythonPackage rec { 6 pname = "pyHS100"; 7 version = "0.3.5.2"; 8 disabled = pythonOlder "3.5"; 9 10 src = fetchFromGitHub { 11 owner = "GadgetReactor"; 12 repo = pname; 13 rev = version; 14 sha256 = "0z98hzvkp6jmllyd4x4y0f5n6nnxrizw6g5l2clxdn93mifjavp0"; 15 }; 16 17 propagatedBuildInputs = [ 18 click 19 click-datetime 20 deprecation 21 ]; 22 23 checkInputs = [ 24 pytest 25 voluptuous 26 ]; 27 28 checkPhase = '' 29 py.test pyHS100 30 ''; 31 32 meta = with lib; { 33 description = "Python Library to control TPLink Switch (HS100 / HS110)"; 34 homepage = "https://github.com/GadgetReactor/pyHS100"; 35 license = licenses.gpl3; 36 maintainers = with maintainers; [ hexa ]; 37 }; 38}