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