3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #51411 from jfrankenau/update-ntfy

ntfy: 2.6.0 -> 2.7.0
This commit is contained in:
Renaud 2018-12-03 11:31:53 +01:00 committed by GitHub
commit e869896d00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 42 deletions

View file

@ -1,39 +0,0 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, appdirs
, ruamel_yaml
, requests
, emoji
, sleekxmpp
, mock
, psutil
, python
# , dbus-python
}:
buildPythonPackage rec {
version = "2.6.0";
pname = "ntfy";
src = fetchFromGitHub {
owner = "dschep";
repo = "ntfy";
rev = "v${version}";
sha256 = "0hnwrybbk0gw0c6kw2zpx0x1rh3jb9qyrprcphzkv0jlhzdfkrp1";
};
propagatedBuildInputs = [ requests ruamel_yaml appdirs mock sleekxmpp emoji psutil ];
checkPhase = ''
HOME=$(mktemp -d) ${python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "A utility for sending notifications, on demand and when commands finish";
homepage = http://ntfy.rtfd.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ kamilchm ];
};
}

View file

@ -0,0 +1,37 @@
{ stdenv, pythonPackages, fetchFromGitHub }:
pythonPackages.buildPythonApplication rec {
pname = "ntfy";
version = "2.7.0";
src = fetchFromGitHub {
owner = "dschep";
repo = "ntfy";
rev = "v${version}";
sha256 = "09f02cn4i1l2aksb3azwfb70axqhn7d0d0vl2r6640hqr74nc1cv";
};
checkInputs = with pythonPackages; [
mock
];
propagatedBuildInputs = with pythonPackages; [
requests ruamel_yaml appdirs
sleekxmpp dns
emoji
psutil
matrix-client
dbus-python
];
checkPhase = ''
HOME=$(mktemp -d) ${pythonPackages.python.interpreter} setup.py test
'';
meta = with stdenv.lib; {
description = "A utility for sending notifications, on demand and when commands finish";
homepage = http://ntfy.rtfd.org/;
license = licenses.gpl3;
maintainers = with maintainers; [ jfrankenau kamilchm ];
};
}

View file

@ -4486,7 +4486,7 @@ with pkgs;
# ntfsprogs are merged into ntfs-3g
ntfsprogs = pkgs.ntfs3g;
ntfy = pythonPackages.ntfy;
ntfy = callPackage ../tools/misc/ntfy {};
ntopng = callPackage ../tools/networking/ntopng { };

View file

@ -3123,8 +3123,6 @@ in {
emoji = callPackage ../development/python-modules/emoji { };
ntfy = callPackage ../development/python-modules/ntfy { };
ntplib = callPackage ../development/python-modules/ntplib { };
numba = callPackage ../development/python-modules/numba { };