lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #154687 from dotlambda/python-alias

python,pythonPackages: make aliases

authored by

Frederik Rietdijk and committed by
GitHub
afef6d0e 4fa7c297

+252 -250
+2 -2
pkgs/applications/audio/rhvoice/default.nix
··· 1 1 { stdenv, lib, pkg-config, fetchFromGitHub, sconsPackages 2 - , python, glibmm, libpulseaudio, libao }: 2 + , glibmm, libpulseaudio, libao }: 3 3 4 4 let 5 5 version = "unstable-2018-02-10"; ··· 19 19 ]; 20 20 21 21 buildInputs = [ 22 - python glibmm libpulseaudio libao 22 + glibmm libpulseaudio libao 23 23 ]; 24 24 25 25 # SConstruct patch
+2 -2
pkgs/applications/audio/schismtracker/default.nix
··· 3 3 , fetchFromGitHub 4 4 , autoreconfHook 5 5 , alsa-lib 6 - , python 6 + , python3 7 7 , SDL 8 8 }: 9 9 ··· 21 21 configureFlags = [ "--enable-dependency-tracking" ] 22 22 ++ lib.optional stdenv.isDarwin "--disable-sdltest"; 23 23 24 - nativeBuildInputs = [ autoreconfHook python ]; 24 + nativeBuildInputs = [ autoreconfHook python3 ]; 25 25 26 26 buildInputs = [ SDL ] ++ lib.optional stdenv.isLinux alsa-lib; 27 27
+2 -2
pkgs/applications/audio/sorcer/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub , boost, cairomm, cmake, libsndfile, lv2, ntk, pkg-config, python }: 1 + { lib, stdenv, fetchFromGitHub , boost, cairomm, cmake, libsndfile, lv2, ntk, pkg-config }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "sorcer"; ··· 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake pkg-config ]; 15 - buildInputs = [ boost cairomm libsndfile lv2 ntk python ]; 15 + buildInputs = [ boost cairomm libsndfile lv2 ntk ]; 16 16 17 17 postPatch = '' 18 18 # Fix build with lv2 1.18: https://github.com/brummer10/guitarix/commit/c0334c72
+2 -2
pkgs/applications/audio/split2flac/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, makeWrapper 2 2 , shntool, cuetools 3 3 , flac, faac, mp4v2, wavpack, mac 4 - , imagemagick, libiconv, enca, lame, pythonPackages, vorbis-tools 4 + , imagemagick, libiconv, enca, lame, mutagen, vorbis-tools 5 5 , aacgain, mp3gain, vorbisgain 6 6 }: 7 7 ··· 12 12 --prefix PATH : ${lib.makeBinPath [ 13 13 shntool cuetools 14 14 flac faac mp4v2 wavpack mac 15 - imagemagick libiconv enca lame pythonPackages.mutagen vorbis-tools 15 + imagemagick libiconv enca lame mutagen vorbis-tools 16 16 aacgain mp3gain vorbisgain 17 17 ]} 18 18 '';
+2 -2
pkgs/applications/blockchains/chia-plotter/default.nix
··· 4 4 , libsodium 5 5 , cmake 6 6 , substituteAll 7 - , pythonPackages 7 + , python3Packages 8 8 }: 9 9 10 10 stdenv.mkDerivation { ··· 23 23 # prevent CMake from trying to get libraries on the Internet 24 24 (substituteAll { 25 25 src = ./dont_fetch_dependencies.patch; 26 - pybind11_src = pythonPackages.pybind11.src; 26 + pybind11_src = python3Packages.pybind11.src; 27 27 relic_src = fetchFromGitHub { 28 28 owner = "relic-toolkit"; 29 29 repo = "relic";
+2 -2
pkgs/applications/editors/netbeans/default.nix
··· 1 1 { lib, stdenv, fetchurl, makeWrapper, makeDesktopItem, which, unzip, libicns, imagemagick 2 - , jdk, perl, python 2 + , jdk, perl 3 3 }: 4 4 5 5 let ··· 58 58 ''; 59 59 60 60 nativeBuildInputs = [ makeWrapper unzip ]; 61 - buildInputs = [ perl python libicns imagemagick ]; 61 + buildInputs = [ perl libicns imagemagick ]; 62 62 63 63 meta = { 64 64 description = "An integrated development environment for Java, C, C++ and PHP";
+2 -2
pkgs/applications/editors/tiled/default.nix
··· 1 1 { lib, mkDerivation, fetchFromGitHub, pkg-config, qmake 2 - , python, qtbase, qttools }: 2 + , python2, qtbase, qttools }: 3 3 4 4 mkDerivation rec { 5 5 pname = "tiled"; ··· 13 13 }; 14 14 15 15 nativeBuildInputs = [ pkg-config qmake ]; 16 - buildInputs = [ python qtbase qttools ]; 16 + buildInputs = [ python2 qtbase qttools ]; 17 17 18 18 meta = with lib; { 19 19 description = "Free, easy to use and flexible tile map editor";
+2 -2
pkgs/applications/editors/wxhexeditor/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python, gettext }: 1 + { lib, stdenv, fetchFromGitHub, fetchpatch, wxGTK, autoconf, automake, libtool, python2, gettext }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "wxHexEditor"; ··· 11 11 sha256 = "08xnhaif8syv1fa0k6lc3jm7yg2k50b02lyds8w0jyzh4xi5crqj"; 12 12 }; 13 13 14 - buildInputs = [ wxGTK autoconf automake libtool python gettext ]; 14 + buildInputs = [ wxGTK autoconf automake libtool python2 gettext ]; 15 15 16 16 preConfigure = "patchShebangs ."; 17 17
+3 -3
pkgs/applications/graphics/screencloud/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, qt4, quazip, qt-mobility, qxt, pythonPackages }: 1 + { lib, stdenv, fetchFromGitHub, cmake, qt4, quazip, qt-mobility, qxt, python2Packages }: 2 2 3 3 with lib; 4 4 stdenv.mkDerivation rec { ··· 18 18 }; 19 19 20 20 nativeBuildInputs = [ cmake ]; 21 - buildInputs = [ qt4 quazip qt-mobility qxt pythonPackages.python pythonPackages.pycrypto ]; 21 + buildInputs = [ qt4 quazip qt-mobility qxt python2Packages.python python2Packages.pycrypto ]; 22 22 23 23 patchPhase = '' 24 24 # Required to make the configure script work. Normally, screencloud's ··· 59 59 postInstall = '' 60 60 patchShebangs $prefix/opt/screencloud/screencloud.sh 61 61 substituteInPlace "$prefix/opt/screencloud/screencloud.sh" --replace "/opt" "$prefix/opt" 62 - sed -i "2 i\export PYTHONPATH=$(toPythonPath ${pythonPackages.pycrypto}):\$PYTHONPATH" "$prefix/opt/screencloud/screencloud.sh" 62 + sed -i "2 i\export PYTHONPATH=$(toPythonPath ${python2Packages.pycrypto}):\$PYTHONPATH" "$prefix/opt/screencloud/screencloud.sh" 63 63 mkdir $prefix/bin 64 64 mkdir $prefix/lib 65 65 ln -s $prefix/opt/screencloud/screencloud.sh $prefix/bin/screencloud
+3 -3
pkgs/applications/misc/ocropus/default.nix
··· 1 - { lib, fetchFromGitHub, fetchurl, pythonPackages, curl }: 1 + { lib, fetchFromGitHub, fetchurl, python2Packages, curl }: 2 2 3 3 let 4 4 getmodel = name: sha256: { ··· 17 17 ]; 18 18 19 19 in 20 - pythonPackages.buildPythonApplication rec { 20 + python2Packages.buildPythonApplication rec { 21 21 pname = "ocropus"; 22 22 version = "1.3.3"; 23 23 ··· 28 28 owner = "tmbdev"; 29 29 }; 30 30 31 - propagatedBuildInputs = with pythonPackages; [ curl numpy scipy pillow 31 + propagatedBuildInputs = with python2Packages; [ curl numpy scipy pillow 32 32 matplotlib beautifulsoup4 pygtk lxml ]; 33 33 34 34 enableParallelBuilding = true;
+4 -4
pkgs/applications/misc/pdfdiff/default.nix
··· 1 - { lib, pythonPackages, fetchurl, xpdf }: 1 + { lib, python2Packages, fetchurl, xpdf }: 2 2 let 3 - py = pythonPackages; 3 + py = python2Packages; 4 4 in 5 5 py.buildPythonApplication rec { 6 6 name = "pdfdiff-${version}"; ··· 11 11 sha256 = "0zxwjjbklz87wkbhkmsvhc7xmv5php7m2a9vm6ydhmhlxsybf836"; 12 12 }; 13 13 14 - buildInputs = [ pythonPackages.wrapPython ]; 14 + buildInputs = [ python2Packages.wrapPython ]; 15 15 16 16 dontConfigure = true; 17 17 dontBuild = true; ··· 29 29 cp pdfdiff.py $out/bin/pdfdiff 30 30 chmod +x $out/bin/pdfdiff 31 31 32 - substituteInPlace $out/bin/pdfdiff --replace "#!/usr/bin/python" "#!${pythonPackages.python.interpreter}" 32 + substituteInPlace $out/bin/pdfdiff --replace "#!/usr/bin/python" "#!${python2Packages.python.interpreter}" 33 33 ''; 34 34 35 35 meta = with lib; {
+4 -4
pkgs/applications/misc/phwmon/default.nix
··· 1 - { lib, stdenv, fetchFromGitLab, pythonPackages }: 1 + { lib, stdenv, fetchFromGitLab, python2Packages }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "phwmon"; ··· 11 11 sha256 = "1hqmsq66y8bqkpvszw84jyk8haxq3cjnz105hlkmp7786vfmkisq"; 12 12 }; 13 13 14 - nativeBuildInputs = [ pythonPackages.wrapPython ]; 14 + nativeBuildInputs = [ python2Packages.wrapPython ]; 15 15 16 - buildInputs = [ pythonPackages.pygtk pythonPackages.psutil ]; 16 + buildInputs = [ python2Packages.pygtk python2Packages.psutil ]; 17 17 18 - pythonPath = [ pythonPackages.pygtk pythonPackages.psutil ]; 18 + pythonPath = [ python2Packages.pygtk python2Packages.psutil ]; 19 19 20 20 patchPhase = '' 21 21 substituteInPlace install.sh --replace "/usr/local" "$out"
+2 -2
pkgs/applications/misc/survex/default.nix
··· 9 9 , proj_7 10 10 , perl532 11 11 , unscii 12 - , python 12 + , python2 13 13 , libGL 14 14 , libGLU 15 15 , xlibsWrapper ··· 26 26 pname = "survex"; 27 27 version = "1.2.44"; 28 28 29 - nativeBuildInputs = [ docbook5 docbook2x autoreconfHook pkg-config perlenv python ]; 29 + nativeBuildInputs = [ docbook5 docbook2x autoreconfHook pkg-config perlenv python2 ]; 30 30 31 31 buildInputs = [ 32 32 libGL libGLU ffmpeg proj_7
+3 -3
pkgs/applications/misc/weather/default.nix
··· 1 - { lib, stdenv, fetchurl, pythonPackages, installShellFiles }: 1 + { lib, stdenv, fetchurl, python2Packages, installShellFiles }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "2.4.2"; ··· 11 11 12 12 nativeBuildInputs = [ 13 13 installShellFiles 14 - pythonPackages.wrapPython 14 + python2Packages.wrapPython 15 15 ]; 16 16 17 17 dontConfigure = true; ··· 20 20 # Upstream doesn't provide a setup.py or alike, so we follow: 21 21 # http://fungi.yuggoth.org/weather/doc/install.rst#id3 22 22 installPhase = '' 23 - site_packages=$out/${pythonPackages.python.sitePackages} 23 + site_packages=$out/${python2Packages.python.sitePackages} 24 24 install -Dt $out/bin -m 755 weather 25 25 install -Dt $site_packages weather.py 26 26 install -Dt $out/share/weather-util \
+2 -2
pkgs/applications/networking/instant-messengers/pidgin-plugins/purple-plugin-pack/default.nix
··· 1 - { lib, stdenv, fetchurl, pidgin, intltool, python } : 1 + { lib, stdenv, fetchurl, pidgin, intltool, python2 } : 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "purple-plugin-pack"; ··· 8 8 sha256 = "0g5hmy7fwgjq59j52h9yps28jsjjrfkd4r18gyx6hfd3g3kzbg1b"; 9 9 }; 10 10 11 - buildInputs = [ pidgin intltool python ]; 11 + buildInputs = [ pidgin intltool python2 ]; 12 12 13 13 meta = with lib; { 14 14 homepage = "https://bitbucket.org/rekkanoryo/purple-plugin-pack";
+4 -4
pkgs/applications/networking/instant-messengers/torchat/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, python, unzip, wxPython, wrapPython, tor }: 1 + { lib, stdenv, fetchFromGitHub, python2, unzip, tor }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "torchat"; ··· 12 12 }; 13 13 14 14 nativeBuildInputs = [ unzip ]; 15 - buildInputs = [ python wxPython wrapPython ]; 16 - pythonPath = [ wxPython ]; 15 + buildInputs = with python2.pkgs; [ python wxPython wrapPython ]; 16 + pythonPath = with python2.pkgs; [ wxPython ]; 17 17 18 18 preConfigure = "cd torchat/src; rm portable.txt"; 19 19 ··· 24 24 25 25 mkdir -p $out/lib/torchat 26 26 cp -rf * $out/lib/torchat 27 - makeWrapper ${python}/bin/python $out/bin/torchat \ 27 + makeWrapper ${python2}/bin/python $out/bin/torchat \ 28 28 --set PYTHONPATH $out/lib/torchat:$program_PYTHONPATH \ 29 29 --run "cd $out/lib/torchat" \ 30 30 --add-flags "-O $out/lib/torchat/torchat.py"
+4 -1
pkgs/applications/networking/p2p/twister/default.nix
··· 13 13 }; 14 14 }; 15 15 16 - boostPython = boost.override { enablePython = true; }; 16 + boostPython = boost.override { 17 + enablePython = true; 18 + python = python2; 19 + }; 17 20 18 21 in stdenv.mkDerivation rec { 19 22 pname = "twister";
+2 -1
pkgs/applications/radio/soapysdr/default.nix
··· 2 2 , fetchFromGitHub, cmake 3 3 , libusb-compat-0_1, pkg-config 4 4 , usePython ? false 5 - , python, ncurses, swig2 5 + , python ? null 6 + , ncurses, swig2 6 7 , extraPackages ? [] 7 8 } : 8 9
+3 -3
pkgs/applications/science/biology/poretools/default.nix
··· 1 - { lib, pythonPackages, fetchFromGitHub }: 1 + { lib, python2Packages, fetchFromGitHub }: 2 2 3 - pythonPackages.buildPythonPackage rec { 3 + python2Packages.buildPythonPackage rec { 4 4 pname = "poretools"; 5 5 version = "unstable-2016-07-10"; 6 6 ··· 11 11 sha256 = "0bglj833wxpp3cq430p1d3xp085ls221js2y90w7ir2x5ay8l7am"; 12 12 }; 13 13 14 - propagatedBuildInputs = [pythonPackages.h5py pythonPackages.matplotlib pythonPackages.seaborn pythonPackages.pandas]; 14 + propagatedBuildInputs = [python2Packages.h5py python2Packages.matplotlib python2Packages.seaborn python2Packages.pandas]; 15 15 16 16 meta = { 17 17 description = "a toolkit for working with nanopore sequencing data from Oxford Nanopore";
+6 -6
pkgs/applications/science/biology/tebreak/default.nix
··· 1 - { lib, fetchFromGitHub, last, exonerate, minia, python3Packages, bwa 2 - , samtools, findutils, python }: 1 + { lib, fetchFromGitHub, last, exonerate, minia, python3, bwa 2 + , samtools, findutils }: 3 3 4 - python3Packages.buildPythonApplication rec { 4 + python3.pkgs.buildPythonApplication rec { 5 5 pname = "tebreak"; 6 6 version = "1.1"; 7 7 ··· 12 12 sha256 = "13mgh775d8hkl340923lfwwm4r5ps70girn8d6wgfxzwzxylz8iz"; 13 13 }; 14 14 15 - nativeBuildInputs = [ findutils python3Packages.cython ]; 16 - propagatedBuildInputs = with python3Packages; [ 15 + nativeBuildInputs = [ findutils python3.pkgs.cython ]; 16 + propagatedBuildInputs = with python3.pkgs; [ 17 17 pysam 18 18 scipy 19 19 bx-python ··· 35 35 checkPhase = '' 36 36 $out/bin/tebreak -b test/data/example.ins.bam -r test/data/Homo_sapiens_chr4_50000000-60000000_assembly19.fasta -p 4 --pickle test/example.pickle --detail_out test/example.tebreak.detail.out -i lib/teref.human.fa 37 37 pushd test 38 - ${python.interpreter} checktest.py 38 + ${python3.interpreter} checktest.py 39 39 ''; 40 40 41 41 meta = with lib; {
+4 -4
pkgs/applications/science/machine-learning/shogun/default.nix
··· 6 6 # build 7 7 , cmake 8 8 , ctags 9 - , pythonPackages 9 + , python2Packages 10 10 , swig 11 11 # math 12 12 , eigen ··· 36 36 , withSvmLight ? false 37 37 }: 38 38 39 - assert pythonSupport -> pythonPackages != null; 39 + assert pythonSupport -> python2Packages != null; 40 40 assert opencvSupport -> opencv != null; 41 41 42 42 assert (!blas.isILP64) && (!lapack.isILP64); ··· 101 101 ] ++ lib.optional (!withSvmLight) ./svmlight-scrubber.patch; 102 102 103 103 nativeBuildInputs = [ cmake swig ctags ] 104 - ++ (with pythonPackages; [ python jinja2 ply ]); 104 + ++ (with python2Packages; [ python jinja2 ply ]); 105 105 106 106 buildInputs = [ 107 107 eigen ··· 121 121 nlopt 122 122 lp_solve 123 123 colpack 124 - ] ++ lib.optionals pythonSupport (with pythonPackages; [ python numpy ]) 124 + ] ++ lib.optionals pythonSupport (with python2Packages; [ python numpy ]) 125 125 ++ lib.optional opencvSupport opencv; 126 126 127 127 cmakeFlags = let
+12 -12
pkgs/applications/science/misc/sasview/default.nix
··· 1 - { lib, fetchFromGitHub, gcc, python }: 1 + { lib, fetchFromGitHub, gcc, python2 }: 2 2 3 3 let 4 4 xhtml2pdf = import ./xhtml2pdf.nix { 5 5 inherit lib; 6 - fetchPypi = python.pkgs.fetchPypi; 7 - buildPythonPackage = python.pkgs.buildPythonPackage; 8 - html5lib = python.pkgs.html5lib; 9 - httplib2 = python.pkgs.httplib2; 10 - nose = python.pkgs.nose; 11 - pillow = python.pkgs.pillow; 12 - pypdf2 = python.pkgs.pypdf2; 13 - reportlab = python.pkgs.reportlab; 6 + fetchPypi = python2.pkgs.fetchPypi; 7 + buildPythonPackage = python2.pkgs.buildPythonPackage; 8 + html5lib = python2.pkgs.html5lib; 9 + httplib2 = python2.pkgs.httplib2; 10 + nose = python2.pkgs.nose; 11 + pillow = python2.pkgs.pillow; 12 + pypdf2 = python2.pkgs.pypdf2; 13 + reportlab = python2.pkgs.reportlab; 14 14 }; 15 15 16 16 in 17 17 18 - python.pkgs.buildPythonApplication rec { 18 + python2.pkgs.buildPythonApplication rec { 19 19 pname = "sasview"; 20 20 version = "4.2.0"; 21 21 22 - checkInputs = with python.pkgs; [ 22 + checkInputs = with python2.pkgs; [ 23 23 pytest 24 24 unittest-xml-reporting 25 25 ]; ··· 35 35 HOME=$(mktemp -d) py.test 36 36 ''; 37 37 38 - propagatedBuildInputs = with python.pkgs; [ 38 + propagatedBuildInputs = with python2.pkgs; [ 39 39 bumps 40 40 gcc 41 41 h5py
+2 -2
pkgs/applications/science/misc/tulip/default.nix
··· 1 1 { fetchurl, lib, stdenv, libxml2, freetype, libGLU, libGL, glew, qt4 2 - , cmake, makeWrapper, libjpeg, python }: 2 + , cmake, makeWrapper, libjpeg, python2 }: 3 3 4 4 let version = "5.2.1"; in 5 5 stdenv.mkDerivation rec { ··· 11 11 sha256 = "0bqmqy6sri87a8xv5xf7ffaq5zin4hiaa13g0l64b84i7yckfwky"; 12 12 }; 13 13 14 - buildInputs = [ libxml2 freetype glew libGLU libGL qt4 libjpeg python ]; 14 + buildInputs = [ libxml2 freetype glew libGLU libGL qt4 libjpeg python2 ]; 15 15 16 16 nativeBuildInputs = [ cmake makeWrapper ]; 17 17
+2 -2
pkgs/applications/version-management/rapidsvn/default.nix
··· 1 - { lib, stdenv, fetchurl, wxGTK, subversion, apr, aprutil, python }: 1 + { lib, stdenv, fetchurl, wxGTK, subversion, apr, aprutil, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "rapidsvn"; ··· 9 9 sha256 = "1bmcqjc12k5w0z40k7fkk8iysqv4fw33i80gvcmbakby3d4d4i4p"; 10 10 }; 11 11 12 - buildInputs = [ wxGTK subversion apr aprutil python ]; 12 + buildInputs = [ wxGTK subversion apr aprutil python2 ]; 13 13 14 14 configureFlags = [ "--with-svn-include=${subversion.dev}/include" 15 15 "--with-svn-lib=${subversion.out}/lib" ];
+2 -2
pkgs/applications/version-management/src/default.nix
··· 1 - { lib, stdenv, fetchurl, python, rcs, git, makeWrapper }: 1 + { lib, stdenv, fetchurl, python2, rcs, git, makeWrapper }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "src"; ··· 10 10 }; 11 11 12 12 nativeBuildInputs = [ makeWrapper ]; 13 - buildInputs = [ python rcs git ]; 13 + buildInputs = [ python2 rcs git ]; 14 14 15 15 preConfigure = '' 16 16 patchShebangs .
+2 -2
pkgs/applications/version-management/srcml/default.nix
··· 1 - { lib, stdenv, fetchurl, cmake, libxml2, libxslt, boost, libarchive, python, antlr2, 1 + { lib, stdenv, fetchurl, cmake, libxml2, libxslt, boost, libarchive, python2, antlr2, 2 2 curl 3 3 }: 4 4 ··· 23 23 ]; 24 24 25 25 nativeBuildInputs = [ cmake antlr2 ]; 26 - buildInputs = [ libxml2 libxslt boost libarchive python curl ]; 26 + buildInputs = [ libxml2 libxslt boost libarchive python2 curl ]; 27 27 28 28 meta = { 29 29 description = "Infrastructure for exploration, analysis, and manipulation of source code";
+2 -2
pkgs/applications/window-managers/wmii-hg/default.nix
··· 1 - { lib, stdenv, fetchurl, unzip, pkg-config, libixp_hg, txt2tags, dash, python, which 1 + { lib, stdenv, fetchurl, unzip, pkg-config, libixp_hg, txt2tags, dash, python2, which 2 2 , libX11 , libXrender, libXext, libXinerama, libXrandr, libXft }: 3 3 4 4 stdenv.mkDerivation rec { ··· 30 30 ''; 31 31 32 32 nativeBuildInputs = [ pkg-config unzip ]; 33 - buildInputs = [ libixp_hg txt2tags dash python which 33 + buildInputs = [ libixp_hg txt2tags dash python2 which 34 34 libX11 libXrender libXext libXinerama libXrandr libXft ]; 35 35 36 36 # For some reason including mercurial in buildInputs did not help
+3 -3
pkgs/development/compilers/hip/default.nix
··· 16 16 , makeWrapper 17 17 , numactl 18 18 , perl 19 - , python 19 + , python2 20 20 , rocclr 21 21 , rocm-comgr 22 22 , rocm-device-libs ··· 56 56 substituteInPlace bin/hip_embed_pch.sh \ 57 57 --replace '$LLVM_DIR/bin/' "" 58 58 59 - sed 's,#!/usr/bin/python,#!${python}/bin/python,' -i hip_prof_gen.py 59 + sed 's,#!/usr/bin/python,#!${python2}/bin/python,' -i hip_prof_gen.py 60 60 61 61 sed -e 's,$ROCM_AGENT_ENUM = "''${ROCM_PATH}/bin/rocm_agent_enumerator";,$ROCM_AGENT_ENUM = "${rocminfo}/bin/rocm_agent_enumerator";,' \ 62 62 -e 's,^\($DEVICE_LIB_PATH=\).*$,\1"${rocm-device-libs}/amdgcn/bitcode";,' \ ··· 111 111 sha256 = "WvOuQu/EN81Kwcoc3ZtGlhb996edQJ3OWFsmPuqeNXE="; 112 112 }; 113 113 114 - nativeBuildInputs = [ cmake python makeWrapper perl ]; 114 + nativeBuildInputs = [ cmake python2 makeWrapper perl ]; 115 115 buildInputs = [ libxml2 numactl libglvnd libX11 ]; 116 116 propagatedBuildInputs = [ 117 117 clang
+2 -2
pkgs/development/interpreters/acl2/default.nix
··· 1 1 { lib, stdenv, callPackage, fetchFromGitHub, runCommandLocal, makeWrapper, substituteAll 2 2 , sbcl, bash, which, perl, hostname 3 - , openssl, glucose, minisat, abc-verifier, z3, python 3 + , openssl, glucose, minisat, abc-verifier, z3, python2 4 4 , certifyBooks ? true 5 5 } @ args: 6 6 ··· 48 48 which perl hostname makeWrapper 49 49 # Some of the books require one or more of these external tools: 50 50 openssl.out glucose minisat abc-verifier libipasir 51 - z3 (python.withPackages (ps: [ ps.z3 ])) 51 + z3 (python2.withPackages (ps: [ ps.z3 ])) 52 52 ]; 53 53 54 54 # NOTE: Parallel building can be memory-intensive depending on the number of
+2 -2
pkgs/development/interpreters/clojurescript/lumo/default.nix
··· 8 8 , unzip 9 9 , nodePackages 10 10 , xcbuild 11 - , python 11 + , python2 12 12 , openssl 13 13 , pkgs 14 14 , fetchgit ··· 154 154 nodejs 155 155 clojure 156 156 jre 157 - python 157 + python2 158 158 openssl 159 159 gnutar 160 160 nodePackages."lumo-build-deps-../interpreters/clojurescript/lumo"
+2 -2
pkgs/development/interpreters/wasmtime/default.nix
··· 1 - { rustPlatform, fetchFromGitHub, lib, python, cmake, llvmPackages, clang, stdenv, darwin }: 1 + { rustPlatform, fetchFromGitHub, lib, python2, cmake, llvmPackages, clang, stdenv, darwin }: 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "wasmtime"; ··· 14 14 15 15 cargoSha256 = "1wlig9gls7s1k1swxwhl82vfga30bady8286livxc4y2zp0vb18w"; 16 16 17 - nativeBuildInputs = [ python cmake clang ]; 17 + nativeBuildInputs = [ python2 cmake clang ]; 18 18 buildInputs = [ llvmPackages.libclang ] ++ 19 19 lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; 20 20 LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
+2 -2
pkgs/development/libraries/blitz/default.nix
··· 4 4 , pkg-config 5 5 , gfortran 6 6 , texinfo 7 - , python 7 + , python2 8 8 , boost 9 9 # Select SIMD alignment width (in bytes) for vectorization. 10 10 , simdWidth ? 1 ··· 32 32 sha256 = "0nq84vwvvbq7m0my6h835ijfw53bxdp42qjc6kjhk436888qy9rh"; 33 33 }; 34 34 35 - nativeBuildInputs = [ pkg-config python texinfo ]; 35 + nativeBuildInputs = [ pkg-config python2 texinfo ]; 36 36 buildInputs = [ gfortran texinfo boost ]; 37 37 38 38 configureFlags =
+2 -2
pkgs/development/libraries/ntrack/default.nix
··· 1 - { lib, stdenv, fetchurl, qt4, pkg-config, libnl, python }: 1 + { lib, stdenv, fetchurl, qt4, pkg-config, libnl, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "ntrack"; ··· 11 11 12 12 buildInputs = [ libnl qt4 ]; 13 13 14 - nativeBuildInputs = [ pkg-config python ]; 14 + nativeBuildInputs = [ pkg-config python2 ]; 15 15 16 16 # error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic] 17 17 NIX_CFLAGS_COMPILE = "-Wno-error";
+2 -2
pkgs/development/libraries/openbabel/2.nix
··· 1 - {stdenv, lib, fetchFromGitHub, fetchpatch, cmake, zlib, libxml2, eigen, python, cairo, pcre, pkg-config }: 1 + {stdenv, lib, fetchFromGitHub, fetchpatch, cmake, zlib, libxml2, eigen, python2, cairo, pcre, pkg-config }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "openbabel"; ··· 19 19 }) 20 20 ]; 21 21 22 - buildInputs = [ zlib libxml2 eigen python cairo pcre ]; 22 + buildInputs = [ zlib libxml2 eigen python2 cairo pcre ]; 23 23 24 24 nativeBuildInputs = [ cmake pkg-config ]; 25 25
+3 -3
pkgs/development/libraries/opencv/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, unzip 2 2 , zlib 3 - , enablePython ? false, pythonPackages 3 + , enablePython ? false, python2Packages 4 4 , enableGtk2 ? false, gtk2 5 5 , enableJPEG ? true, libjpeg 6 6 , enablePNG ? true, libpng ··· 44 44 45 45 buildInputs = 46 46 [ zlib ] 47 - ++ lib.optional enablePython pythonPackages.python 47 + ++ lib.optional enablePython python2Packages.python 48 48 ++ lib.optional enableGtk2 gtk2 49 49 ++ lib.optional enableJPEG libjpeg 50 50 ++ lib.optional enablePNG libpng ··· 56 56 ++ lib.optionals stdenv.isDarwin [ Cocoa QTKit ] 57 57 ; 58 58 59 - propagatedBuildInputs = lib.optional enablePython pythonPackages.numpy; 59 + propagatedBuildInputs = lib.optional enablePython python2Packages.numpy; 60 60 61 61 nativeBuildInputs = [ cmake pkg-config unzip ]; 62 62
+2 -2
pkgs/development/libraries/pcmsolver/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python 1 + { lib, stdenv, fetchFromGitHub, cmake, perl, gfortran, python2 2 2 , boost, eigen, zlib 3 3 } : 4 4 ··· 17 17 cmake 18 18 gfortran 19 19 perl 20 - python 20 + python2 21 21 ]; 22 22 23 23 buildInputs = [
+1 -1
pkgs/development/libraries/physics/fastjet/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchurl 4 - , python 4 + , python ? null 5 5 , withPython ? false 6 6 }: 7 7
+2 -2
pkgs/development/libraries/ptex/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, zlib, python, cmake, pkg-config }: 1 + { lib, stdenv, fetchFromGitHub, zlib, python2, cmake, pkg-config }: 2 2 3 3 stdenv.mkDerivation rec 4 4 { ··· 15 15 outputs = [ "bin" "dev" "out" "lib" ]; 16 16 17 17 nativeBuildInputs = [ cmake ]; 18 - buildInputs = [ zlib python pkg-config ]; 18 + buildInputs = [ zlib python2 pkg-config ]; 19 19 20 20 # Can be removed in the next release 21 21 # https://github.com/wdas/ptex/pull/42
+2 -2
pkgs/development/libraries/rabbitmq-java-client/default.nix
··· 1 - { fetchurl, lib, stdenv, ant, jdk, jre, python, makeWrapper }: 1 + { fetchurl, lib, stdenv, ant, jdk, jre, python2, makeWrapper }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "rabbitmq-java-client"; ··· 10 10 }; 11 11 12 12 nativeBuildInputs = [ makeWrapper ]; 13 - buildInputs = [ ant jdk python ]; 13 + buildInputs = [ ant jdk python2 ]; 14 14 15 15 buildPhase = "ant dist"; 16 16
+2 -2
pkgs/development/libraries/seasocks/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, python, zlib }: 1 + { lib, stdenv, fetchFromGitHub, cmake, python3, zlib }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "seasocks"; ··· 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake ]; 15 - buildInputs = [ zlib python ]; 15 + buildInputs = [ zlib python3 ]; 16 16 17 17 meta = with lib; { 18 18 homepage = "https://github.com/mattgodbolt/seasocks";
+3 -3
pkgs/development/libraries/snack/default.nix
··· 1 - # alsa-lib vorbis-tools python can be made optional 1 + # alsa-lib vorbis-tools python2 can be made optional 2 2 3 - { lib, stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }: 3 + { lib, stdenv, fetchurl, python2, tcl, tk, vorbis-tools, pkg-config, xlibsWrapper }: 4 4 5 5 stdenv.mkDerivation rec { 6 6 pname = "snack"; ··· 16 16 postUnpack = ''sourceRoot="$sourceRoot/unix"''; 17 17 18 18 nativeBuildInputs = [ pkg-config ]; 19 - buildInputs = [ python tcl tk vorbis-tools xlibsWrapper ]; 19 + buildInputs = [ python2 tcl tk vorbis-tools xlibsWrapper ]; 20 20 21 21 hardeningDisable = [ "format" ]; 22 22
+2 -2
pkgs/development/libraries/swiften/default.nix
··· 1 1 { stdenv 2 2 , lib 3 - , python 3 + , python2 4 4 , libidn 5 5 , lua 6 6 , miniupnpc ··· 40 40 ]; 41 41 42 42 buildInputs = [ 43 - python 43 + python2 44 44 libidn 45 45 lua 46 46 miniupnpc
+2 -2
pkgs/development/libraries/tiledb/default.nix
··· 13 13 , libpqxx 14 14 , clang-tools 15 15 , catch2 16 - , python 16 + , python3 17 17 , gtest 18 18 , doxygen 19 19 , fixDarwinDylibNames ··· 39 39 nativeBuildInputs = [ 40 40 clang-tools 41 41 cmake 42 - python 42 + python3 43 43 doxygen 44 44 ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; 45 45
+2 -2
pkgs/development/ocaml-modules/llvm/default.nix
··· 1 - { stdenv, lib, python, cmake, libllvm, ocaml, findlib, ctypes }: 1 + { stdenv, lib, python2, cmake, libllvm, ocaml, findlib, ctypes }: 2 2 3 3 let version = lib.getVersion libllvm; in 4 4 ··· 9 9 inherit (libllvm) src; 10 10 11 11 nativeBuildInputs = [ cmake ]; 12 - buildInputs = [ python ocaml findlib ctypes ]; 12 + buildInputs = [ python2 ocaml findlib ctypes ]; 13 13 propagatedBuildInputs = [ libllvm ]; 14 14 15 15 cmakeFlags = [
+2 -2
pkgs/development/ocaml-modules/pycaml/default.nix
··· 1 - { lib, stdenv, fetchurl, ocaml, findlib, ncurses, python, ocaml_make }: 1 + { lib, stdenv, fetchurl, ocaml, findlib, ncurses, python2, ocaml_make }: 2 2 3 3 # This is the original pycaml version with patches from debian. 4 4 ··· 27 27 sourceRoot = "pycaml"; 28 28 patches = [ "../debian/patches/*.patch" ]; 29 29 30 - buildInputs = [ ncurses ocaml findlib python ocaml_make ]; 30 + buildInputs = [ ncurses ocaml findlib python2 ocaml_make ]; 31 31 createFindlibDestdir = true; 32 32 33 33 # the Makefile is not shipped with an install target, hence we do it ourselves.
+2 -2
pkgs/development/tools/analysis/oclgrind/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python }: 1 + { lib, stdenv, fetchFromGitHub, cmake, llvmPackages, readline, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "oclgrind"; ··· 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake ]; 15 - buildInputs = [ llvmPackages.llvm llvmPackages.clang-unwrapped readline python ]; 15 + buildInputs = [ llvmPackages.llvm llvmPackages.clang-unwrapped readline python2 ]; 16 16 17 17 cmakeFlags = [ 18 18 "-DCLANG_ROOT=${llvmPackages.clang-unwrapped}"
+2 -2
pkgs/development/tools/analysis/qcachegrind/default.nix
··· 1 - { lib, stdenv, qmake, qtbase, perl, python, php, kcachegrind, wrapQtAppsHook }: 1 + { lib, stdenv, qmake, qtbase, perl, python2, php, kcachegrind, wrapQtAppsHook }: 2 2 3 3 let 4 4 name = lib.replaceStrings ["kcachegrind"] ["qcachegrind"] kcachegrind.name; ··· 8 8 9 9 src = kcachegrind.src; 10 10 11 - buildInputs = [ qtbase perl python php ]; 11 + buildInputs = [ qtbase perl python2 php ]; 12 12 13 13 nativeBuildInputs = [ qmake wrapQtAppsHook ]; 14 14
+8 -8
pkgs/development/tools/database/pyrseas/default.nix
··· 1 - { lib, pythonPackages, fetchFromGitHub }: 1 + { lib, python2Packages, fetchFromGitHub }: 2 2 3 3 let 4 - pgdbconn = pythonPackages.buildPythonPackage rec { 4 + pgdbconn = python2Packages.buildPythonPackage rec { 5 5 pname = "pgdbconn"; 6 6 version = "0.8.0"; 7 7 src = fetchFromGitHub { ··· 13 13 # The tests are impure (they try to access a PostgreSQL server) 14 14 doCheck = false; 15 15 propagatedBuildInputs = [ 16 - pythonPackages.psycopg2 17 - pythonPackages.pytest 16 + python2Packages.psycopg2 17 + python2Packages.pytest 18 18 ]; 19 19 }; 20 20 in 21 21 22 - pythonPackages.buildPythonApplication { 22 + python2Packages.buildPythonApplication { 23 23 pname = "pyrseas"; 24 24 version = "0.8.0"; 25 25 src = fetchFromGitHub { ··· 31 31 # The tests are impure (they try to access a PostgreSQL server) 32 32 doCheck = false; 33 33 propagatedBuildInputs = [ 34 - pythonPackages.psycopg2 35 - pythonPackages.pytest 36 - pythonPackages.pyyaml 34 + python2Packages.psycopg2 35 + python2Packages.pytest 36 + python2Packages.pyyaml 37 37 pgdbconn 38 38 ]; 39 39 meta = {
+2 -2
pkgs/development/tools/misc/uncrustify/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, python }: 1 + { lib, stdenv, fetchFromGitHub, cmake, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "${product}-${version}"; ··· 12 12 sha256 = "sha256-ZVC5tsn2m1uB7EPNJFPLWLZpLSk4WrFOgJvy1KFYqBY="; 13 13 }; 14 14 15 - nativeBuildInputs = [ cmake python ]; 15 + nativeBuildInputs = [ cmake python2 ]; 16 16 17 17 meta = with lib; { 18 18 description = "Source code beautifier for C, C++, C#, ObjectiveC, D, Java, Pawn and VALA";
+2 -2
pkgs/development/tools/phantomjs2/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, fetchpatch 2 2 , bison, flex, fontconfig, freetype, gperf, icu, openssl, libjpeg 3 - , libpng, perl, python, ruby, sqlite, qtwebkit, qmake, qtbase 3 + , libpng, perl, python2, ruby, sqlite, qtwebkit, qmake, qtbase 4 4 , darwin, writeScriptBin, cups, makeWrapper 5 5 }: 6 6 ··· 28 28 nativeBuildInputs = [ qmake ]; 29 29 buildInputs = [ 30 30 bison flex fontconfig freetype gperf icu openssl 31 - libjpeg libpng perl python ruby sqlite qtwebkit qtbase 31 + libjpeg libpng perl python2 ruby sqlite qtwebkit qtbase 32 32 makeWrapper 33 33 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ 34 34 AGL ApplicationServices AppKit Cocoa OpenGL
+2 -2
pkgs/development/tools/udis86/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, autoreconfHook, python }: 1 + { lib, stdenv, fetchFromGitHub, autoreconfHook, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "udis86"; ··· 11 11 sha256 = "0c60zwimim6jrm4saw36s38w5sg5v8n9mr58pkqmjrlf7q9g6am1"; 12 12 }; 13 13 14 - nativeBuildInputs = [ autoreconfHook python ]; 14 + nativeBuildInputs = [ autoreconfHook python2 ]; 15 15 16 16 configureFlags = [ 17 17 "--enable-shared"
+3 -3
pkgs/development/tools/winpdb/default.nix
··· 1 - { lib, fetchurl, pythonPackages, makeDesktopItem }: 1 + { lib, fetchurl, python2Packages, makeDesktopItem }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 pname = "winpdb"; 5 5 version = "1.4.8"; 6 6 namePrefix = ""; ··· 10 10 sha256 = "0vkpd24r40j928vc04c721innv0168sbllg97v4zw10adm24d8fs"; 11 11 }; 12 12 13 - propagatedBuildInputs = [ pythonPackages.wxPython ]; 13 + propagatedBuildInputs = [ python2Packages.wxPython ]; 14 14 15 15 desktopItem = makeDesktopItem { 16 16 name = "winpdb";
+1 -1
pkgs/games/heroic/default.nix
··· 1 - { lib, fetchurl, appimageTools, python, gsettings-desktop-schemas, gtk3 }: 1 + { lib, fetchurl, appimageTools, gsettings-desktop-schemas, gtk3 }: 2 2 3 3 let 4 4 pname = "heroic";
+3 -3
pkgs/games/openra/common.nix
··· 2 2 and out-of-tree mod packages (mod.nix). 3 3 */ 4 4 { lib, makeSetupHook, curl, unzip, dos2unix, pkg-config, makeWrapper 5 - , lua, mono, dotnetPackages, python 5 + , lua, mono, dotnetPackages, python2 6 6 , libGL, freetype, openal, SDL2 7 7 , zenity 8 8 }: ··· 10 10 with lib; 11 11 12 12 let 13 - path = makeBinPath ([ mono python ] ++ optional (zenity != null) zenity); 13 + path = makeBinPath ([ mono python2 ] ++ optional (zenity != null) zenity); 14 14 rpath = makeLibraryPath [ lua freetype openal SDL2 ]; 15 15 mkdirp = makeSetupHook { } ./mkdirp.sh; 16 16 ··· 66 66 makeWrapper 67 67 mkdirp 68 68 mono 69 - python 69 + python2 70 70 ]; 71 71 72 72 makeFlags = [ "prefix=$(out)" ];
+2 -2
pkgs/games/tennix/default.nix
··· 1 - {lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_net, python } : 1 + {lib, stdenv, fetchurl, SDL, SDL_mixer, SDL_image, SDL_ttf, SDL_net, python2 } : 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "tennix"; ··· 8 8 sha256 = "0np5kw1y7i0z0dsqx4r2nvmq86qj8hv3mmgavm3hxraqnds5z8cm"; 9 9 }; 10 10 11 - buildInputs = [ python SDL SDL_mixer SDL_image SDL_ttf SDL_net ]; 11 + buildInputs = [ python2 SDL SDL_mixer SDL_image SDL_ttf SDL_net ]; 12 12 13 13 patches = [ ./fix_FTBFS.patch ]; 14 14
+2 -2
pkgs/misc/emulators/retrofe/default.nix
··· 1 1 { lib, stdenv, fetchhg, cmake, glib, gst_all_1, makeWrapper, pkg-config 2 - , python, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, sqlite, zlib, runtimeShell 2 + , python2, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, sqlite, zlib, runtimeShell 3 3 }: 4 4 5 5 stdenv.mkDerivation { ··· 12 12 sha256 = "0cvsg07ff0fdqh5zgiv2fs7s6c98hn150kpxmpw5fn6jilaszwkm"; 13 13 }; 14 14 15 - nativeBuildInputs = [ cmake makeWrapper pkg-config python ]; 15 + nativeBuildInputs = [ cmake makeWrapper pkg-config python2 ]; 16 16 17 17 buildInputs = [ 18 18 glib gst_all_1.gstreamer SDL2 SDL2_image SDL2_mixer SDL2_ttf sqlite zlib
+2 -2
pkgs/misc/emulators/wxmupen64plus/default.nix
··· 1 - { lib, stdenv, fetchurl, python, wxGTK29, mupen64plus, SDL, libX11, libGLU, libGL 1 + { lib, stdenv, fetchurl, python2, wxGTK29, mupen64plus, SDL, libX11, libGLU, libGL 2 2 , wafHook }: 3 3 4 4 stdenv.mkDerivation rec { ··· 11 11 }; 12 12 13 13 nativeBuildInputs = [ wafHook ]; 14 - buildInputs = [ python wxGTK29 SDL libX11 libGLU libGL ]; 14 + buildInputs = [ python2 wxGTK29 SDL libX11 libGLU libGL ]; 15 15 16 16 preConfigure = '' 17 17 tar xf ${mupen64plus.src}
+2 -2
pkgs/misc/screensavers/xtrlock-pam/default.nix
··· 1 - { lib, stdenv, fetchgit, python, pkg-config, xlibsWrapper, pam }: 1 + { lib, stdenv, fetchgit, python2, pkg-config, xlibsWrapper, pam }: 2 2 3 3 stdenv.mkDerivation { 4 4 pname = "xtrlock-pam"; ··· 11 11 }; 12 12 13 13 nativeBuildInputs = [ pkg-config ]; 14 - buildInputs = [ python xlibsWrapper pam ]; 14 + buildInputs = [ python2 xlibsWrapper pam ]; 15 15 16 16 configurePhase = '' 17 17 substituteInPlace .config/options.py --replace /usr/include/security/pam_appl.h ${pam}/include/security/pam_appl.h
+4 -4
pkgs/misc/vim-plugins/overrides.nix
··· 10 10 , substituteAll 11 11 12 12 # Language dependencies 13 - , python 13 + , python2 14 14 , python3 15 15 , rustPlatform 16 16 ··· 184 184 }); 185 185 186 186 ctrlp-cmatcher = super.ctrlp-cmatcher.overrideAttrs (old: { 187 - buildInputs = [ python ]; 187 + buildInputs = [ python2 ]; 188 188 buildPhase = '' 189 189 patchShebangs . 190 190 ./install.sh ··· 862 862 vim-isort = super.vim-isort.overrideAttrs (old: { 863 863 postPatch = '' 864 864 substituteInPlace ftplugin/python_vimisort.vim \ 865 - --replace 'import vim' 'import vim; import sys; sys.path.append("${python.pkgs.isort}/${python.sitePackages}")' 865 + --replace 'import vim' 'import vim; import sys; sys.path.append("${python2.pkgs.isort}/${python2.sitePackages}")' 866 866 ''; 867 867 }); 868 868 ··· 916 916 }); 917 917 918 918 vim-wakatime = super.vim-wakatime.overrideAttrs (old: { 919 - buildInputs = [ python ]; 919 + buildInputs = [ python2 ]; 920 920 }); 921 921 922 922 vim-xdebug = super.vim-xdebug.overrideAttrs (old: {
+2 -2
pkgs/os-specific/linux/pam_usb/default.nix
··· 1 - { lib, stdenv, fetchurl, makeWrapper, dbus, libxml2, pam, pkg-config, pmount, pythonPackages, writeScript, runtimeShell }: 1 + { lib, stdenv, fetchurl, makeWrapper, dbus, libxml2, pam, pkg-config, pmount, python2Packages, writeScript, runtimeShell }: 2 2 3 3 let 4 4 ··· 29 29 30 30 pmountBin = useSetUID pmount "/bin/pmount"; 31 31 pumountBin = useSetUID pmount "/bin/pumount"; 32 - inherit (pythonPackages) python dbus-python; 32 + inherit (python2Packages) python dbus-python; 33 33 in 34 34 35 35 stdenv.mkDerivation rec {
+2 -2
pkgs/os-specific/linux/pflask/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, python, wafHook }: 1 + { lib, stdenv, fetchFromGitHub, python2, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "pflask"; ··· 12 12 }; 13 13 14 14 nativeBuildInputs = [ wafHook ]; 15 - buildInputs = [ python ]; 15 + buildInputs = [ python2 ]; 16 16 17 17 meta = { 18 18 description = "Lightweight process containers for Linux";
+2 -2
pkgs/os-specific/linux/smem/default.nix
··· 1 - { lib, stdenv, fetchurl, python }: 1 + { lib, stdenv, fetchurl, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "smem"; ··· 9 9 sha256 = "19ibv1byxf2b68186ysrgrhy5shkc5mc69abark1h18yigp3j34m"; 10 10 }; 11 11 12 - buildInputs = [ python ]; 12 + buildInputs = [ python2 ]; 13 13 14 14 makeFlags = [ "smemcap" ]; 15 15
+3 -3
pkgs/os-specific/linux/speedometer/default.nix
··· 1 - { lib, fetchurl, pythonPackages }: 1 + { lib, fetchurl, python2Packages }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 pname = "speedometer"; 5 5 version = "2.8"; 6 6 ··· 9 9 sha256 = "060bikv3gwr203jbdmvawsfhc0yq0bg1m42dk8czx1nqvwvgv6fm"; 10 10 }; 11 11 12 - propagatedBuildInputs = [ pythonPackages.urwid ]; 12 + propagatedBuildInputs = [ python2Packages.urwid ]; 13 13 14 14 postPatch = '' 15 15 sed -i "/'entry_points': {/d" setup.py
+2 -2
pkgs/os-specific/linux/x86info/default.nix
··· 1 - {lib, stdenv, fetchurl, pciutils, python}: 1 + {lib, stdenv, fetchurl, pciutils, python2}: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "1.30"; ··· 16 16 sed -i 's/-Werror -Wall//' Makefile 17 17 ''; 18 18 19 - buildInputs = [ pciutils python ]; 19 + buildInputs = [ pciutils python2 ]; 20 20 21 21 installPhase = '' 22 22 mkdir -p $out/bin
+2 -2
pkgs/servers/amqp/rabbitmq-server/default.nix
··· 3 3 , fetchurl 4 4 , erlang 5 5 , elixir 6 - , python 6 + , python2 7 7 , libxml2 8 8 , libxslt 9 9 , xmlto ··· 36 36 }; 37 37 38 38 nativeBuildInputs = [ unzip xmlto docbook_xml_dtd_45 docbook_xsl zip rsync ]; 39 - buildInputs = [ erlang elixir python libxml2 libxslt glibcLocales ] 39 + buildInputs = [ erlang elixir python2 libxml2 libxslt glibcLocales ] 40 40 ++ lib.optionals stdenv.isDarwin [ AppKit Carbon Cocoa ]; 41 41 42 42 outputs = [ "out" "man" "doc" ];
+4 -4
pkgs/servers/computing/storm/default.nix
··· 1 1 { stdenv, lib, fetchurl, zip, unzip 2 - , jdk, python 2 + , jdk, python2 3 3 , confFile ? "" 4 4 , extraLibraryPaths ? [] 5 5 , extraJars ? [] ··· 30 30 fixupPhase = '' 31 31 # Fix python reference 32 32 sed -i \ 33 - -e '19iPYTHON=${python}/bin/python' \ 34 - -e 's|#!/usr/bin/.*python|#!${python}/bin/python|' \ 33 + -e '19iPYTHON=${python2}/bin/python' \ 34 + -e 's|#!/usr/bin/.*python|#!${python2}/bin/python|' \ 35 35 $out/bin/storm 36 36 sed -i \ 37 - -e 's|#!/usr/bin/.*python|#!${python}/bin/python|' \ 37 + -e 's|#!/usr/bin/.*python|#!${python2}/bin/python|' \ 38 38 -e "s|STORM_CONF_DIR = .*|STORM_CONF_DIR = os.getenv('STORM_CONF_DIR','$out/conf')|" \ 39 39 -e 's|STORM_LOG4J2_CONF_DIR =.*|STORM_LOG4J2_CONF_DIR = os.path.join(STORM_CONF_DIR, "log4j2")|' \ 40 40 $out/bin/storm.py
+2 -2
pkgs/servers/mapserver/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config 2 2 , cairo, curl, fcgi, freetype, fribidi, gdal, geos, giflib, harfbuzz 3 3 , libjpeg, libpng, librsvg, libxml2, postgresql, proj, protobufc, zlib 4 - , withPython ? true, swig, python 4 + , withPython ? true, swig, python2 5 5 }: 6 6 7 7 stdenv.mkDerivation rec { ··· 38 38 proj 39 39 protobufc 40 40 zlib 41 - ] ++ lib.optional withPython python; 41 + ] ++ lib.optional withPython python2; 42 42 43 43 cmakeFlags = [ 44 44 "-DWITH_KML=ON"
+2 -2
pkgs/servers/sql/proxysql/default.nix
··· 25 25 , pcre 26 26 , perl 27 27 , prometheus-cpp 28 - , python 28 + , python2 29 29 , re2 30 30 , zlib 31 31 }: ··· 56 56 cmake 57 57 libtool 58 58 perl 59 - python 59 + python2 60 60 ]; 61 61 62 62 buildInputs = [
+2 -2
pkgs/servers/tvheadend/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake, makeWrapper, pkg-config 2 - , avahi, dbus, gettext, git, gnutar, gzip, bzip2, ffmpeg_4, libiconv, openssl, python 2 + , avahi, dbus, gettext, git, gnutar, gzip, bzip2, ffmpeg_4, libiconv, openssl, python2 3 3 , v4l-utils, which, zlib }: 4 4 5 5 let ··· 29 29 }; 30 30 31 31 buildInputs = [ 32 - avahi dbus gettext git gnutar gzip bzip2 ffmpeg_4 libiconv openssl python 32 + avahi dbus gettext git gnutar gzip bzip2 ffmpeg_4 libiconv openssl python2 33 33 which zlib 34 34 ]; 35 35
+2 -2
pkgs/shells/zsh/zsh-git-prompt/default.nix
··· 25 25 # installed. 26 26 # 27 27 { fetchFromGitHub 28 - , python 28 + , python2 29 29 , git 30 30 , lib 31 31 , haskellPackages ··· 45 45 prePatch = '' 46 46 substituteInPlace zshrc.sh \ 47 47 --replace ':-"python"' ':-"haskell"' \ 48 - --replace 'python ' '${python.interpreter} ' \ 48 + --replace 'python ' '${python2.interpreter} ' \ 49 49 --replace 'git ' '${git}/bin/git ' 50 50 ''; 51 51 preCompileBuildDriver = "cd src";
+2 -2
pkgs/tools/filesystems/xtreemfs/default.nix
··· 1 - { stdenv, boost, fuse, openssl, cmake, attr, jdk, ant, which, file, python 1 + { stdenv, boost, fuse, openssl, cmake, attr, jdk, ant, which, file, python2 2 2 , lib, valgrind, makeWrapper, fetchFromGitHub, fetchpatch }: 3 3 4 4 stdenv.mkDerivation { ··· 14 14 version = "1.5.1.81"; 15 15 16 16 nativeBuildInputs = [ makeWrapper ]; 17 - buildInputs = [ which attr python ]; 17 + buildInputs = [ which attr python2 ]; 18 18 19 19 patches = [ 20 20 (fetchpatch {
+2 -2
pkgs/tools/misc/grub/trusted.nix
··· 1 - { lib, stdenv, fetchurl, fetchgit, fetchpatch, autogen, flex, bison, python, autoconf, automake 1 + { lib, stdenv, fetchurl, fetchgit, fetchpatch, autogen, flex, bison, python2, autoconf, automake 2 2 , gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2 3 3 , for_HP_laptop ? false 4 4 }: ··· 44 44 sha256 = "0yrfwx67gpg9gij5raq0cfbx3jj769lkg3diqgb7i9n86hgcdh4k"; 45 45 }; 46 46 47 - nativeBuildInputs = [ autogen flex bison python autoconf automake ]; 47 + nativeBuildInputs = [ autogen flex bison python2 autoconf automake ]; 48 48 buildInputs = [ ncurses libusb-compat-0_1 freetype gettext lvm2 ] 49 49 ++ optional doCheck qemu; 50 50
+2 -2
pkgs/tools/misc/opentsdb/default.nix
··· 1 1 { lib, stdenv, autoconf, automake, curl, fetchurl, fetchpatch, jdk8, makeWrapper, nettools 2 - , python, git 2 + , python2, git 3 3 }: 4 4 5 5 let jdk = jdk8; jre = jdk8.jre; in ··· 22 22 ]; 23 23 24 24 nativeBuildInputs = [ makeWrapper ]; 25 - buildInputs = [ autoconf automake curl jdk nettools python git ]; 25 + buildInputs = [ autoconf automake curl jdk nettools python2 git ]; 26 26 27 27 preConfigure = '' 28 28 patchShebangs ./build-aux/
+2 -2
pkgs/tools/misc/rpm-ostree/default.nix
··· 29 29 , bubblewrap 30 30 , pcre 31 31 , check 32 - , python 32 + , python2 33 33 , json_c 34 34 , zchunk 35 35 , libmodulemd ··· 82 82 librepo 83 83 pcre 84 84 check 85 - python 85 + python2 86 86 87 87 # libdnf # vendored unstable branch 88 88 # required by vendored libdnf
+2 -2
pkgs/tools/misc/snapper/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub 2 2 , autoreconfHook, pkg-config, docbook_xsl, libxslt, docbook_xml_dtd_45 3 3 , acl, attr, boost, btrfs-progs, dbus, diffutils, e2fsprogs, libxml2 4 - , lvm2, pam, python, util-linux, json_c, nixosTests 4 + , lvm2, pam, python2, util-linux, json_c, nixosTests 5 5 , ncurses }: 6 6 7 7 stdenv.mkDerivation rec { ··· 21 21 ]; 22 22 buildInputs = [ 23 23 acl attr boost btrfs-progs dbus diffutils e2fsprogs libxml2 24 - lvm2 pam python util-linux json_c ncurses 24 + lvm2 pam python2 util-linux json_c ncurses 25 25 ]; 26 26 27 27 passthru.tests.snapper = nixosTests.snapper;
+2 -2
pkgs/tools/networking/nss-pam-ldapd/default.nix
··· 1 1 { lib, stdenv, fetchurl 2 2 , pkg-config, makeWrapper, autoreconfHook 3 - , openldap, python, pam 3 + , openldap, python2, pam 4 4 }: 5 5 6 6 stdenv.mkDerivation rec { ··· 13 13 }; 14 14 15 15 nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook ]; 16 - buildInputs = [ openldap pam python ]; 16 + buildInputs = [ openldap pam python2 ]; 17 17 18 18 preConfigure = '' 19 19 substituteInPlace Makefile.in --replace "install-data-local: " "# install-data-local: "
+2 -2
pkgs/tools/networking/philter/default.nix
··· 1 - { lib, stdenv, fetchurl, python }: 1 + { lib, stdenv, fetchurl, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "philter"; ··· 11 11 installPhase = '' 12 12 mkdir -p "$out"/{bin,share/philter} 13 13 cp .philterrc "$out"/share/philter/philterrc 14 - sed -i 's@/usr/local/bin@${python}/bin@' src/philter.py 14 + sed -i 's@/usr/local/bin@${python2}/bin@' src/philter.py 15 15 cp src/philter.py "$out"/bin/philter 16 16 chmod +x "$out"/bin/philter 17 17 '';
+2 -2
pkgs/tools/networking/pssh/default.nix
··· 1 - { lib, fetchFromGitHub, pythonPackages, openssh, rsync }: 1 + { lib, fetchFromGitHub, python2Packages, openssh, rsync }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 pname = "pssh"; 5 5 version = "2.3.1"; 6 6
+3 -3
pkgs/tools/networking/py-wmi-client/default.nix
··· 1 - { lib, pythonPackages, fetchFromGitHub }: 1 + { lib, python2Packages, fetchFromGitHub }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 pname = "py-wmi-client"; 5 5 version = "unstable-20160601"; 6 6 ··· 11 11 sha256 = "1kd12gi1knqv477f1shzqr0h349s5336vzp3fpfp3xl0b502ld8d"; 12 12 }; 13 13 14 - propagatedBuildInputs = with pythonPackages; [ impacket natsort pyasn1 pycrypto ]; 14 + propagatedBuildInputs = with python2Packages; [ impacket natsort pyasn1 pycrypto ]; 15 15 16 16 # no tests 17 17 doCheck = false;
+2 -2
pkgs/tools/networking/weighttp/default.nix
··· 1 - { lib, stdenv, fetchgit, python, libev, wafHook }: 1 + { lib, stdenv, fetchgit, python2, libev, wafHook }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "weighttp"; ··· 12 12 13 13 nativeBuildInputs = [ wafHook ]; 14 14 15 - buildInputs = [ python libev ]; 15 + buildInputs = [ python2 libev ]; 16 16 17 17 meta = with lib; { 18 18 description = "Lightweight and simple webserver benchmarking tool";
+3 -3
pkgs/tools/security/volatility/default.nix
··· 1 - { lib, fetchFromGitHub, pythonPackages }: 1 + { lib, fetchFromGitHub, python2Packages }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 pname = "volatility"; 5 5 version = "2.6.1"; 6 6 ··· 13 13 14 14 doCheck = false; 15 15 16 - propagatedBuildInputs = with pythonPackages; [ pycrypto distorm3 pillow ]; 16 + propagatedBuildInputs = with python2Packages; [ pycrypto distorm3 pillow ]; 17 17 18 18 meta = with lib; { 19 19 homepage = "https://www.volatilityfoundation.org/";
+2 -2
pkgs/tools/system/collectd/plugins.nix
··· 31 31 , perl 32 32 , postgresql 33 33 , protobufc 34 - , python 34 + , python2 35 35 , rabbitmq-c 36 36 , rdkafka 37 37 , riemann_c_client ··· 102 102 pinba.buildInputs = [ protobufc ]; 103 103 ping.buildInputs = [ liboping ]; 104 104 postgresql.buildInputs = [ postgresql ]; 105 - python.buildInputs = [ python ]; 105 + python.buildInputs = [ python2 ]; 106 106 redis.buildInputs = [ hiredis ]; 107 107 rrdcached.buildInputs = [ rrdtool libxml2 ]; 108 108 rrdtool.buildInputs = [ rrdtool libxml2 ];
+2 -2
pkgs/tools/system/ps_mem/default.nix
··· 1 - { lib, pythonPackages, fetchFromGitHub }: 1 + { lib, python2Packages, fetchFromGitHub }: 2 2 3 3 let 4 4 version = "3.13"; 5 5 pname = "ps_mem"; 6 - in pythonPackages.buildPythonApplication { 6 + in python2Packages.buildPythonApplication { 7 7 name = "${pname}-${version}"; 8 8 9 9 src = fetchFromGitHub {
+2 -2
pkgs/tools/system/rsyslog/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, autoreconfHook, libestr, json_c, zlib, pythonPackages, fastJson 1 + { lib, stdenv, fetchurl, pkg-config, autoreconfHook, libestr, json_c, zlib, docutils, fastJson 2 2 , libkrb5 ? null, systemd ? null, jemalloc ? null, libmysqlclient ? null, postgresql ? null 3 3 , libdbi ? null, net-snmp ? null, libuuid ? null, curl ? null, gnutls ? null 4 4 , libgcrypt ? null, liblognorm ? null, openssl ? null, librelp ? null, libksi ? null ··· 25 25 26 26 nativeBuildInputs = [ pkg-config autoreconfHook ]; 27 27 buildInputs = [ 28 - fastJson libestr json_c zlib pythonPackages.docutils libkrb5 jemalloc 28 + fastJson libestr json_c zlib docutils libkrb5 jemalloc 29 29 postgresql libdbi net-snmp libuuid curl gnutls libgcrypt liblognorm openssl 30 30 librelp libksi liblogging libnet hadoop rdkafka libmongo-client czmq 31 31 rabbitmq-c hiredis mongoc libmaxminddb
+2 -2
pkgs/tools/system/syslog-ng-incubator/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, glib, syslogng 2 - , eventlog, perl, python, bison, protobufc, libivykis, libcap, czmq 2 + , eventlog, perl, python2, bison, protobufc, libivykis, libcap, czmq 3 3 }: 4 4 5 5 stdenv.mkDerivation rec { ··· 16 16 nativeBuildInputs = [ pkg-config autoreconfHook bison ]; 17 17 18 18 buildInputs = [ 19 - glib syslogng eventlog perl python protobufc libivykis libcap czmq 19 + glib syslogng eventlog perl python2 protobufc libivykis libcap czmq 20 20 ]; 21 21 22 22 configureFlags = [
+2 -2
pkgs/tools/system/syslog-ng/default.nix
··· 1 1 { lib, stdenv, fetchurl, openssl, libcap, curl, which 2 - , eventlog, pkg-config, glib, python, systemd, perl 2 + , eventlog, pkg-config, glib, python2, systemd, perl 3 3 , riemann_c_client, protobufc, pcre, libnet 4 4 , json_c, libuuid, libivykis, mongoc, rabbitmq-c 5 5 , libesmtp ··· 23 23 eventlog 24 24 glib 25 25 perl 26 - python 26 + python2 27 27 systemd 28 28 riemann_c_client 29 29 protobufc
+2 -2
pkgs/tools/text/opencc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, python }: 1 + { lib, stdenv, fetchFromGitHub, cmake, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "opencc"; ··· 11 11 sha256 = "sha256-q/y4tRov/BYCAiE4i7fT6ysTerxxOHMZUWT2Jlo/0rI="; 12 12 }; 13 13 14 - nativeBuildInputs = [ cmake python ]; 14 + nativeBuildInputs = [ cmake python2 ]; 15 15 16 16 # let intermediate tools find intermediate library 17 17 preBuild = lib.optionalString stdenv.isLinux ''
+2 -2
pkgs/tools/text/shocco/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, perlPackages, pythonPackages }: 1 + { lib, stdenv, fetchFromGitHub, perlPackages, python3 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "shocco"; ··· 16 16 substituteInPlace configure --replace PATH= NIRVANA= 17 17 ''; 18 18 19 - buildInputs = [ perlPackages.TextMarkdown pythonPackages.pygments ]; 19 + buildInputs = [ perlPackages.TextMarkdown python3.pkgs.pygments ]; 20 20 21 21 meta = with lib; { 22 22 description = "A quick-and-dirty, literate-programming-style documentation generator for / in POSIX shell";
+3 -3
pkgs/tools/text/txt2tags/default.nix
··· 1 - { lib, stdenv, fetchurl, python }: 1 + { lib, stdenv, fetchurl, python2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "2.6"; ··· 7 7 dontBuild = true; 8 8 9 9 # Python script, needs the interpreter 10 - propagatedBuildInputs = [ python ]; 10 + propagatedBuildInputs = [ python2 ]; 11 11 12 12 installPhase = '' 13 13 mkdir -p "$out/bin" 14 14 mkdir -p "$out/share/doc" 15 15 mkdir -p "$out/share/man/man1/" 16 - sed '1s|/usr/bin/env python|${python}/bin/python|' < txt2tags > "$out/bin/txt2tags" 16 + sed '1s|/usr/bin/env python|${python2}/bin/python|' < txt2tags > "$out/bin/txt2tags" 17 17 chmod +x "$out/bin/txt2tags" 18 18 gzip - < doc/manpage.man > "$out/share/man/man1/txt2tags.1.gz" 19 19 cp doc/userguide.pdf "$out/share/doc"
+4 -4
pkgs/tools/typesetting/odpdown/default.nix
··· 1 - { lib, fetchFromGitHub, pythonPackages, libreoffice }: 1 + { lib, fetchFromGitHub, python2Packages, libreoffice }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 5 5 pname = "odpdown"; 6 6 version = "0.4.1"; ··· 12 12 sha256 = "r2qbgD9PAalbypt+vjp2YcYggUGPQMEG2FDxMtohqG4="; 13 13 }; 14 14 15 - propagatedBuildInputs = with pythonPackages; [ libreoffice lpod lxml mistune pillow pygments ]; 15 + propagatedBuildInputs = with python2Packages; [ libreoffice lpod lxml mistune pillow pygments ]; 16 16 17 - checkInputs = with pythonPackages; [ 17 + checkInputs = with python2Packages; [ 18 18 nose 19 19 ]; 20 20
+2 -2
pkgs/tools/video/vnc2flv/default.nix
··· 1 - { lib, fetchurl, pythonPackages }: 1 + { lib, fetchurl, python2Packages }: 2 2 3 - pythonPackages.buildPythonApplication rec { 3 + python2Packages.buildPythonApplication rec { 4 4 pname = "vnc2flv"; 5 5 version = "20100207"; 6 6
+2 -2
pkgs/tools/virtualization/xe-guest-utilities/default.nix
··· 1 - { lib, stdenv, fetchurl, bzip2, lzo, zlib, xz, bash, python, gnutar, gnused, gnugrep, which }: 1 + { lib, stdenv, fetchurl, bzip2, lzo, zlib, xz, bash, python2, gnutar, gnused, gnugrep, which }: 2 2 3 3 stdenv.mkDerivation (rec { 4 4 pname = "xe-guest-utilities"; ··· 14 14 url = "https://sources.archlinux.org/other/community/xe-guest-utilities/xe-guest-utilities_${version}-1120.tar.gz"; 15 15 sha256 = "f9593cd9588188f80253e736f48d8dd94c5b517abb18316085f86acffab48794"; 16 16 }; 17 - buildInputs = [ bzip2 gnutar gnused python lzo zlib xz stdenv gnugrep which ]; 17 + buildInputs = [ bzip2 gnutar gnused python2 lzo zlib xz stdenv gnugrep which ]; 18 18 patches = [ ./ip-address.patch ]; 19 19 postPatch = '' 20 20 tar xf "$NIX_BUILD_TOP/$name/xenstore-sources.tar.bz2"
+3
pkgs/top-level/aliases.nix
··· 817 817 pyrex095 = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2."; # added 2022-01-12 818 818 pyrex096 = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2."; # added 2022-01-12 819 819 pyrit = throw "pyrit has been removed from nixpkgs as the project is still stuck on python2."; # added 2022-01-01 820 + python = python2; # added 2022-01-11 820 821 python2nix = throw "python2nix has been removed as it is outdated. Use e.g. nixpkgs-pytools instead."; # added 2021-03-08 821 822 python-swiftclient = swiftclient; # added 2021-09-09 823 + pythonFull = python2Full; # added 2022-01-11 824 + pythonPackages = python.pkgs; # added 2022-01-11 822 825 quagga = throw "quagga is no longer maintained upstream"; # added 2021-04-22 823 826 qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19 824 827 qcsxcad = libsForQt5.qcsxcad; # added 2020-11-05
+13 -18
pkgs/top-level/all-packages.nix
··· 4662 4662 diffutils = callPackage ../tools/text/diffutils { }; 4663 4663 4664 4664 dir2opus = callPackage ../tools/audio/dir2opus { 4665 - inherit (pythonPackages) mutagen python wrapPython; 4665 + inherit (python2Packages) mutagen python wrapPython; 4666 4666 }; 4667 4667 4668 4668 dirdiff = callPackage ../tools/text/dirdiff { ··· 10698 10698 inherit (darwin.apple_sdk.frameworks) OpenCL; 10699 10699 }; 10700 10700 10701 - wakatime = pythonPackages.callPackage ../tools/misc/wakatime { }; 10701 + wakatime = python2Packages.callPackage ../tools/misc/wakatime { }; 10702 10702 10703 10703 weather = callPackage ../applications/misc/weather { }; 10704 10704 ··· 13654 13654 # Python interpreters. All standard library modules are included except for tkinter, which is 13655 13655 # available as `pythonPackages.tkinter` and can be used as any other Python package. 13656 13656 # When switching these sets, please update docs at ../../doc/languages-frameworks/python.md 13657 - python = python2; 13658 13657 python2 = python27; 13659 13658 python3 = python39; 13660 13659 pypy = pypy2; ··· 13663 13662 13664 13663 # Python interpreter that is build with all modules, including tkinter. 13665 13664 # These are for compatibility and should not be used inside Nixpkgs. 13666 - pythonFull = python.override { 13667 - self = pythonFull; 13668 - pythonAttr = "pythonFull"; 13669 - x11Support = true; 13670 - }; 13671 13665 python2Full = python2.override { 13672 13666 self = python2Full; 13673 13667 pythonAttr = "python2Full"; ··· 13704 13698 }; 13705 13699 13706 13700 # pythonPackages further below, but assigned here because they need to be in sync 13707 - pythonPackages = python.pkgs; 13708 13701 python2Packages = python2.pkgs; 13709 13702 python3Packages = python3.pkgs; 13710 13703 ··· 19126 19119 19127 19120 openbabel2 = callPackage ../development/libraries/openbabel/2.nix { }; 19128 19121 19129 - openbabel3 = callPackage ../development/libraries/openbabel { }; 19122 + openbabel3 = callPackage ../development/libraries/openbabel { 19123 + python = python3; 19124 + }; 19130 19125 19131 19126 opencascade = callPackage ../development/libraries/opencascade { 19132 19127 inherit (darwin.apple_sdk.frameworks) OpenCL Cocoa; ··· 21689 21684 21690 21685 qpid-cpp = callPackage ../servers/amqp/qpid-cpp { 21691 21686 boost = boost155; 21692 - inherit (pythonPackages) buildPythonPackage qpid-python; 21687 + inherit (python2Packages) buildPythonPackage qpid-python; 21693 21688 }; 21694 21689 21695 21690 qremotecontrol-server = callPackage ../servers/misc/qremotecontrol-server { }; ··· 28511 28506 28512 28507 spideroak = callPackage ../applications/networking/spideroak { }; 28513 28508 28514 - split2flac = callPackage ../applications/audio/split2flac { }; 28509 + split2flac = callPackage ../applications/audio/split2flac { 28510 + inherit (python3.pkgs) mutagen; 28511 + }; 28515 28512 28516 28513 spotify-qt = libsForQt5.callPackage ../applications/audio/spotify-qt { }; 28517 28514 ··· 29023 29020 29024 29021 topydo = callPackage ../applications/misc/topydo {}; 29025 29022 29026 - torchat = callPackage ../applications/networking/instant-messengers/torchat { 29027 - inherit (pythonPackages) wrapPython wxPython; 29028 - }; 29023 + torchat = callPackage ../applications/networking/instant-messengers/torchat { }; 29029 29024 29030 29025 torrential = callPackage ../applications/networking/p2p/torrential { }; 29031 29026 ··· 31707 31702 useMpi = true; 31708 31703 }); 31709 31704 31710 - neuron-full = neuron-mpi.override { inherit python; }; 31705 + neuron-full = neuron-mpi.override { python = python2; }; 31711 31706 31712 31707 mrbayes = callPackage ../applications/science/biology/mrbayes { }; 31713 31708 ··· 33210 33205 33211 33206 nix-script = callPackage ../tools/nix/nix-script {}; 33212 33207 33213 - nix-template-rpm = callPackage ../build-support/templaterpm { inherit (pythonPackages) python toposort; }; 33208 + nix-template-rpm = callPackage ../build-support/templaterpm { inherit (python2Packages) python toposort; }; 33214 33209 33215 33210 nix-top = callPackage ../tools/package-management/nix-top { }; 33216 33211 ··· 33261 33256 disnix = callPackage ../tools/package-management/disnix { }; 33262 33257 33263 33258 dysnomia = callPackage ../tools/package-management/disnix/dysnomia (config.disnix or { 33264 - inherit (pythonPackages) supervisor; 33259 + inherit (python2Packages) supervisor; 33265 33260 }); 33266 33261 33267 33262 dydisnix = callPackage ../tools/package-management/disnix/dydisnix { };
+2 -2
pkgs/top-level/python-packages.nix
··· 2746 2746 2747 2747 fastjet = toPythonModule (pkgs.fastjet.override { 2748 2748 withPython = true; 2749 - inherit python; 2749 + inherit (self) python; 2750 2750 }); 2751 2751 2752 2752 fastjsonschema = callPackage ../development/python-modules/fastjsonschema { }; 2753 2753 2754 2754 fastnlo_toolkit = toPythonModule (pkgs.fastnlo_toolkit.override { 2755 2755 withPython = true; 2756 - inherit python; 2756 + inherit (self) python; 2757 2757 }); 2758 2758 2759 2759 fastnumbers = callPackage ../development/python-modules/fastnumbers { };
+3 -3
pkgs/top-level/release.nix
··· 54 54 jobs.openssl.x86_64-darwin 55 55 jobs.pandoc.x86_64-darwin 56 56 jobs.postgresql.x86_64-darwin 57 - jobs.python.x86_64-darwin 57 + jobs.python2.x86_64-darwin 58 58 jobs.python3.x86_64-darwin 59 59 jobs.ruby.x86_64-darwin 60 60 jobs.rustc.x86_64-darwin ··· 99 99 jobs.go.x86_64-linux 100 100 jobs.linux.x86_64-linux 101 101 jobs.pandoc.x86_64-linux 102 - jobs.python.x86_64-linux 102 + jobs.python2.x86_64-linux 103 103 jobs.python3.x86_64-linux 104 104 # Needed by contributors to test PRs (by inclusion of the PR template) 105 105 jobs.nixpkgs-review.x86_64-linux ··· 134 134 jobs.stdenv.x86_64-darwin 135 135 jobs.cargo.x86_64-darwin 136 136 jobs.go.x86_64-darwin 137 - jobs.python.x86_64-darwin 137 + jobs.python2.x86_64-darwin 138 138 jobs.python3.x86_64-darwin 139 139 jobs.nixpkgs-review.x86_64-darwin 140 140 jobs.nix-info.x86_64-darwin