pythonPackages.ntfy: refactor move to python-modules
This commit is contained in:
parent
48d6229352
commit
d9d93f8e14
33
pkgs/development/python-modules/ntfy/default.nix
Normal file
33
pkgs/development/python-modules/ntfy/default.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, appdirs
|
||||||
|
, pyyaml
|
||||||
|
, requests
|
||||||
|
, dbus-python
|
||||||
|
, emoji
|
||||||
|
, sleekxmpp
|
||||||
|
, mock
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "1.2.0";
|
||||||
|
pname = "ntfy";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dschep";
|
||||||
|
repo = "ntfy";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0yjxwisxpxy3vpnqk9nw5k3db3xx6wyf6sk1px9m94s30glcq2cc";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ appdirs pyyaml requests dbus-python emoji sleekxmpp mock ];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -2946,25 +2946,7 @@ in {
|
|||||||
|
|
||||||
emoji = callPackage ../development/python-modules/emoji { };
|
emoji = callPackage ../development/python-modules/emoji { };
|
||||||
|
|
||||||
ntfy = buildPythonPackage rec {
|
ntfy = callPackage ../development/python-modules/ntfy { };
|
||||||
version = "1.2.0";
|
|
||||||
name = "ntfy-${version}";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "dschep";
|
|
||||||
repo = "ntfy";
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0yjxwisxpxy3vpnqk9nw5k3db3xx6wyf6sk1px9m94s30glcq2cc";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = with self; [ appdirs pyyaml requests dbus-python emoji sleekxmpp mock ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A utility for sending notifications, on demand and when commands finish";
|
|
||||||
homepage = http://ntfy.rtfd.org/;
|
|
||||||
license = licenses.gpl3;
|
|
||||||
maintainers = with maintainers; [ kamilchm ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ntplib = buildPythonPackage rec {
|
ntplib = buildPythonPackage rec {
|
||||||
name = "ntplib-0.3.3";
|
name = "ntplib-0.3.3";
|
||||||
|
Loading…
Reference in New Issue
Block a user