1{ 2 lib, 3 aiofiles, 4 buildPythonPackage, 5 cryptography, 6 fetchFromGitHub, 7 protobuf, 8 pythonOlder, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "androidtvremote2"; 14 version = "0.2.3"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.10"; 18 19 src = fetchFromGitHub { 20 owner = "tronikos"; 21 repo = "androidtvremote2"; 22 tag = "v${version}"; 23 hash = "sha256-oNZE7Fo60u6c3Gmk4Gi1Ni3HGPDMx7Uh+uerZmxiMCM="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 aiofiles 30 cryptography 31 protobuf 32 ]; 33 34 pythonImportsCheck = [ "androidtvremote2" ]; 35 36 # Module only has a dummy test 37 doCheck = false; 38 39 meta = with lib; { 40 description = "Library to interact with the Android TV Remote protocol v2"; 41 homepage = "https://github.com/tronikos/androidtvremote2"; 42 changelog = "https://github.com/tronikos/androidtvremote2/releases/tag/v${version}"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}