@@ -0,0 +1,37 @@
1+{ stdenv, pythonPackages, fetchFromGitHub }:
2+
3+pythonPackages.buildPythonApplication rec {
4+ pname = "ntfy";
5+ version = "2.7.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "dschep";
9+ repo = "ntfy";
10+ rev = "v${version}";
11+ sha256 = "09f02cn4i1l2aksb3azwfb70axqhn7d0d0vl2r6640hqr74nc1cv";
12+ };
13+
14+ checkInputs = with pythonPackages; [
15+ mock
16+ ];
17+
18+ propagatedBuildInputs = with pythonPackages; [
19+ requests ruamel_yaml appdirs
20+ sleekxmpp dns
21+ emoji
22+ psutil
23+ matrix-client
24+ dbus-python
25+ ];
26+
27+ checkPhase = ''
28+ HOME=$(mktemp -d) ${pythonPackages.python.interpreter} setup.py test
29+ '';
30+
31+ meta = with stdenv.lib; {
32+ description = "A utility for sending notifications, on demand and when commands finish";
33+ homepage = http://ntfy.rtfd.org/;
34+ license = licenses.gpl3;
35+ maintainers = with maintainers; [ jfrankenau kamilchm ];
36+ };
37+}