pythonPackages.androidtv: init at 0.0.50

gstqt5
Jamie Magee 2020-09-24 10:33:12 +02:00
parent ce18187e34
commit 4bb55ce089
No known key found for this signature in database
GPG Key ID: 4429B642B1718654
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ aiofiles, adb-shell, buildPythonPackage, fetchFromGitHub, isPy3k, lib, mock
, pure-python-adb, python }:
buildPythonPackage rec {
pname = "androidtv";
version = "0.0.50";
# pypi does not contain tests, using github sources instead
src = fetchFromGitHub {
owner = "JeffLIrion";
repo = "python-androidtv";
rev = "v${version}";
sha256 = "1iqw40szwgzvhv3fbnx2wwfnw0d3clcwk9vsq1xsn30fjil2vl7b";
};
propagatedBuildInputs = [ adb-shell pure-python-adb ]
++ lib.optionals (isPy3k) [ aiofiles ];
checkInputs = [ mock ];
checkPhase = ''
${python.interpreter} -m unittest discover -s tests -t .
'';
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 = with maintainers; [ jamiemagee ];
};
}

View File

@ -282,6 +282,8 @@ in {
amqplib = callPackage ../development/python-modules/amqplib { };
androidtv = callPackage ../development/python-modules/androidtv { };
androguard = callPackage ../development/python-modules/androguard { };
aniso8601 = callPackage ../development/python-modules/aniso8601 { };