1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 09:53:17 +00:00
nixpkgs/pkgs/development/python-modules/setuptools/default.nix

31 lines
940 B
Nix
Raw Normal View History

2015-11-18 10:46:34 +00:00
{ stdenv, fetchurl, python, wrapPython }:
stdenv.mkDerivation rec {
shortName = "setuptools-${version}";
2013-07-27 19:51:54 +01:00
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";
};
2015-11-18 10:46:34 +00:00
buildInputs = [ python wrapPython ];
doCheck = false; # requires pytest
installPhase = ''
dst=$out/${python.sitePackages}
mkdir -p $dst
2015-07-15 18:40:56 +01:00
export PYTHONPATH="$dst:$PYTHONPATH"
2015-11-18 10:46:34 +00:00
${python.interpreter} setup.py install --prefix=$out
wrapPythonPrograms
2013-07-27 19:51:54 +01:00
'';
meta = with stdenv.lib; {
description = "Utilities to facilitate the installation of Python packages";
homepage = http://pypi.python.org/pypi/setuptools;
2014-01-24 15:27:36 +00:00
license = [ "PSF" "ZPL" ];
platforms = platforms.all;
};
}