30 lines
940 B
Nix
30 lines
940 B
Nix
{ stdenv, fetchurl, python, wrapPython }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
shortName = "setuptools-${version}";
|
|
name = "${python.executable}-${shortName}";
|
|
|
|
version = "18.2"; # 18.4 breaks python34Packages.characteristic and many others
|
|
|
|
src = fetchurl {
|
|
url = "http://pypi.python.org/packages/source/s/setuptools/${shortName}.tar.gz";
|
|
sha256 = "07avbdc26yl2a46s76fc7m4vg611g8sh39l26x9dr9byya6sb509";
|
|
};
|
|
|
|
buildInputs = [ python wrapPython ];
|
|
doCheck = false; # requires pytest
|
|
installPhase = ''
|
|
dst=$out/${python.sitePackages}
|
|
mkdir -p $dst
|
|
export PYTHONPATH="$dst:$PYTHONPATH"
|
|
${python.interpreter} setup.py install --prefix=$out
|
|
wrapPythonPrograms
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Utilities to facilitate the installation of Python packages";
|
|
homepage = http://pypi.python.org/pypi/setuptools;
|
|
license = [ "PSF" "ZPL" ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|