5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
49 lines
1,000 B
Nix
49 lines
1,000 B
Nix
{ lib
|
|
, aiofiles
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, protobuf
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "androidtvremote2";
|
|
version = "0.0.14";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tronikos";
|
|
repo = "androidtvremote2";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-m53TlNrrCjA4CqvR02Yph7Gr5Dt17VJFBX6MC3arWOI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiofiles
|
|
cryptography
|
|
protobuf
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"androidtvremote2"
|
|
];
|
|
|
|
# Module only has a dummy test
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Library to interact with the Android TV Remote protocol v2";
|
|
homepage = "https://github.com/tronikos/androidtvremote2";
|
|
changelog = "https://github.com/tronikos/androidtvremote2/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|