Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pylutron-caseta / default.nix
blobaa2182c176d3cfea1bc209647195544565a4c4b1
1 { lib
2 , buildPythonPackage
3 , cryptography
4 , fetchFromGitHub
5 , pytest-asyncio
6 , pytest-sugar
7 , pytest-timeout
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "pylutron-caseta";
14   version = "0.9.0";
15   disabled = pythonOlder "3.5";
17   src = fetchFromGitHub {
18     owner = "gurumitts";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "07mz4hn0455qmfqs4xcqlhbf3qvrnmifd0vzpcqlqaqcn009iahq";
22   };
24   propagatedBuildInputs = [
25     cryptography
26   ];
28   checkInputs = [
29     pytest-asyncio
30     pytest-sugar
31     pytest-timeout
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [ "pylutron_caseta" ];
37   meta = with lib; {
38     description = "Python module o control Lutron Caseta devices";
39     homepage = "https://github.com/gurumitts/pylutron-caseta";
40     license = with licenses; [ asl20 ];
41     maintainers = with maintainers; [ fab ];
42   };