Merge pull request #119138 from fabaff/pylutron-caseta
This commit is contained in:
commit
62ce5aa19a
36
pkgs/development/python-modules/aiolip/default.nix
Normal file
36
pkgs/development/python-modules/aiolip/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aiolip";
|
||||||
|
version = "1.1.4";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "bdraco";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1f8mlvbnfcn3sigsmjdpdpgxmnbvcjhfr7lzch61i8sy25dgakji";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py --replace "'pytest-runner'," ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aiolip" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module for the Lutron Integration Protocol";
|
||||||
|
homepage = "https://github.com/bdraco/aiolip";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
43
pkgs/development/python-modules/pylutron-caseta/default.nix
Normal file
43
pkgs/development/python-modules/pylutron-caseta/default.nix
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, cryptography
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-sugar
|
||||||
|
, pytest-timeout
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pylutron-caseta";
|
||||||
|
version = "0.9.0";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "gurumitts";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "07mz4hn0455qmfqs4xcqlhbf3qvrnmifd0vzpcqlqaqcn009iahq";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
cryptography
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-sugar
|
||||||
|
pytest-timeout
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pylutron_caseta" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module o control Lutron Caseta devices";
|
||||||
|
homepage = "https://github.com/gurumitts/pylutron-caseta";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
@ -467,7 +467,7 @@
|
|||||||
"luftdaten" = ps: with ps; [ luftdaten ];
|
"luftdaten" = ps: with ps; [ luftdaten ];
|
||||||
"lupusec" = ps: with ps; [ ]; # missing inputs: lupupy
|
"lupusec" = ps: with ps; [ ]; # missing inputs: lupupy
|
||||||
"lutron" = ps: with ps; [ pylutron ];
|
"lutron" = ps: with ps; [ pylutron ];
|
||||||
"lutron_caseta" = ps: with ps; [ ]; # missing inputs: aiolip pylutron-caseta
|
"lutron_caseta" = ps: with ps; [ aiolip pylutron-caseta ];
|
||||||
"lw12wifi" = ps: with ps; [ ]; # missing inputs: lw12
|
"lw12wifi" = ps: with ps; [ ]; # missing inputs: lw12
|
||||||
"lyft" = ps: with ps; [ ]; # missing inputs: lyft_rides
|
"lyft" = ps: with ps; [ ]; # missing inputs: lyft_rides
|
||||||
"lyric" = ps: with ps; [ aiohttp-cors aiolyric ];
|
"lyric" = ps: with ps; [ aiohttp-cors aiolyric ];
|
||||||
|
@ -269,6 +269,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||||||
"logentries"
|
"logentries"
|
||||||
"logger"
|
"logger"
|
||||||
"lovelace"
|
"lovelace"
|
||||||
|
"lutron_caseta"
|
||||||
"manual"
|
"manual"
|
||||||
"manual_mqtt"
|
"manual_mqtt"
|
||||||
"mazda"
|
"mazda"
|
||||||
|
@ -303,6 +303,8 @@ in {
|
|||||||
|
|
||||||
aiolifx-effects = callPackage ../development/python-modules/aiolifx-effects { };
|
aiolifx-effects = callPackage ../development/python-modules/aiolifx-effects { };
|
||||||
|
|
||||||
|
aiolip = callPackage ../development/python-modules/aiolip { };
|
||||||
|
|
||||||
aiolyric = callPackage ../development/python-modules/aiolyric { };
|
aiolyric = callPackage ../development/python-modules/aiolyric { };
|
||||||
|
|
||||||
aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { };
|
aiomultiprocess = callPackage ../development/python-modules/aiomultiprocess { };
|
||||||
@ -5991,6 +5993,8 @@ in {
|
|||||||
|
|
||||||
pylutron = callPackage ../development/python-modules/pylutron { };
|
pylutron = callPackage ../development/python-modules/pylutron { };
|
||||||
|
|
||||||
|
pylutron-caseta = callPackage ../development/python-modules/pylutron-caseta { };
|
||||||
|
|
||||||
pylxd = callPackage ../development/python-modules/pylxd { };
|
pylxd = callPackage ../development/python-modules/pylxd { };
|
||||||
|
|
||||||
pymacaroons = callPackage ../development/python-modules/pymacaroons { };
|
pymacaroons = callPackage ../development/python-modules/pymacaroons { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user