From eb3e23c49e4f75e20f445f618629c3aebc226b33 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 14 Aug 2016 13:06:42 +0200 Subject: [PATCH] Remove top-level setuptools See #11567. --- pkgs/applications/audio/morituri/default.nix | 18 ++++++++++-------- pkgs/tools/backup/duplicity/default.nix | 7 +++---- pkgs/tools/misc/debian-devscripts/default.nix | 11 +++++++---- pkgs/top-level/all-packages.nix | 3 --- pkgs/top-level/python-packages.nix | 6 +++--- 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/pkgs/applications/audio/morituri/default.nix b/pkgs/applications/audio/morituri/default.nix index 7d7b4e47fad..b9a38ab9d03 100644 --- a/pkgs/applications/audio/morituri/default.nix +++ b/pkgs/applications/audio/morituri/default.nix @@ -1,8 +1,10 @@ -{ stdenv, fetchgit, python, pythonPackages, cdparanoia, cdrdao -, pygobject, gst_python, gst_plugins_base, gst_plugins_good -, setuptools, utillinux, makeWrapper, substituteAll, autoreconfHook }: +{ stdenv, fetchgit, pythonPackages, cdparanoia, cdrdao +, gst_python, gst_plugins_base, gst_plugins_good +, utillinux, makeWrapper, substituteAll, autoreconfHook }: -stdenv.mkDerivation rec { +let + inherit (pythonPackages) python; +in stdenv.mkDerivation rec { name = "morituri-${version}"; version = "0.2.3.20151109"; namePrefix = ""; @@ -14,10 +16,10 @@ stdenv.mkDerivation rec { sha256 = "1sl5y5j3gdbynf2v0gf9dwd2hzawj8lm8ywadid7qm34yn8lx12k"; }; - pythonPath = [ - pygobject gst_python pythonPackages.musicbrainzngs - pythonPackages.pycdio pythonPackages.pyxdg setuptools - pythonPackages.CDDB + pythonPath = with pythonPackages; [ + pygobject gst_python musicbrainzngs + pycdio pyxdg setuptools + CDDB ]; nativeBuildInputs = [ autoreconfHook ]; diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix index da847c0d31b..27fc11946aa 100644 --- a/pkgs/tools/backup/duplicity/default.nix +++ b/pkgs/tools/backup/duplicity/default.nix @@ -1,11 +1,10 @@ -{ stdenv, fetchurl, python, librsync, ncftp, gnupg, boto, makeWrapper -, lockfile, setuptools, paramiko, pycrypto, ecdsa +{ stdenv, fetchurl, pythonPackages, librsync, ncftp, gnupg, makeWrapper }: let version = "0.7.07.1"; -in -stdenv.mkDerivation { + inherit (pythonPackages) boto ecdsa lockfile paramiko pycrypto python setuptools; +in stdenv.mkDerivation { name = "duplicity-${version}"; src = fetchurl { diff --git a/pkgs/tools/misc/debian-devscripts/default.nix b/pkgs/tools/misc/debian-devscripts/default.nix index ea56e59ba89..ece9c5ed382 100644 --- a/pkgs/tools/misc/debian-devscripts/default.nix +++ b/pkgs/tools/misc/debian-devscripts/default.nix @@ -1,10 +1,13 @@ {stdenv, fetchurl, perl, CryptSSLeay, LWP, unzip, xz, dpkg, TimeDate, DBFile -, FileDesktopEntry, libxslt, docbook_xsl, python3, setuptools, makeWrapper +, FileDesktopEntry, libxslt, docbook_xsl, makeWrapper +, python3Packages , perlPackages, curl, gnupg, diffutils , sendmailPath ? "/var/setuid-wrappers/sendmail" }: -stdenv.mkDerivation rec { +let + inherit (python3Packages) python setuptools; +in stdenv.mkDerivation rec { version = "2.16.6"; name = "debian-devscripts-${version}"; @@ -14,13 +17,13 @@ stdenv.mkDerivation rec { }; buildInputs = [ perl CryptSSLeay LWP unzip xz dpkg TimeDate DBFile - FileDesktopEntry libxslt python3 setuptools makeWrapper + FileDesktopEntry libxslt python setuptools makeWrapper perlPackages.ParseDebControl perlPackages.LWPProtocolHttps curl gnupg diffutils ]; preConfigure = '' export PERL5LIB="$PERL5LIB''${PERL5LIB:+:}${dpkg}"; - tgtpy="$out/lib/${python3.libPrefix}/site-packages" + tgtpy="$out/lib/${python.libPrefix}/site-packages" mkdir -p "$tgtpy" export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$tgtpy" find po4a scripts -type f -exec sed -r \ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6158c9ff674..f3352370e19 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1398,7 +1398,6 @@ in duo-unix = callPackage ../tools/security/duo-unix { }; duplicity = callPackage ../tools/backup/duplicity { - inherit (pythonPackages) boto lockfile paramiko ecdsa pycrypto; gnupg = gnupg1; }; @@ -10095,8 +10094,6 @@ in rebol = callPackage ../development/interpreters/rebol { }; - setuptools = pythonPackages.setuptools; - slowaes = pythonPackages.slowaes; twisted = pythonPackages.twisted; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7e62a30a8b0..d713bc9e138 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10836,7 +10836,7 @@ in modules // { # FAIL: test_sanitize_remove_src_javascript (genshi.filters.tests.html.HTMLSanitizerTestCase) doCheck = false; - buildInputs = with self; [ pkgs.setuptools ]; + buildInputs = with self; [ setuptools ]; meta = { description = "Python components for parsing HTML, XML and other textual content"; @@ -10930,7 +10930,7 @@ in modules // { sha256 = "c77d007cc32cdff836ecf8df6192371767976c108a75b055e057bb6f4a09cd42"; }; - buildInputs = with self; [ pkgs.setuptools ] ++ (optional isPy26 argparse); + buildInputs = with self; [ setuptools ] ++ (optional isPy26 argparse); meta = { description = "Automatically generated zsh completion function for Python's option parser modules"; @@ -23705,7 +23705,7 @@ in modules // { PYTHON_EGG_CACHE = "`pwd`/.egg-cache"; - propagatedBuildInputs = with self; [ genshi pkgs.setuptools modules.sqlite3 ]; + propagatedBuildInputs = with self; [ genshi setuptools modules.sqlite3 ]; meta = { description = "Enhanced wiki and issue tracking system for software development projects";