Files
nixpkgs/pkgs/development/python-modules/notifications-android-tv/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
httpx,
poetry-core,
pytest-asyncio,
pytest-httpx,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "notifications-android-tv";
version = "1.2.2";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "engrbm87";
repo = "notifications_android_tv";
tag = version;
hash = "sha256-JUvxxVCiQtywAWU5AYnPm4SueIWIXkzLxPYveVXpc2E=";
};
pythonRelaxDeps = [ "httpx" ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ httpx ];
pythonImportsCheck = [ "notifications_android_tv" ];
nativeCheckInputs = [ pytestCheckHook ];
checkInputs = [
pytest-asyncio
pytest-httpx
];
meta = {
description = "Python API for sending notifications to Android/Fire TVs";
homepage = "https://github.com/engrbm87/notifications_android_tv";
changelog = "https://github.com/engrbm87/notifications_android_tv/blob/${version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dominikh ];
};
}