Merge pull request #30501 from gnidorah/mailnag

mailnag: use setup.py
This commit is contained in:
Jörg Thalheim 2017-11-07 17:31:31 +00:00 committed by GitHub
commit 2e4282d968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,13 @@
, gdk_pixbuf, libnotify, gst_all_1 , gdk_pixbuf, libnotify, gst_all_1
, libgnome_keyring3, networkmanager , libgnome_keyring3, networkmanager
, wrapGAppsHook, gnome3 , wrapGAppsHook, gnome3
, withGnomeKeyring ? false # otherwise passwords are stored unencrypted
, withNetworkManager ? true , withGnomeKeyring ? true
}: }:
pythonPackages.buildPythonApplication rec { let
inherit (pythonPackages) python;
in pythonPackages.buildPythonApplication rec {
name = "mailnag-${version}"; name = "mailnag-${version}";
version = "1.2.1"; version = "1.2.1";
@ -20,8 +22,7 @@ pythonPackages.buildPythonApplication rec {
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-bad
gnome3.defaultIconTheme gnome3.defaultIconTheme
] ++ stdenv.lib.optional withGnomeKeyring libgnome_keyring3 ] ++ stdenv.lib.optional withGnomeKeyring libgnome_keyring3;
++ stdenv.lib.optional withNetworkManager networkmanager;
nativeBuildInputs = [ nativeBuildInputs = [
wrapGAppsHook wrapGAppsHook
@ -31,6 +32,10 @@ pythonPackages.buildPythonApplication rec {
pygobject3 dbus-python pyxdg pygobject3 dbus-python pyxdg
]; ];
buildPhase = "";
installPhase = "${python}/bin/python setup.py install --prefix=$out";
doCheck = false; doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {