Merge pull request #50274 from peterhoeg/f/ha

home-assistant: add support for waze, bluetooth tracker and  IFTTT
This commit is contained in:
Robert Schütz
2018-11-13 14:31:40 +01:00
committed by GitHub
5 changed files with 85 additions and 4 deletions

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, requests }:
buildPythonPackage rec {
pname = "WazeRouteCalculator";
version = "0.6";
src = fetchPypi {
inherit pname version;
sha256 = "0zmnw4198a2kvqvsz1i4a3aa20r4afp2lai6fxbpq1ppv120h857";
};
propagatedBuildInputs = [ requests ];
# there are no tests
doCheck = false;
meta = with stdenv.lib; {
description = "Calculate actual route time and distance with Waze API";
homepage = https://github.com/kovacsbalu/WazeRouteCalculator;
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
};
}

View File

@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchFromGitHub
, pybluez }:
buildPythonPackage rec {
pname = "bt-proximity";
version = "0.0.20180217";
# pypi only has a pre-compiled wheel and no sources
src = fetchFromGitHub {
owner = "FrederikBolding";
repo = "bluetooth-proximity";
rev = "463bade8a9080b47f09bf4a47830b31c69c5dffd";
sha256 = "0anfh90cj3c2g7zqrjvq0d6dzpb4hjl6gk8zw0r349j2zw9i4h7y";
};
propagatedBuildInputs = [ pybluez ];
# there are no tests
doCheck = false;
meta = with stdenv.lib; {
description = "Bluetooth Proximity Detection using Python";
homepage = https://github.com/FrederikBolding/bluetooth-proximity;
maintainers = with maintainers; [ peterhoeg ];
license = licenses.asl20;
};
}

View File

@@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi
, requests }:
buildPythonPackage rec {
pname = "pyfttt";
version = "0.3.2";
src = fetchPypi {
inherit pname version;
sha256 = "10iq7c9c832ssl2xrvf62xf7znfvqzax6sq8ppsibq6wpb8dlnj5";
};
propagatedBuildInputs = [ requests ];
# tests need a server to run against
doCheck = false;
meta = with stdenv.lib; {
description = "Package for sending events to the IFTTT Webhooks Channel";
homepage = https://github.com/briandconnelly/pyfttt;
maintainers = with maintainers; [ peterhoeg ];
license = licenses.bsd2;
};
}