3
0
Fork 0
forked from mirrors/nixpkgs

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
, libgnome_keyring3, networkmanager
, wrapGAppsHook, gnome3
, withGnomeKeyring ? false
, withNetworkManager ? true
# otherwise passwords are stored unencrypted
, withGnomeKeyring ? true
}:
pythonPackages.buildPythonApplication rec {
let
inherit (pythonPackages) python;
in pythonPackages.buildPythonApplication rec {
name = "mailnag-${version}";
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-bad
gnome3.defaultIconTheme
] ++ stdenv.lib.optional withGnomeKeyring libgnome_keyring3
++ stdenv.lib.optional withNetworkManager networkmanager;
] ++ stdenv.lib.optional withGnomeKeyring libgnome_keyring3;
nativeBuildInputs = [
wrapGAppsHook
@ -31,6 +32,10 @@ pythonPackages.buildPythonApplication rec {
pygobject3 dbus-python pyxdg
];
buildPhase = "";
installPhase = "${python}/bin/python setup.py install --prefix=$out";
doCheck = false;
meta = with stdenv.lib; {