Merge pull request #127088 from dotlambda/pycontrol4-init
This commit is contained in:
commit
9a543d90c6
4 changed files with 47 additions and 1 deletions
43
pkgs/development/python-modules/pycontrol4/default.nix
Normal file
43
pkgs/development/python-modules/pycontrol4/default.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, aiohttp
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycontrol4";
|
||||
version = "0.1.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lawtancool";
|
||||
repo = "pyControl4";
|
||||
rev = "v${version}";
|
||||
sha256 = "0idw9kv6yxrbp0r33vb1jlzgil20m2rjjfrxhcwxmbjjqv93zn6d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
xmltodict
|
||||
];
|
||||
|
||||
# tests access network
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyControl4.account"
|
||||
"pyControl4.alarm"
|
||||
"pyControl4.director"
|
||||
"pyControl4.light"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python 3 asyncio package for interacting with Control4 systems";
|
||||
homepage = "https://github.com/lawtancool/pyControl4";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -138,7 +138,7 @@
|
|||
"concord232" = ps: with ps; [ ]; # missing inputs: concord232
|
||||
"config" = ps: with ps; [ aiohttp-cors ];
|
||||
"configurator" = ps: with ps; [ ];
|
||||
"control4" = ps: with ps; [ ]; # missing inputs: pyControl4
|
||||
"control4" = ps: with ps; [ pycontrol4 ];
|
||||
"conversation" = ps: with ps; [ aiohttp-cors ];
|
||||
"coolmaster" = ps: with ps; [ ]; # missing inputs: pycoolmasternet-async
|
||||
"coronavirus" = ps: with ps; [ coronavirus ];
|
||||
|
|
|
@ -334,6 +334,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"compensation"
|
||||
"config"
|
||||
"configurator"
|
||||
"control4"
|
||||
"conversation"
|
||||
"coronavirus"
|
||||
"counter"
|
||||
|
|
|
@ -5230,6 +5230,8 @@ in {
|
|||
|
||||
pyatag = callPackage ../development/python-modules/pyatag { };
|
||||
|
||||
pycontrol4 = callPackage ../development/python-modules/pycontrol4 { };
|
||||
|
||||
pyfireservicerota = callPackage ../development/python-modules/pyfireservicerota { };
|
||||
|
||||
pyflick = callPackage ../development/python-modules/pyflick { };
|
||||
|
|
Loading…
Reference in a new issue