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