Skip to content

Commit

Permalink
Remove top-level dbus_python and pythonDBus.
Browse files Browse the repository at this point in the history
See #11567.

Furthermore, it renames pythonPackages.dbus to pythonPackages.dbus-
python as that's the name upstream uses.

There is a small rebuild but I couldn't figure out the actual cause.
  • Loading branch information
FRidh committed Aug 16, 2016
1 parent 6b23bd9 commit 5a501bd
Show file tree
Hide file tree
Showing 45 changed files with 166 additions and 171 deletions.
14 changes: 8 additions & 6 deletions pkgs/applications/audio/a2jmidid/default.nix
@@ -1,7 +1,9 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
, python, pythonDBus }:
, pythonPackages}:

stdenv.mkDerivation rec {
let
inherit (pythonPackages) python dbus-python;
in stdenv.mkDerivation rec {
name = "a2jmidid-${version}";
version = "8";

Expand All @@ -10,14 +12,14 @@ stdenv.mkDerivation rec {
sha256 = "0pzm0qk5ilqhwz74pydg1jwrds27vm47185dakdrxidb5bv3b5ia";
};

buildInputs = [ makeWrapper pkgconfig alsaLib dbus libjack2 python pythonDBus ];
buildInputs = [ makeWrapper pkgconfig alsaLib dbus libjack2 python dbus-python ];

configurePhase = "python waf configure --prefix=$out";
configurePhase = "${python.interpreter} waf configure --prefix=$out";

buildPhase = "python waf";
buildPhase = "${python.interpreter} waf";

installPhase = ''
python waf install
${python.interpreter} waf install
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
'';

Expand Down
7 changes: 3 additions & 4 deletions pkgs/applications/audio/gpodder/default.nix
@@ -1,11 +1,10 @@
{ stdenv, fetchurl, buildPythonApplication, pythonPackages, mygpoclient, intltool
{ stdenv, fetchurl, pythonPackages, mygpoclient, intltool
, ipodSupport ? true, libgpod
, gnome3
}:

buildPythonApplication rec {
pythonPackages.buildPythonApplication rec {
name = "gpodder-${version}";
namePrefix = "";

version = "3.9.0";

Expand All @@ -31,7 +30,7 @@ buildPythonApplication rec {
];

propagatedBuildInputs = with pythonPackages; [
feedparser dbus mygpoclient sqlite3 pygtk eyeD3
feedparser dbus-python mygpoclient sqlite3 pygtk eyeD3
] ++ stdenv.lib.optional ipodSupport libgpod;

checkPhase = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/audio/mopidy/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, pythonPackages, pygobject3, wrapGAppsHook
{ stdenv, fetchFromGitHub, pythonPackages, wrapGAppsHook
, gst_all_1, glib_networking, gobjectIntrospection
}:

Expand All @@ -22,7 +22,7 @@ pythonPackages.buildPythonApplication rec {
];

propagatedBuildInputs = with pythonPackages; [
gst-python pygobject3 pykka tornado requests2 dbus
gst-python pygobject3 pykka tornado requests2 dbus-python
];

# There are no tests
Expand Down
14 changes: 7 additions & 7 deletions pkgs/applications/audio/quodlibet/default.nix
@@ -1,18 +1,18 @@
{ stdenv, fetchurl, python, buildPythonApplication, mutagen, pygtk, pygobject, intltool
, pythonDBus, gst_python, withGstPlugins ? false, gst_plugins_base ? null
{ stdenv, fetchurl, pythonPackages, intltool
, gst_python, withGstPlugins ? false, gst_plugins_base ? null
, gst_plugins_good ? null, gst_plugins_ugly ? null, gst_plugins_bad ? null }:

assert withGstPlugins -> gst_plugins_base != null
|| gst_plugins_good != null
|| gst_plugins_ugly != null
|| gst_plugins_bad != null;

let version = "2.6.3"; in

buildPythonApplication {
let
version = "2.6.3";
inherit (pythonPackages) buildPythonApplication python mutagen pygtk pygobject dbus-python;
in buildPythonApplication {
# call the package quodlibet and just quodlibet
name = "quodlibet${stdenv.lib.optionalString withGstPlugins "-with-gst-plugins"}-${version}";
namePrefix = "";

# XXX, tests fail
doCheck = false;
Expand Down Expand Up @@ -48,7 +48,7 @@ buildPythonApplication {
];

propagatedBuildInputs = [
mutagen pygtk pygobject pythonDBus gst_python intltool
mutagen pygtk pygobject dbus-python gst_python intltool
];

postInstall = stdenv.lib.optionalString withGstPlugins ''
Expand Down
15 changes: 6 additions & 9 deletions pkgs/applications/audio/sonata/default.nix
@@ -1,14 +1,11 @@
{ pkgs, stdenv, fetchFromGitHub, pkgconfig, intltool, wrapGAppsHook,
python, buildPythonApplication, isPy3k,
gnome3, gtk3, gobjectIntrospection,
dbus, pygobject3, mpd2 }:
{ lib, stdenv, fetchFromGitHub, pkgconfig, intltool, wrapGAppsHook
, python3Packages, gnome3, gtk3, gobjectIntrospection}:

with pkgs.lib;

buildPythonApplication rec {
let
inherit (python3Packages) buildPythonApplication python isPy3k dbus-python pygobject3 mpd2;
in buildPythonApplication rec {
name = "sonata-${version}";
version = "1.7b1";
namePrefix = "";

src = fetchFromGitHub {
owner = "multani";
Expand Down Expand Up @@ -38,7 +35,7 @@ buildPythonApplication rec {

# The optional tagpy dependency (for editing metadata) is not yet
# included because it's difficult to build.
pythonPath = [ dbus pygobject3 mpd2 ];
pythonPath = [ dbus-python pygobject3 mpd2 ];

meta = {
description = "An elegant client for the Music Player Daemon";
Expand Down
11 changes: 6 additions & 5 deletions pkgs/applications/misc/batti/default.nix
@@ -1,10 +1,11 @@
{ stdenv, fetchurl
, pkgconfig, gettext, python
, gtk, pygtk, dbus_python
, gdk_pixbuf, upower
, pkgconfig, gettext, pythonPackages
, gtk, gdk_pixbuf, upower
, makeWrapper }:

stdenv.mkDerivation rec {
let
inherit (pythonPackages) dbus-python pygtk python;
in stdenv.mkDerivation rec {

name = "batti-${version}";
version = "0.3.8";
Expand All @@ -15,7 +16,7 @@ stdenv.mkDerivation rec {
};

buildInputs = with stdenv.lib;
[ pkgconfig gettext python gtk pygtk dbus_python gdk_pixbuf upower makeWrapper ];
[ pkgconfig gettext python gtk pygtk dbus-python gdk_pixbuf upower makeWrapper ];

configurePhase = "true";

Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/misc/cherrytree/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, python, pythonPackages, gettext, pygtksourceview, sqlite }:
{ stdenv, fetchurl, pythonPackages, gettext, sqlite }:

with stdenv.lib;
stdenv.mkDerivation rec {
Expand All @@ -15,10 +15,10 @@ stdenv.mkDerivation rec {
[ sqlite3 ];

buildInputs = with pythonPackages;
[ python gettext wrapPython pygtk dbus pygtksourceview ];
[ python gettext wrapPython pygtk dbus-python pygtksourceview ];

pythonPath = with pythonPackages;
[ pygtk dbus pygtksourceview ];
[ pygtk dbus-python pygtksourceview ];

patches = [ ./subprocess.patch ];

Expand Down
12 changes: 7 additions & 5 deletions pkgs/applications/misc/guake/default.nix
Expand Up @@ -11,12 +11,14 @@ gconftool-2 --recursive-unset /apps/guake
*/
{ stdenv, fetchurl, lib
, pkgconfig, libtool, intltool, makeWrapper
, dbus, gtk2, gconf, python2, python2Packages, libutempter, vte, keybinder, gnome2, gnome3 }:
, dbus, gtk2, gconf, python2Packages, libutempter, vte, keybinder, gnome2, gnome3 }:

with lib;

let inputs = [ dbus gtk2 gconf python2 libutempter vte keybinder gnome3.gnome_common ];
pyPath = makeSearchPathOutput "lib" python2.sitePackages (attrVals [ "dbus" "notify" "pyGtkGlade" "pyxdg" ] python2Packages ++ [ gnome2.gnome_python ]);
let
inherit (python2Packages) python;
inputs = [ dbus gtk2 gconf python libutempter vte keybinder gnome3.gnome_common ];
pyPath = makeSearchPathOutput "lib" python.sitePackages (attrVals [ "dbus-python" "notify" "pyGtkGlade" "pyxdg" ] python2Packages ++ [ gnome2.gnome_python ]);
in stdenv.mkDerivation rec {
name = "guake-${version}";
version = "0.8.3";
Expand Down Expand Up @@ -60,11 +62,11 @@ let inputs = [ dbus gtk2 gconf python2 libutempter vte keybinder gnome3.gnome_co
postFixup = ''
for bin in $out/bin/{guake,guake-prefs}; do
substituteInPlace $bin \
--replace '/usr/bin/env python2' ${python2}/bin/python2
--replace '/usr/bin/env python2' ${python.interpreter}
wrapProgram $bin \
--prefix XDG_DATA_DIRS : "$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" \
--prefix LD_LIBRARY_PATH : ${makeLibraryPath inputs} \
--prefix PYTHONPATH : "$out/${python2.sitePackages}:${pyPath}:$PYTHONPATH"
--prefix PYTHONPATH : "$out/${python.sitePackages}:${pyPath}:$PYTHONPATH"
done
'';

Expand Down
9 changes: 4 additions & 5 deletions pkgs/applications/misc/hamster-time-tracker/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchzip, buildPythonApplication, docbook2x, libxslt, gnome_doc_utils
, intltool, dbus_glib, pygobject, pygtk, pyxdg, gnome_python, dbus, sqlite3
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome_doc_utils
, intltool, dbus_glib, gnome_python, dbus
, hicolor_icon_theme
}:

Expand All @@ -8,9 +8,8 @@
#
# WARNING:root:Could not import wnck - workspace tracking will be disabled

buildPythonApplication rec {
pythonPackages.buildPythonApplication rec {
name = "hamster-time-tracker-1.04";
namePrefix = "";

src = fetchzip {
name = "${name}-src";
Expand All @@ -22,7 +21,7 @@ buildPythonApplication rec {
docbook2x libxslt gnome_doc_utils intltool dbus_glib hicolor_icon_theme
];

propagatedBuildInputs = [ pygobject pygtk pyxdg gnome_python dbus sqlite3 ];
propagatedBuildInputs = with pythonPackages; [ pygobject pygtk pyxdg gnome_python dbus-python sqlite3 ];

configurePhase = ''
python waf configure --prefix="$out"
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/printrun/default.nix
Expand Up @@ -11,7 +11,7 @@ python27Packages.buildPythonApplication rec {
};

propagatedBuildInputs = with python27Packages; [
wxPython30 pyserial dbus psutil numpy pyopengl pyglet cython
wxPython30 pyserial dbus-python psutil numpy pyopengl pyglet cython
];

doCheck = false;
Expand Down
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, python, intltool, pkgconfig, libX11, gtk
, ldns, pythonDBus, pythonPackages
, ldns, pythonPackages

, enableJingle ? true, farstream ? null, gst_plugins_bad ? null
, libnice ? null
Expand Down Expand Up @@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
pythonPackages.sqlite3 pythonPackages.pyasn1
pythonPackages.pyxdg
pythonPackages.nbxmpp
pythonPackages.pyopenssl pythonDBus
pythonPackages.pyopenssl pythonPackages.dbus-python
] ++ optionals enableJingle [ farstream gst_plugins_bad libnice ]
++ optional enableE2E pythonPackages.pycrypto
++ optional enableRST pythonPackages.docutils
Expand Down
@@ -1,5 +1,8 @@
{stdenv, fetchurl, python, pythonPackages, pygobject, pythonDBus}:
stdenv.mkDerivation rec {
{stdenv, fetchurl, pythonPackages}:

let
inherit (pythonPackages) python;
in stdenv.mkDerivation rec {
url = "ftp://ftp.goffi.org/sat/sat-0.2.0.tar.bz2";
name = stdenv.lib.nameFromURL url ".tar";
src = fetchurl {
Expand All @@ -10,28 +13,28 @@ stdenv.mkDerivation rec {
buildInputs = with pythonPackages;
[
python twisted urwid beautifulsoup wxPython pygobject
wokkel pythonDBus pyfeed wrapPython setuptools
wokkel dbus-python pyfeed wrapPython setuptools
];

configurePhase = ''
sed -i "/use_setuptools/d" setup.py
sed -e "s@sys.prefix@'$out'@g" -i setup.py
sed -e "1aexport PATH=\"\$PATH\":\"$out/bin\":\"${pythonPackages.twisted}/bin\"" -i src/sat.sh
sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/lib/${python.libPrefix}/site-packages"" -i src/sat.sh
sed -e "1aexport PYTHONPATH=\"\$PYTHONPATHPATH\":\"$PYTHONPATH\":"$out/${python.sitePackages}"" -i src/sat.sh
echo 'import wokkel.muc' | python
'';

buildPhase = ''
python setup.py build
${python.interpreter}setup.py build
'';

installPhase = ''
python setup.py install --prefix="$out"
${python.interpreter} setup.py install --prefix="$out"
for i in "$out/bin"/*; do
head -n 1 "$i" | grep -E '[/ ]python( |$)' && {
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/lib/${python.libPrefix}/site-packages"
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH:$out/${python.sitePackages}"
} || true
done
'';
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/networking/mailreaders/mailnag/default.nix
@@ -1,9 +1,9 @@
{ stdenv, buildPythonApplication, fetchurl, gettext, gtk3, pythonPackages
{ stdenv, fetchurl, gettext, gtk3, pythonPackages
, gdk_pixbuf, libnotify, gst_all_1
, libgnome_keyring3 ? null, networkmanager ? null
}:

buildPythonApplication rec {
pythonPackages.buildPythonApplication rec {
name = "mailnag-${version}";
version = "1.1.0";

Expand All @@ -13,7 +13,7 @@ buildPythonApplication rec {
};

buildInputs = [
gettext gtk3 pythonPackages.pygobject3 pythonPackages.dbus
gettext gtk3 pythonPackages.pygobject3 pythonPackages.dbus-python
pythonPackages.pyxdg gdk_pixbuf libnotify gst_all_1.gstreamer
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad libgnome_keyring3 networkmanager
Expand Down
8 changes: 5 additions & 3 deletions pkgs/applications/networking/sync/backintime/common.nix
@@ -1,6 +1,8 @@
{stdenv, fetchFromGitHub, makeWrapper, gettext, python3, python3Packages, rsync, cron, openssh, sshfsFuse, encfs }:
{stdenv, fetchFromGitHub, makeWrapper, gettext, python3Packages, rsync, cron, openssh, sshfsFuse, encfs }:

stdenv.mkDerivation rec {
let
inherit (python3Packages) python dbus-python keyring;
in stdenv.mkDerivation rec {
version = "1.1.12";

name = "backintime-common-${version}";
Expand All @@ -12,7 +14,7 @@ stdenv.mkDerivation rec {
sha256 = "0n3x48wa8aa7i8fff85h3b5h3xpabk51ld0ymy3pkqh0krfgs59a";
};

buildInputs = [ makeWrapper gettext python3 python3Packages.dbus python3Packages.keyring openssh cron rsync sshfsFuse encfs ];
buildInputs = [ makeWrapper gettext python dbus-python keyring openssh cron rsync sshfsFuse encfs ];

installFlags = [ "DEST=$(out)" ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/version-management/rabbitvcs/default.nix
Expand Up @@ -11,7 +11,7 @@ python2Packages.buildPythonApplication rec {
sha256 = "0964pdylrx4n9c9l8ncwv4q1p63y4hadb5v4pgvm0m2fah2jlkly";
};

pythonPath = with python2Packages; [ configobj dbus pygobject pygtk simplejson pysvn dulwich tkinter gvfs xdg_utils ];
pythonPath = with python2Packages; [ configobj dbus-python pygobject pygtk simplejson pysvn dulwich tkinter gvfs xdg_utils ];

prePatch = ''
sed -ie 's|if sys\.argv\[1\] == "install":|if False:|' ./setup.py
Expand Down
6 changes: 3 additions & 3 deletions pkgs/applications/video/devede/default.nix
@@ -1,7 +1,7 @@
{ pkgs, stdenv, fetchurl, pythonPackages, buildPythonApplication, pygtk, ffmpeg, mplayer, vcdimager, cdrkit, dvdauthor }:
{ pkgs, stdenv, fetchurl, pythonPackages, ffmpeg, mplayer, vcdimager, cdrkit, dvdauthor }:

let
inherit (pythonPackages) dbus;
inherit (pythonPackages) dbus-python buildPythonApplication pygtk;

in buildPythonApplication rec {
name = "devede-3.23.0";
Expand All @@ -14,7 +14,7 @@ in buildPythonApplication rec {

buildInputs = [ ffmpeg ];

propagatedBuildInputs = [ pygtk dbus ffmpeg mplayer dvdauthor vcdimager cdrkit ];
propagatedBuildInputs = [ pygtk dbus-python ffmpeg mplayer dvdauthor vcdimager cdrkit ];

postPatch = ''
substituteInPlace devede --replace "/usr/share/devede" "$out/share/devede"
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/video/kazam/default.nix
Expand Up @@ -16,11 +16,11 @@ python3Packages.buildPythonApplication rec {
buildInputs = with python3Packages;
[ pygobject3 pyxdg pycairo gst_all_1.gstreamer gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good gobjectIntrospection gtk3 libwnck3 distutils_extra
intltool dbus ];
intltool dbus-python ];

# TODO: figure out why PYTHONPATH is not passed automatically for those programs
pythonPath = with python3Packages;
[ pygobject3 pyxdg pycairo dbus ];
[ pygobject3 pyxdg pycairo dbus-python ];

patches = [ ./datadir.patch ./bug_1190693.patch ];
prePatch = ''
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/video/miro/default.nix
Expand Up @@ -75,7 +75,7 @@ in buildPythonApplication rec {
];

propagatedBuildInputs = with pythonPackages; [
pygobject pygtk pycurl sqlite3 mutagen pycairo dbus
pygobject pygtk pycurl sqlite3 mutagen pycairo dbus-python
pywebkitgtk] ++ [ libtorrentRasterbar
gst_python gst_plugins_base gst_plugins_good gst_ffmpeg
] ++ optional enableBonjour avahi;
Expand Down

0 comments on commit 5a501bd

Please sign in to comment.