30 lines
983 B
Nix
30 lines
983 B
Nix
{ stdenv, lib, fetchurl, python, wrapPython }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
shortName = "setuptools-${version}";
|
|
name = "${python.executable}-${shortName}";
|
|
|
|
version = "19.4"; # 18.4 and up breaks python34Packages.characteristic and many others
|
|
|
|
src = fetchurl {
|
|
url = "https://pypi.python.org/packages/source/s/setuptools/${shortName}.tar.gz";
|
|
sha256 = "214bf29933f47cf25e6faa569f710731728a07a19cae91ea64f826051f68a8cf";
|
|
};
|
|
|
|
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 = with lib.licenses; [ psfl zpt20 ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|