From d9d93f8e14c8459406fbdadb9dad0f5403489256 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 17 Oct 2018 14:22:05 -0400 Subject: [PATCH] pythonPackages.ntfy: refactor move to python-modules --- .../python-modules/ntfy/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +---------- 2 files changed, 34 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/ntfy/default.nix diff --git a/pkgs/development/python-modules/ntfy/default.nix b/pkgs/development/python-modules/ntfy/default.nix new file mode 100644 index 000000000000..5d54b0928b6f --- /dev/null +++ b/pkgs/development/python-modules/ntfy/default.nix @@ -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 ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d676ced41f62..62b3a8838079 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2946,25 +2946,7 @@ in { emoji = callPackage ../development/python-modules/emoji { }; - ntfy = buildPythonPackage rec { - 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 ]; - }; - }; + ntfy = callPackage ../development/python-modules/ntfy { }; ntplib = buildPythonPackage rec { name = "ntplib-0.3.3";