ma ham: use upstream androidtv

This commit is contained in:
makefu 2020-10-23 21:22:32 +02:00
parent 1ae5c6aec6
commit 9f42924b9a
4 changed files with 5 additions and 93 deletions

View file

@ -1,38 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, cryptography
, pyasn1
, rsa
, pycryptodome
}:
buildPythonPackage rec {
pname = "adb_shell";
version = "0.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "16wb8n4fsh465fjlbsxi83xpi7xklaf28s9568bsb3nkyvfvl58h";
};
propagatedBuildInputs = [
cryptography
pyasn1
rsa
];
# tests are not part of pypi package
doCheck = false;
checkInputs = [
pycryptodome
];
meta = with lib; {
description = "A Python implementation of ADB with shell and FileSync functionality";
homepage = https://github.com/JeffLIrion/adb_shell/;
license = licenses.mit;
# maintainers = [ maintainers. ];
};
}

View file

@ -1,30 +0,0 @@
{ lib
, buildPythonPackage
, callPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "androidtv";
version = "0.0.41";
src = fetchPypi {
inherit pname version;
sha256 = "1nch08g47qjgdacl03w7kczx2gajx6nkazgxdzbgn1vghrg6x2zw";
};
propagatedBuildInputs = [
(callPackage ./adbshell.nix {})
(callPackage ./purepythonadb.nix {})
];
# tests are not packaged in pypi release
doCheck = false;
meta = with lib; {
description = "Communicate with an Android TV or Fire TV device via ADB over a network";
homepage = https://github.com/JeffLIrion/python-androidtv/;
license = licenses.mit;
# maintainers = [ maintainers. ];
};
}

View file

@ -1,21 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pure-python-adb";
version = "0.2.2.dev0";
src = fetchPypi {
inherit pname version;
sha256 = "1xigv6c8xyb4g852nr3smz0137rnp81jvlikza071y7rc6pdzwza";
};
meta = with lib; {
description = "Pure python implementation of the adb client";
homepage = https://github.com/Swind/pure-python-adb;
license = licenses.mit;
# maintainers = [ maintainers. ];
};
}

View file

@ -34,14 +34,13 @@ in {
installCheckPhase = ":";
})).override {
extraPackages = ps: with ps; [
python-forecastio jsonrpc-async jsonrpc-websocket mpd2 pkgs.picotts
(callPackage ./androidtv {})
python-forecastio jsonrpc-async jsonrpc-websocket mpd2 pkgs.picotts androidtv
];
};
config = {
influxdb = {
database = "ham";
host = "localhost:8086";
host = "localhost";
tags = {
instance = "omo";
source = "hass";
@ -74,7 +73,9 @@ in {
service_name = "google_say";
}
];
api = {};
esphome = {};
camera = [];
telegram_bot = [
# secrets file: {
# "platform": "broadcast",