1{ lib 2, adb-shell 3, aiofiles 4, async-timeout 5, buildPythonPackage 6, fetchFromGitHub 7, mock 8, pure-python-adb 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "androidtv"; 15 version = "0.0.73"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "JeffLIrion"; 22 repo = "python-androidtv"; 23 rev = "v${version}"; 24 hash = "sha256-FJUTJfS9jiC7KDf6XcGVRNXf75bVUOBPZe8y9M39Uak="; 25 }; 26 27 propagatedBuildInputs = [ 28 adb-shell 29 async-timeout 30 pure-python-adb 31 ]; 32 33 passthru.optional-dependencies = { 34 async = [ 35 aiofiles 36 ]; 37 inherit (adb-shell.optional-dependencies) usb; 38 }; 39 40 nativeCheckInputs = [ 41 mock 42 pytestCheckHook 43 ] 44 ++ passthru.optional-dependencies.async 45 ++ passthru.optional-dependencies.usb; 46 47 disabledTests = [ 48 # Requires git but fails anyway 49 "test_no_underscores" 50 ]; 51 52 pythonImportsCheck = [ 53 "androidtv" 54 ]; 55 56 meta = with lib; { 57 description = "Communicate with an Android TV or Fire TV device via ADB over a network"; 58 homepage = "https://github.com/JeffLIrion/python-androidtv/"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ jamiemagee ]; 61 }; 62}