Merge pull request #217684 from dominikh/notifications-android-tv

python3Packages.notifications-android-tv: init at 1.0.0
This commit is contained in:
Martin Weinelt 2023-04-09 23:59:07 +02:00 committed by GitHub
commit 7f2826d3ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 78 additions and 1 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpx
, poetry-core
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "notifications-android-tv";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "engrbm87";
repo = "notifications_android_tv";
rev = version;
hash = "sha256-Xr+d2uYzgFp/Fb00ymov02+GYnwjGc3FbJ/rIvQXzCE=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
httpx
];
pythonImportsCheck = [ "notifications_android_tv" ];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}

View file

@ -2483,7 +2483,8 @@
nextdns
];
"nfandroidtv" = ps: with ps; [
]; # missing inputs: notifications-android-tv
notifications-android-tv
];
"nibe_heatpump" = ps: with ps; [
nibe
];
@ -4761,6 +4762,7 @@
"nextbus"
"nextcloud"
"nextdns"
"nfandroidtv"
"nibe_heatpump"
"nightscout"
"nina"

View file

@ -114,6 +114,28 @@ let
doCheck = false;
});
notifications-android-tv = super.notifications-android-tv.overridePythonAttrs (oldAttrs: rec {
version = "0.1.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "engrbm87";
repo = "notifications_android_tv";
rev = "refs/tags/${version}";
hash = "sha256-adkcUuPl0jdJjkBINCTW4Kmc16C/HzL+jaRZB/Qr09A=";
};
nativeBuildInputs = with super; [
setuptools
];
propagatedBuildInputs = with super; [
requests
];
doCheck = false; # no tests
});
# Pinned due to API changes in 1.3.0
ovoenergy = super.ovoenergy.overridePythonAttrs (oldAttrs: rec {
version = "1.2.0";

View file

@ -6621,6 +6621,8 @@ self: super: with self; {
notedown = callPackage ../development/python-modules/notedown { };
notifications-android-tv = callPackage ../development/python-modules/notifications-android-tv { };
notifications-python-client = callPackage ../development/python-modules/notifications-python-client { };
notify-events = callPackage ../development/python-modules/notify-events { };