buildPythonPackage: fix more borken packages

This commit is contained in:
Domen Kožar 2014-02-21 14:29:32 +01:00
parent 567e67f05f
commit f1db57f1fe
5 changed files with 18 additions and 18 deletions

View file

@ -29,6 +29,11 @@ buildPythonPackage {
})
];
preConfigure = ''
# TODO: for now don't a apply gdist overrides, will be needed for shipping icons, gtk, etc
sed -i /distclass/d setup.py
'';
sourceRoot = "quodlibet-${version}";
postUnpack = ''
# the patch searches for plugins in directory ../plugins

View file

@ -72,8 +72,7 @@ python.stdenv.mkDerivation (attrs // {
checkPhase = attrs.checkPhase or ''
runHook preCheck
# reduce output to only dots, if a test fails error output will include verbose info
${python}/bin/${python.executable} setup.py test -q
${python}/bin/${python.executable} setup.py test
runHook postCheck
'';

View file

@ -14,16 +14,15 @@ buildPythonPackage {
doCheck = true;
configurePhase = ''
preConfigure = ''
sed -i "setup.py" \
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${freetype}")|g ;
s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${libjpeg}")|g ;
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${zlib}")|g ;'
'';
buildPhase = "python setup.py build_ext -i";
checkPhase = "python selftest.py";
#installPhase = "python setup.py install --prefix=$out";
buildPhase = "python setup.py build_ext -i";
meta = {
homepage = http://www.pythonware.com/products/pil/;

View file

@ -11,12 +11,6 @@ buildPythonPackage rec {
pythonPath = [ pythonPackages.curses ];
postInstall =
''
# Put the man page in the right place.
mv $out/lib/python*/site-packages/iotop-*/share $out
'';
doCheck = false;
meta = {

View file

@ -1719,6 +1719,7 @@ pythonPackages = modules // import ./python-packages-generated.nix {
};
};
# TODO: this shouldn't use a buildPythonPackage
koji = buildPythonPackage (rec {
name = "koji-1.8";
meta.maintainers = [ stdenv.lib.maintainers.mornfall ];
@ -1728,8 +1729,9 @@ pythonPackages = modules // import ./python-packages-generated.nix {
sha256 = "10dph209h4jgajb5jmbjhqy4z4hd22i7s2d93vm3ikdf01i8iwf1";
};
configurePhase = ":";
buildPhase = ":";
installCommand = "make install DESTDIR=$out/ && cp -R $out/nix/store/*/* $out/ && rm -rf $out/nix";
installPhase = "make install DESTDIR=$out/ && cp -R $out/nix/store/*/* $out/ && rm -rf $out/nix";
doCheck = false;
propagatedBuildInputs = [ pythonPackages.pycurl ];
@ -1748,12 +1750,12 @@ pythonPackages = modules // import ./python-packages-generated.nix {
paver = buildPythonPackage rec {
version = "1.2.1";
version = "1.2.2";
name = "Paver-${version}";
src = fetchurl {
url = "https://pypi.python.org/packages/source/P/Paver/Paver-${version}.tar.gz";
sha256 = "1b1023jks1gi1rwphdy3y2zx7dh4bvwk2050kclp95j7xym1ya0y";
sha256 = "0lix9d33ndb3yk56sm1zlj80fbmxp0w60yk0d9pr2xqxiwi88sqy";
};
buildInputs = [ cogapp mock virtualenv ];
@ -4235,6 +4237,7 @@ pythonPackages = modules // import ./python-packages-generated.nix {
preConfigure = ''
sed -i 's/-faltivec//' numpy/distutils/system_info.py
sed -i '0,/from numpy.distutils.core/s//import setuptools;from numpy.distutils.core/' setup.py
'';
preBuild = ''
@ -5307,14 +5310,14 @@ pythonPackages = modules // import ./python-packages-generated.nix {
});
python_fedora = buildPythonPackage (rec {
name = "python-fedora-0.3.32.3";
name = "python-fedora-0.3.33";
meta.maintainers = [ stdenv.lib.maintainers.mornfall ];
src = fetchurl {
url = "https://fedorahosted.org/releases/p/y/python-fedora/python-fedora-0.3.32.3.tar.gz";
sha256 = "0qwmbid4pkdj6z9gwa43fzs97fr6ci2h2vj1hyk0gp0vqim4kv4l";
url = "https://fedorahosted.org/releases/p/y/python-fedora/${name}.tar.gz";
sha256 = "1g05bh7d5d0gzrlnhpnca7jpqbgs2rgnlzzbvzzxmdbmlkqi3mws";
};
propagatedBuildInputs = [ kitchen requests bunch ];
propagatedBuildInputs = [ kitchen requests bunch paver ];
doCheck = false;
});