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

35 lines
977 B
Nix
Raw Normal View History

{ stdenv, lib, fetchurl, python, wrapPython }:
stdenv.mkDerivation rec {
pname = "setuptools";
shortName = "${pname}-${version}";
name = "${python.libPrefix}-${shortName}";
version = "30.2.0";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${shortName}.tar.gz";
sha256 = "f865709919903e3399343c0b3c42f95e9aeddc41e38cfb334fb2bb5dfa384857";
};
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 17:40:56 +00:00
export PYTHONPATH="$dst:$PYTHONPATH"
2015-11-18 10:46:34 +00:00
${python.interpreter} setup.py install --prefix=$out
wrapPythonPrograms
2013-07-27 18:51:54 +00: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;
priority = 10;
};
}