5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
46 lines
980 B
Nix
46 lines
980 B
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
protobuf,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "androidtvremote2";
|
|
version = "0.1.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tronikos";
|
|
repo = "androidtvremote2";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Zem2IWBUWmyVdBjqoVKFk+/lg5T7CPXCKFXhFusQFLY=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
}
|