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