Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pyhs100 / default.nix
blob429f3a8ebb9f39eb06470e53c12134dc786a8655
1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2 , click, click-datetime, deprecation
3 , pytest, voluptuous }:
5 buildPythonPackage rec {
6   pname = "pyHS100";
7   version = "0.3.5.2";
8   disabled = pythonOlder "3.5";
10   src = fetchFromGitHub {
11     owner = "GadgetReactor";
12     repo = pname;
13     rev = version;
14     sha256 = "0z98hzvkp6jmllyd4x4y0f5n6nnxrizw6g5l2clxdn93mifjavp0";
15   };
17   propagatedBuildInputs = [
18     click
19     click-datetime
20     deprecation
21   ];
23   checkInputs = [
24     pytest
25     voluptuous
26   ];
28   checkPhase = ''
29     py.test pyHS100
30   '';
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   };