mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
ntfy: 2.6.0 -> 2.7.0
This commit is contained in:
parent
3f3f602159
commit
dc21737edd
|
@ -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 ];
|
||||
};
|
||||
|
||||
}
|
37
pkgs/tools/misc/ntfy/default.nix
Normal file
37
pkgs/tools/misc/ntfy/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -4472,7 +4472,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 { };
|
||||
|
||||
|
|
|
@ -2995,8 +2995,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 { };
|
||||
|
|
Loading…
Reference in a new issue