2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpx,
|
|
|
|
poetry-core,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-httpx,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "notifications-android-tv";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.2";
|
2023-04-12 12:48:02 +00:00
|
|
|
format = "pyproject";
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.10";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "engrbm87";
|
|
|
|
repo = "notifications_android_tv";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-JUvxxVCiQtywAWU5AYnPm4SueIWIXkzLxPYveVXpc2E=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ httpx ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "notifications_android_tv" ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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 = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dominikh ];
|
|
|
|
};
|
|
|
|
}
|