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