mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
Do not use top-level buildPythonPackage or buildPythonApplication
but instead use the one in pythonPackages.
This commit is contained in:
parent
2f4da5bd83
commit
3ba16c8234
@ -1,6 +1,6 @@
|
||||
{ pkgs, fetchurl, tk, buildPythonApplication, pythonPackages }:
|
||||
{ pkgs, fetchurl, tk, pythonPackages }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
version = "0.9.7";
|
||||
name = "nvpy-${version}";
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, python27Packages }:
|
||||
{ stdenv, fetchurl, python27Packages }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
namePrefix = "";
|
||||
python27Packages.buildPythonApplication rec {
|
||||
name = "mcomix-${version}";
|
||||
version = "1.2.1";
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, python, pygtk, pillow, libX11, gettext }:
|
||||
{ stdenv, fetchurl, pythonPackages, libX11, gettext }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
namePrefix = "";
|
||||
name = "mirage-0.9.5.2";
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "mirage-${version}";
|
||||
version = "0.9.5.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/mirageiv/${name}.tar.bz2";
|
||||
@ -17,7 +17,7 @@ buildPythonApplication rec {
|
||||
sed -i "s@/usr/local/share/locale@$out/share/locale@" mirage.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pygtk pillow ];
|
||||
propagatedBuildInputs = with pythonPackages; [ pygtk pillow ];
|
||||
|
||||
meta = {
|
||||
description = "Simple image viewer written in PyGTK";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, python, w3m, file }:
|
||||
{ stdenv, fetchurl, pythonPackages, w3m, file }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "ranger-1.7.2";
|
||||
|
||||
meta = {
|
||||
@ -15,7 +15,7 @@ buildPythonApplication rec {
|
||||
sha256 = "0yaviybviwdvfg2a0pf2kk28g10k245499xmbpqlai7fv91f7xll";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ python.modules.curses file ];
|
||||
propagatedBuildInputs = [ pythonPackages.python.modules.curses file ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace ranger/ext/img_display.py \
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, buildPythonPackage, python3, python3Packages
|
||||
{ stdenv, fetchFromGitHub, python3Packages
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonPackage rec {
|
||||
@ -14,7 +14,7 @@ python3Packages.buildPythonPackage rec {
|
||||
sha256 = "1d5a9k1llzn9q1qv1bfwc7gfflabh4riplz9jj0hf04b279y1bj0";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ python3 python3Packages.pyqt4 ];
|
||||
propagatedBuildInputs = [ python3Packages.pyqt4 ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace ./setup.py \
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchzip, buildPythonApplication }:
|
||||
{ stdenv, fetchzip, pythonPackages}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "gitinspector-${version}";
|
||||
version = "0.4.4";
|
||||
namePrefix = "";
|
||||
|
@ -1,11 +1,11 @@
|
||||
{ stdenv, fetchFromGitHub, buildPythonApplication, python27Packages, pkgs }:
|
||||
{ stdenv, fetchFromGitHub, python27Packages, glib, cairo, pango, pkgconfig, libxcb, xcbutilcursor }:
|
||||
|
||||
let cairocffi-xcffib = python27Packages.cairocffi.override {
|
||||
pythonPath = [ python27Packages.xcffib ];
|
||||
};
|
||||
in
|
||||
|
||||
buildPythonApplication rec {
|
||||
python27Packages.buildPythonApplication rec {
|
||||
name = "qtile-${version}";
|
||||
version = "0.10.4";
|
||||
|
||||
@ -24,12 +24,12 @@ buildPythonApplication rec {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace libqtile/manager.py --subst-var-by out $out
|
||||
substituteInPlace libqtile/pangocffi.py --subst-var-by glib ${pkgs.glib.out}
|
||||
substituteInPlace libqtile/pangocffi.py --subst-var-by pango ${pkgs.pango.out}
|
||||
substituteInPlace libqtile/xcursors.py --subst-var-by xcb-cursor ${pkgs.xorg.xcbutilcursor.out}
|
||||
substituteInPlace libqtile/pangocffi.py --subst-var-by glib ${glib.out}
|
||||
substituteInPlace libqtile/pangocffi.py --subst-var-by pango ${pango.out}
|
||||
substituteInPlace libqtile/xcursors.py --subst-var-by xcb-cursor ${xcbutilcursor.out}
|
||||
'';
|
||||
|
||||
buildInputs = [ pkgs.pkgconfig pkgs.glib pkgs.xorg.libxcb pkgs.cairo pkgs.pango python27Packages.xcffib ];
|
||||
buildInputs = [ pkgconfig glib libxcb cairo pango python27Packages.xcffib ];
|
||||
|
||||
pythonPath = with python27Packages; [ xcffib cairocffi-xcffib trollius readline];
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, pythonPackages, picocom
|
||||
{ stdenv, fetchurl, pythonPackages, picocom
|
||||
, avrdude, arduino-core, avrgcclibc }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "ino-0.3.6";
|
||||
namePrefix = "";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchgit, buildPythonApplication, pythonPackages }:
|
||||
{ stdenv, fetchgit, pythonPackages }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
|
||||
name = "grabserial-20141120";
|
||||
namePrefix = "";
|
||||
|
@ -1,8 +1,11 @@
|
||||
{ stdenv, fetchgit, cmake, python, llvmPackages, boost, pythonPackages, buildPythonApplication, makeWrapper
|
||||
{ stdenv, fetchgit, cmake, python, llvmPackages, boost, pythonPackages
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
inherit (pythonPackages) python;
|
||||
in pythonPackages.mkPythonDerivation rec {
|
||||
name = "ycmd-2016-01-12";
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchgit {
|
||||
url = "git://github.com/Valloric/ycmd.git";
|
||||
@ -10,13 +13,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1g0hivv3wla7z5dgnkcn3ny38p089pjfj36nx6k29zmprgmjinyr";
|
||||
};
|
||||
|
||||
buildInputs = [ python cmake boost makeWrapper ];
|
||||
buildInputs = [ cmake boost ];
|
||||
|
||||
propagatedBuildInputs = with pythonPackages; [ waitress frozendict bottle ];
|
||||
|
||||
buildPhase = ''
|
||||
export EXTRA_CMAKE_ARGS=-DPATH_TO_LLVM_ROOT=${llvmPackages.clang-unwrapped}
|
||||
python build.py --clang-completer --system-boost
|
||||
${python.interpreter} build.py --clang-completer --system-boost
|
||||
'';
|
||||
|
||||
configurePhase = ":";
|
||||
@ -24,8 +27,6 @@ stdenv.mkDerivation rec {
|
||||
installPhase = with pythonPackages; ''
|
||||
mkdir -p $out/lib/ycmd/third_party $out/bin
|
||||
cp -r ycmd/ CORE_VERSION libclang.so.* ycm_client_support.so ycm_core.so $out/lib/ycmd/
|
||||
wrapProgram $out/lib/ycmd/ycmd/__main__.py \
|
||||
--prefix PYTHONPATH : "$(toPythonPath ${waitress}):$(toPythonPath ${frozendict}):$(toPythonPath ${bottle})"
|
||||
ln -s $out/lib/ycmd/ycmd/__main__.py $out/bin/ycmd
|
||||
'';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, wxPython, makeDesktopItem }:
|
||||
{ stdenv, fetchurl, pythonPackages, makeDesktopItem }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "winpdb-1.4.8";
|
||||
namePrefix = "";
|
||||
|
||||
@ -9,7 +9,7 @@ buildPythonApplication rec {
|
||||
sha256 = "0vkpd24r40j928vc04c721innv0168sbllg97v4zw10adm24d8fs";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ wxPython ];
|
||||
propagatedBuildInputs = [ pythonPackages.wxPython ];
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "winpdb";
|
||||
|
@ -1,15 +1,14 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, pythonPackages }:
|
||||
{ stdenv, fetchurl, pythonPackages }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "iotop-0.6";
|
||||
namePrefix = "";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://guichaz.free.fr/iotop/files/${name}.tar.bz2";
|
||||
sha256 = "0nzprs6zqax0cwq8h7hnszdl3d2m4c2d4vjfxfxbnjfs9sia5pis";
|
||||
};
|
||||
|
||||
pythonPath = [ pythonPackages.curses ];
|
||||
propagatedBuildInputs = [ pythonPackages.curses ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ lib, pkgs, stdenv, buildPythonApplication, pythonPackages, fetchurl, fetchFromGitHub }:
|
||||
{ lib, pkgs, stdenv, pythonPackages, fetchurl, fetchFromGitHub }:
|
||||
let
|
||||
matrix-angular-sdk = buildPythonApplication rec {
|
||||
matrix-angular-sdk = pythonPackages.buildPythonApplication rec {
|
||||
name = "matrix-angular-sdk-${version}";
|
||||
version = "0.6.8";
|
||||
|
||||
@ -9,8 +9,7 @@ let
|
||||
sha256 = "0gmx4y5kqqphnq3m7xk2vpzb0w2a4palicw7wfdr1q2schl9fhz2";
|
||||
};
|
||||
};
|
||||
in
|
||||
buildPythonApplication rec {
|
||||
in pythonPackages.buildPythonApplication rec {
|
||||
name = "matrix-synapse-${version}";
|
||||
version = "0.17.2";
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, pythonPackages
|
||||
{ stdenv, fetchurl, pythonPackages
|
||||
, which, xpra, xmodmap }:
|
||||
|
||||
let
|
||||
base = buildPythonApplication rec {
|
||||
base = pythonPackages.buildPythonApplication rec {
|
||||
name = "winswitch-${version}";
|
||||
namePrefix = "";
|
||||
version = "0.12.16";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, pythonPackages, python }:
|
||||
{ stdenv, fetchurl, pythonPackages }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "i3minator-${version}";
|
||||
version = "0.0.4";
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, lib, fetchFromGitHub, buildPythonApplication, makeWrapper, ffmpeg_3 }:
|
||||
{ stdenv, lib, fetchFromGitHub, pythonPackages, makeWrapper, ffmpeg_3 }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
|
||||
name = "togglesg-download-git-${version}";
|
||||
version = "2016-05-31";
|
||||
|
@ -1,9 +1,8 @@
|
||||
{ stdenv, fetchFromGitHub, buildPythonPackage
|
||||
, pexpect, pyGtkGlade, pygobject, pyxdg
|
||||
, gnome_python, python
|
||||
{ stdenv, fetchFromGitHub, pythonPackages
|
||||
, gnome_python
|
||||
, libappindicator-gtk2, xflux, librsvg, wrapGAppsHook
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
name = "xflux-gui-${version}";
|
||||
version = "2016-09-21";
|
||||
|
||||
@ -14,11 +13,10 @@ buildPythonPackage rec {
|
||||
sha256 = "15pr8f31jnhqjlpvasnj6cmm6hw5gljphh2pxzav3zd9bp4yl56r";
|
||||
};
|
||||
|
||||
# not sure if these need to be propagated or not?
|
||||
propagatedBuildInputs = [
|
||||
propagatedBuildInputs = with pythonPackages; [
|
||||
pexpect
|
||||
pyGtkGlade
|
||||
pygobject
|
||||
pygobject2
|
||||
pyxdg
|
||||
libappindicator-gtk2
|
||||
gnome_python
|
||||
@ -36,7 +34,7 @@ buildPythonPackage rec {
|
||||
wrapGAppsHook
|
||||
makeWrapperArgs="''${gappsWrapperArgs[@]}"
|
||||
wrapPythonPrograms
|
||||
patchPythonScript $out/${python.sitePackages}/fluxgui/fluxapp.py
|
||||
patchPythonScript $out/${pythonPackages.python.sitePackages}/fluxgui/fluxapp.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ pkgs, fetchurl, buildPythonApplication, pythonPackages }:
|
||||
{ pkgs, fetchurl, pythonPackages }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
version = "1.8.1-beta";
|
||||
name = "gmvault-${version}";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, pythonPackages, buildPythonApplication, hping }:
|
||||
{ stdenv, fetchFromGitHub, pythonPackages, hping }:
|
||||
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
rev = "bf14bbff";
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, pythonPackages, buildPythonApplication }:
|
||||
{ stdenv, fetchFromGitHub, pythonPackages }:
|
||||
|
||||
let honcho = buildPythonApplication rec {
|
||||
let honcho = pythonPackages.buildPythonApplication rec {
|
||||
name = "honcho-${version}";
|
||||
version = "0.6.6";
|
||||
namePrefix = "";
|
||||
|
@ -1,8 +1,6 @@
|
||||
{ stdenv, fetchurl, buildPythonApplication, libreoffice, lpod, lxml, mistune, pillow
|
||||
, pygments
|
||||
}:
|
||||
{ stdenv, fetchurl, pythonPackages, libreoffice }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pythonPackages.buildPythonApplication rec {
|
||||
|
||||
name = "odpdown-${version}";
|
||||
version = "0.4.1";
|
||||
@ -12,7 +10,7 @@ buildPythonApplication rec {
|
||||
sha256 = "005eecc73c65b9d4c09532547940718a7b308cd565f62a213dfa040827d4d565";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libreoffice lpod lxml mistune pillow pygments ];
|
||||
propagatedBuildInputs = with pythonPackages; [ libreoffice lpod lxml mistune pillow pygments ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/thorstenb/odpdown;
|
||||
|
@ -2906,9 +2906,7 @@ in
|
||||
|
||||
obnam = callPackage ../tools/backup/obnam { };
|
||||
|
||||
odpdown = callPackage ../tools/typesetting/odpdown {
|
||||
inherit (pythonPackages) lpod lxml mistune pillow pygments;
|
||||
};
|
||||
odpdown = callPackage ../tools/typesetting/odpdown { };
|
||||
|
||||
odt2txt = callPackage ../tools/text/odt2txt { };
|
||||
|
||||
@ -4230,10 +4228,6 @@ in
|
||||
|
||||
xflux = callPackage ../tools/misc/xflux { };
|
||||
xflux-gui = callPackage ../tools/misc/xflux/gui.nix {
|
||||
pexpect = pythonPackages.pexpect;
|
||||
pyGtkGlade = pythonPackages.pyGtkGlade;
|
||||
pygobject = pythonPackages.pygobject2;
|
||||
pyxdg = pythonPackages.pyxdg;
|
||||
gnome_python = gnome2.gnome_python;
|
||||
};
|
||||
|
||||
@ -7038,9 +7032,7 @@ in
|
||||
|
||||
yodl = callPackage ../development/tools/misc/yodl { };
|
||||
|
||||
winpdb = callPackage ../development/tools/winpdb {
|
||||
inherit (pythonPackages) wxPython;
|
||||
};
|
||||
winpdb = callPackage ../development/tools/winpdb { };
|
||||
|
||||
grabserial = callPackage ../development/tools/grabserial { };
|
||||
|
||||
@ -14141,10 +14133,7 @@ in
|
||||
|
||||
mimms = callPackage ../applications/audio/mimms {};
|
||||
|
||||
mirage = callPackage ../applications/graphics/mirage {
|
||||
inherit (pythonPackages) pygtk;
|
||||
inherit (pythonPackages) pillow;
|
||||
};
|
||||
mirage = callPackage ../applications/graphics/mirage { };
|
||||
|
||||
mixxx = callPackage ../applications/audio/mixxx {
|
||||
inherit (vamp) vampSDK;
|
||||
@ -15316,7 +15305,9 @@ in
|
||||
|
||||
qpdfview = callPackage ../applications/misc/qpdfview {};
|
||||
|
||||
qtile = callPackage ../applications/window-managers/qtile { };
|
||||
qtile = callPackage ../applications/window-managers/qtile {
|
||||
inherit (xorg) libxcb;
|
||||
};
|
||||
|
||||
qvim = lowPrio (callPackage ../applications/editors/vim/qvim.nix {
|
||||
features = "huge"; # one of tiny, small, normal, big or huge
|
||||
|
Loading…
Reference in New Issue
Block a user