From d83a97823c14ef861ef116098755c19bc81482e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Fri, 20 Nov 2015 19:58:38 +0100 Subject: [PATCH] buildPythonPackage: fix a few more wheel packages --- pkgs/applications/audio/gpodder/default.nix | 15 +---------- pkgs/applications/misc/ocropus/default.nix | 5 ++-- .../networking/cluster/mesos/default.nix | 6 ++--- .../virtualization/virt-manager/default.nix | 25 ++++++------------- 4 files changed, 14 insertions(+), 37 deletions(-) diff --git a/pkgs/applications/audio/gpodder/default.nix b/pkgs/applications/audio/gpodder/default.nix index 58b9be41545d..c2ea35105823 100644 --- a/pkgs/applications/audio/gpodder/default.nix +++ b/pkgs/applications/audio/gpodder/default.nix @@ -15,7 +15,7 @@ in buildPythonPackage rec { }; buildInputs = [ - coverage feedparser minimock sqlite3 mygpoclient intltool + coverage minimock sqlite3 mygpoclient intltool gnome3.gnome_themes_standard gnome3.defaultIconTheme gnome3.gsettings_desktop_schemas ]; @@ -27,8 +27,6 @@ in buildPythonPackage rec { postPatch = "sed -ie 's/PYTHONPATH=src/PYTHONPATH=\$(PYTHONPATH):src/' makefile"; - checkPhase = "make unittest"; - preFixup = '' wrapProgram $out/bin/gpodder \ --prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" @@ -40,17 +38,6 @@ in buildPythonPackage rec { postFixup = '' wrapPythonPrograms - if test -e $out/nix-support/propagated-build-inputs; then - ln -s $out/nix-support/propagated-build-inputs $out/nix-support/propagated-user-env-packages - fi - - createBuildInputsPth build-inputs "$buildInputStrings" - for inputsfile in propagated-build-inputs propagated-native-build-inputs; do - if test -e $out/nix-support/$inputsfile; then - createBuildInputsPth $inputsfile "$(cat $out/nix-support/$inputsfile)" - fi - done - sed -i "$out/bin/..gpodder-wrapped-wrapped" -e '{ /import sys; sys.argv/d }' diff --git a/pkgs/applications/misc/ocropus/default.nix b/pkgs/applications/misc/ocropus/default.nix index b76852b035ad..b53a928931b6 100644 --- a/pkgs/applications/misc/ocropus/default.nix +++ b/pkgs/applications/misc/ocropus/default.nix @@ -32,14 +32,15 @@ pythonPackages.buildPythonPackage { matplotlib beautifulsoup4 pygtk lxml ]; enableParallelBuilding = true; - + preConfigure = with stdenv.lib; '' - ${concatStrings (map (x: "ln -s ${x.src} models/`basename ${x.name}`;") + ${concatStrings (map (x: "cp -R ${x.src} models/`basename ${x.name}`;") models)} substituteInPlace ocrolib/{common,default}.py --replace /usr/local $out ''; + doCheck = false; # fails checkPhase = '' patchShebangs . substituteInPlace ./run-test \ diff --git a/pkgs/applications/networking/cluster/mesos/default.nix b/pkgs/applications/networking/cluster/mesos/default.nix index f5803018c98e..0651f729cdc9 100644 --- a/pkgs/applications/networking/cluster/mesos/default.nix +++ b/pkgs/applications/networking/cluster/mesos/default.nix @@ -9,14 +9,14 @@ let soext = if stdenv.system == "x86_64-darwin" then "dylib" else "so"; in stdenv.mkDerivation rec { - version = "0.23.1"; + version = "0.23.0"; name = "mesos-${version}"; dontDisableStatic = true; src = fetchurl { - url = "http://www.apache.org/dist/mesos/${version}/mesos-${version}.tar.gz"; - sha256 = "0ygvb0xm4m1ilwbfyjbq0dpsviicg2ab98zg96k2ypa2pa69mvpa"; + url = "http://archive.apache.org/dist/mesos/${version}/${name}.tar.gz"; + sha256 = "1v5xpn4wal4vcrvcklchx9slkpa8xlwqkdbnxzy9zkzpq5g3arxr"; }; patches = [ diff --git a/pkgs/applications/virtualization/virt-manager/default.nix b/pkgs/applications/virtualization/virt-manager/default.nix index b9cfda7b2a7f..243b6464bb5e 100644 --- a/pkgs/applications/virtualization/virt-manager/default.nix +++ b/pkgs/applications/virtualization/virt-manager/default.nix @@ -18,31 +18,20 @@ buildPythonPackage rec { }; propagatedBuildInputs = - [ eventlet greenlet gflags netaddr sqlalchemy carrot routes - PasteDeploy m2crypto ipy twisted sqlalchemy_migrate + [ eventlet greenlet gflags netaddr carrot routes + PasteDeploy m2crypto ipy twisted sqlalchemy_migrate_0_7 distutils_extra simplejson readline glance cheetah lockfile httplib2 urlgrabber virtinst pyGtkGlade pythonDBus gnome_python pygobject3 - libvirt libxml2Python ipaddr vte libosinfo + libvirt libxml2Python ipaddr vte libosinfo gobjectIntrospection gtk3 mox + gtkvnc libvirt-glib glib gsettings_desktop_schemas gnome3.defaultIconTheme + wrapGAppsHook ] ++ optional spiceSupport spice_gtk; - buildInputs = - [ mox - intltool - gtkvnc - gtk3 - libvirt-glib - avahi - glib - gobjectIntrospection - gsettings_desktop_schemas - gnome3.defaultIconTheme - wrapGAppsHook - dconf - ]; + buildInputs = [ dconf avahi intltool ]; patchPhase = '' sed -i 's|/usr/share/libvirt/cpu_map.xml|${system-libvirt}/share/libvirt/cpu_map.xml|g' virtinst/capabilities.py - rm setup.cfg + sed -i "/'install_egg_info'/d" setup.py ''; postConfigure = ''