2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, adb-shell
|
|
|
|
, aiofiles
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, mock
|
|
|
|
, pure-python-adb
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "androidtv";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.0.60";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JeffLIrion";
|
|
|
|
repo = "python-androidtv";
|
|
|
|
rev = "v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-GWCiRxZ6pHrcVkOKNGxSK8lUD0RohtED8czXIWUoVaM=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ adb-shell pure-python-adb ]
|
|
|
|
++ lib.optionals (isPy3k) [ aiofiles ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "androidtv" ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description =
|
2021-02-05 17:12:51 +00:00
|
|
|
"Communicate with an Android TV or Fire TV device via ADB over a network";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://github.com/JeffLIrion/python-androidtv/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|