nixpkgs/pkgs/development/python-modules/setuptools/default.nix

33 lines
977 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, python, wrapPython }:
stdenv.mkDerivation rec {
shortName = "setuptools-${version}";
2013-07-27 20:51:54 +02:00
name = "${python.executable}-${shortName}";
version = "19.4"; # 18.4 and up breaks python34Packages.characteristic and many others
src = fetchurl {
url = "mirror://pypi/s/setuptools/${shortName}.tar.gz";
sha256 = "214bf29933f47cf25e6faa569f710731728a07a19cae91ea64f826051f68a8cf";
};
2015-11-18 11:46:34 +01:00
buildInputs = [ python wrapPython ];
doCheck = false; # requires pytest
installPhase = ''
dst=$out/${python.sitePackages}
mkdir -p $dst
2015-07-15 19:40:56 +02:00
export PYTHONPATH="$dst:$PYTHONPATH"
2015-11-18 11:46:34 +01:00
${python.interpreter} setup.py install --prefix=$out
wrapPythonPrograms
2013-07-27 20:51:54 +02:00
'';
pythonPath = [];
meta = with stdenv.lib; {
description = "Utilities to facilitate the installation of Python packages";
homepage = http://pypi.python.org/pypi/setuptools;
license = with lib.licenses; [ psfl zpt20 ];
platforms = platforms.all;
};
}