From 583ce2b1a95c7723e1dced6aa629160d050aab05 Mon Sep 17 00:00:00 2001 From: Matthew O'Gorman Date: Wed, 21 Feb 2018 04:14:08 -0500 Subject: [PATCH] python-notify2: init at 0.3.1 --- .../python-modules/notify2/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/notify2/default.nix diff --git a/pkgs/development/python-modules/notify2/default.nix b/pkgs/development/python-modules/notify2/default.nix new file mode 100644 index 000000000000..2d5851929075 --- /dev/null +++ b/pkgs/development/python-modules/notify2/default.nix @@ -0,0 +1,29 @@ +{ buildPythonPackage +, lib +, fetchPypi +, pygobject3 +, dbus-python +}: + +buildPythonPackage rec { + pname = "notify2"; + version = "0.3.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0z8rrv9rsg1r2qgh2dxj3dfj5xnki98kgi3w839kqby4a26i1yik"; + }; + + + # Tests require Xorg and Dbus instance + doCheck = false; + propagatedBuildInputs = [ pygobject3 + dbus-python ]; + + meta = { + description = "Pure Python interface to DBus notifications"; + homepage = https://bitbucket.org/takluyver/pynotify2; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ mog ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0eebd578c3a3..18d8b553bf84 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11319,6 +11319,8 @@ in { }; }); + notify2 = callPackage ../development/python-modules/notify2 {}; + notmuch = buildPythonPackage rec { name = "python-${pkgs.notmuch.name}";