summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-03-18 09:03:41 +0000
committerGitHub <noreply@github.com>2018-03-18 09:03:41 +0000
commiteb3b45fca7b3ca52ac203f2d731a5021b8f38a7d (patch)
tree7f91b2ddc242ba5c4f6e6eb052bbdfcbc3131809 /pkgs
parent2d28d19edd73850cc2de9455ca8a49d0c23c0124 (diff)
parent3336a7b8acb5bca93912d6f602278c10e4fb6623 (diff)
downloadnixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.tar
nixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.tar.gz
nixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.tar.bz2
nixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.tar.lz
nixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.tar.xz
nixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.tar.zst
nixpkgs-eb3b45fca7b3ca52ac203f2d731a5021b8f38a7d.zip
Merge pull request #37293 from peterhoeg/p/po
pythonPackages.pushover: init at 0.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/pushover/default.nix24
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix2
-rw-r--r--pkgs/top-level/python-packages.nix3
3 files changed, 27 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pushover/default.nix b/pkgs/development/python-modules/pushover/default.nix
new file mode 100644
index 00000000000..e9c5d938101
--- /dev/null
+++ b/pkgs/development/python-modules/pushover/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, requests }:
+
+buildPythonPackage rec {
+  pname = "python-pushover";
+  version = "0.3";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0xlghiqd9rsgn7jdhc8v1xh3xspssihrw1vyy85gvjzxa1ah19sk";
+  };
+
+  propagatedBuildInputs = [ requests ];
+
+  # there are no tests
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    description = "Bindings and command line utility for the Pushover notification service";
+    homepage = https://github.com/Thibauth/python-pushover;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ peterhoeg ];
+  };
+}
diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix
index 5791aac0278..e2fc90a2296 100644
--- a/pkgs/servers/home-assistant/component-packages.nix
+++ b/pkgs/servers/home-assistant/component-packages.nix
@@ -234,7 +234,7 @@
     "notify.message_bird" = ps: with ps; [  ];
     "notify.pushbullet" = ps: with ps; [ pushbullet ];
     "notify.pushetta" = ps: with ps; [  ];
-    "notify.pushover" = ps: with ps; [  ];
+    "notify.pushover" = ps: with ps; [ python-pushover ];
     "notify.rocketchat" = ps: with ps; [  ];
     "notify.sendgrid" = ps: with ps; [  ];
     "notify.simplepush" = ps: with ps; [  ];
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index d5ca8609858..a61ea798150 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -12409,7 +12409,6 @@ in {
 
   py = callPackage ../development/python-modules/py { };
 
-
   pyacoustid = buildPythonPackage rec {
     name = "pyacoustid-1.1.0";
 
@@ -12519,6 +12518,8 @@ in {
     };
   };
 
+  python-pushover = callPackage ../development/python-modules/pushover {};
+
   mongodict = buildPythonPackage rec {
     name = "mongodict-${version}";
     version = "0.3.1";