1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 poetry-core,
7 pytest-asyncio,
8 pytest-httpx,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "notifications-android-tv";
15 version = "1.2.2";
16 format = "pyproject";
17 disabled = pythonOlder "3.10";
18
19 src = fetchFromGitHub {
20 owner = "engrbm87";
21 repo = "notifications_android_tv";
22 tag = version;
23 hash = "sha256-JUvxxVCiQtywAWU5AYnPm4SueIWIXkzLxPYveVXpc2E=";
24 };
25
26 pythonRelaxDeps = [ "httpx" ];
27
28 nativeBuildInputs = [ poetry-core ];
29
30 propagatedBuildInputs = [ httpx ];
31
32 pythonImportsCheck = [ "notifications_android_tv" ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 checkInputs = [
37 pytest-asyncio
38 pytest-httpx
39 ];
40
41 meta = with lib; {
42 description = "Python API for sending notifications to Android/Fire TVs";
43 homepage = "https://github.com/engrbm87/notifications_android_tv";
44 changelog = "https://github.com/engrbm87/notifications_android_tv/blob/${version}/CHANGES.rst";
45 license = licenses.mit;
46 maintainers = with maintainers; [ dominikh ];
47 };
48}