setuptools: cleanup expression
This commit is contained in:
parent
f900231042
commit
d0809c2925
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, python, wrapPython, distutils-cfg }:
|
{ stdenv, fetchurl, python, wrapPython }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
shortName = "setuptools-${version}";
|
shortName = "setuptools-${version}";
|
||||||
@ -11,25 +11,16 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "07avbdc26yl2a46s76fc7m4vg611g8sh39l26x9dr9byya6sb509";
|
sha256 = "07avbdc26yl2a46s76fc7m4vg611g8sh39l26x9dr9byya6sb509";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ python wrapPython distutils-cfg ];
|
buildInputs = [ python wrapPython ];
|
||||||
|
doCheck = false; # requires pytest
|
||||||
buildPhase = "${python}/bin/${python.executable} setup.py build";
|
installPhase = ''
|
||||||
|
dst=$out/${python.sitePackages}
|
||||||
installPhase =
|
|
||||||
''
|
|
||||||
dst=$out/lib/${python.libPrefix}/site-packages
|
|
||||||
mkdir -p $dst
|
mkdir -p $dst
|
||||||
export PYTHONPATH="$dst:$PYTHONPATH"
|
export PYTHONPATH="$dst:$PYTHONPATH"
|
||||||
${python}/bin/${python.executable} setup.py install --prefix=$out --install-lib=$out/lib/${python.libPrefix}/site-packages
|
${python.interpreter} setup.py install --prefix=$out
|
||||||
wrapPythonPrograms
|
wrapPythonPrograms
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # requires pytest
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
${python}/bin/${python.executable} setup.py test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Utilities to facilitate the installation of Python packages";
|
description = "Utilities to facilitate the installation of Python packages";
|
||||||
homepage = http://pypi.python.org/pypi/setuptools;
|
homepage = http://pypi.python.org/pypi/setuptools;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user