1{ stdenv, lib, fetchurl, python, wrapPython }: 2 3stdenv.mkDerivation rec { 4 shortName = "setuptools-${version}"; 5 name = "${python.executable}-${shortName}"; 6 7 version = "19.4"; # 18.4 and up breaks python34Packages.characteristic and many others 8 9 src = fetchurl { 10 url = "http://pypi.python.org/packages/source/s/setuptools/${shortName}.tar.gz"; 11 sha256 = "214bf29933f47cf25e6faa569f710731728a07a19cae91ea64f826051f68a8cf"; 12 }; 13 14 buildInputs = [ python wrapPython ]; 15 doCheck = false; # requires pytest 16 installPhase = '' 17 dst=$out/${python.sitePackages} 18 mkdir -p $dst 19 export PYTHONPATH="$dst:$PYTHONPATH" 20 ${python.interpreter} setup.py install --prefix=$out 21 wrapPythonPrograms 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "Utilities to facilitate the installation of Python packages"; 26 homepage = http://pypi.python.org/pypi/setuptools; 27 license = with lib.licenses; [ psfl zpt20 ]; 28 platforms = platforms.all; 29 }; 30}