depot/third_party/nixpkgs/pkgs/development/python-modules/androidtvremote2/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

49 lines
1,000 B
Nix

{ lib
, aiofiles
, buildPythonPackage
, cryptography
, fetchFromGitHub
, protobuf
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "androidtvremote2";
version = "0.0.13";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tronikos";
repo = "androidtvremote2";
rev = "refs/tags/v${version}";
hash = "sha256-+9VVUIvM//Fxv1a/+PAKWSQE8/TgBZzeTisgMqj6KPU=";
};
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 ];
};
}