mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
Merge pull request #51411 from jfrankenau/update-ntfy
ntfy: 2.6.0 -> 2.7.0
This commit is contained in:
commit
e869896d00
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -4486,7 +4486,7 @@ with pkgs;
|
|||||||
# ntfsprogs are merged into ntfs-3g
|
# ntfsprogs are merged into ntfs-3g
|
||||||
ntfsprogs = pkgs.ntfs3g;
|
ntfsprogs = pkgs.ntfs3g;
|
||||||
|
|
||||||
ntfy = pythonPackages.ntfy;
|
ntfy = callPackage ../tools/misc/ntfy {};
|
||||||
|
|
||||||
ntopng = callPackage ../tools/networking/ntopng { };
|
ntopng = callPackage ../tools/networking/ntopng { };
|
||||||
|
|
||||||
|
@ -3123,8 +3123,6 @@ in {
|
|||||||
|
|
||||||
emoji = callPackage ../development/python-modules/emoji { };
|
emoji = callPackage ../development/python-modules/emoji { };
|
||||||
|
|
||||||
ntfy = callPackage ../development/python-modules/ntfy { };
|
|
||||||
|
|
||||||
ntplib = callPackage ../development/python-modules/ntplib { };
|
ntplib = callPackage ../development/python-modules/ntplib { };
|
||||||
|
|
||||||
numba = callPackage ../development/python-modules/numba { };
|
numba = callPackage ../development/python-modules/numba { };
|
||||||
|
Loading…
Reference in New Issue
Block a user