buildPythonPackage: fix more wheels failures

This commit is contained in:
Domen Kožar 2015-11-19 09:59:31 +01:00
parent 127a20f8da
commit d202585b4c

View File

@ -368,7 +368,7 @@ let
self.pyramid_jinja2 self.pyramid_jinja2
self.pyramid_tm self.pyramid_tm
self.pytz self.pytz
self.sqlalchemy self.sqlalchemy8
self.transaction self.transaction
self.waitress self.waitress
self.webhelpers self.webhelpers
@ -1123,7 +1123,7 @@ let
}; };
buildInputs = with self; [ pkgs.btrfsProgs ]; buildInputs = with self; [ pkgs.btrfsProgs ];
propagatedBuildInputs = with self; [ contextlib2 sqlalchemy9 pyxdg pycparser alembic ] propagatedBuildInputs = with self; [ contextlib2 pyxdg pycparser alembic ]
++ optionals (!isPyPy) [ cffi ]; ++ optionals (!isPyPy) [ cffi ];
meta = { meta = {
@ -2204,6 +2204,12 @@ let
sha256 = "04lqd2i4fjs606b0q075yi9xksk567m0sfph6v6j80za0hvzqyy5"; sha256 = "04lqd2i4fjs606b0q075yi9xksk567m0sfph6v6j80za0hvzqyy5";
}; };
patchPhase = ''
sed -i 's/==/>=/' requirements.txt
'';
propagatedBuildInputs = with self; [ docopt requests2 pygments ];
# Error when running tests: # Error when running tests:
# No local packages or download links found for requests # No local packages or download links found for requests
doCheck = false; doCheck = false;
@ -3807,6 +3813,7 @@ let
checkPhase = '' checkPhase = ''
# Not worth the trouble # Not worth the trouble
rm test/with_dummyserver/test_proxy_poolmanager.py rm test/with_dummyserver/test_proxy_poolmanager.py
rm test/with_dummyserver/test_socketlevel.py
# pypy: https://github.com/shazow/urllib3/issues/736 # pypy: https://github.com/shazow/urllib3/issues/736
rm test/with_dummyserver/test_connectionpool.py rm test/with_dummyserver/test_connectionpool.py
@ -9678,11 +9685,11 @@ let
msrplib = buildPythonPackage rec { msrplib = buildPythonPackage rec {
name = "python-msrplib-${version}"; name = "python-msrplib-${version}";
version = "0.17.0"; version = "0.18.0";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "http://download.ag-projects.com/MSRP/${name}.tar.gz"; url = "http://download.ag-projects.com/MSRP/${name}.tar.gz";
sha256 = "fe6ee541fbb4380a5708d08f378724dbc93438ff35c0cd0400e31b070fce73c4"; sha256 = "0vp9g5p015g3f67rl4vz0qnn6x7hciry6nmvwf82h9h5rx11r43j";
}; };
propagatedBuildInputs = with self; [ eventlib application gnutls ]; propagatedBuildInputs = with self; [ eventlib application gnutls ];
@ -10757,6 +10764,10 @@ let
sha256 = "16jb8x5hbs3g4dq10y6rqc1005bnffwnlws8x7j1d96n7k9mjn8h"; sha256 = "16jb8x5hbs3g4dq10y6rqc1005bnffwnlws8x7j1d96n7k9mjn8h";
}; };
patchPhase = ''
substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='${version}'"
'';
propagatedBuildInputs = with self; propagatedBuildInputs = with self;
[ pyptlib argparse twisted pycrypto pyyaml ]; [ pyptlib argparse twisted pycrypto pyyaml ];
@ -10917,7 +10928,7 @@ let
disabled = isPy3k; disabled = isPy3k;
src = pkgs.fetchgit { src = pkgs.fetchgit {
url = git://gitorious.org/opensuse/osc.git; url = https://github.com/openSUSE/osc;
rev = "6cd541967ee2fca0b89e81470f18b97a3ffc23ce"; rev = "6cd541967ee2fca0b89e81470f18b97a3ffc23ce";
sha256 = "a39ce0e321e40e9758bf7b9128d316c71b35b80eabc84f13df492083bb6f1cc6"; sha256 = "a39ce0e321e40e9758bf7b9128d316c71b35b80eabc84f13df492083bb6f1cc6";
}; };
@ -12898,22 +12909,21 @@ let
disabled = isPy3k; disabled = isPy3k;
postInstall = "ln -s $out/lib/${python.libPrefix}/site-packages $out/lib/${python.libPrefix}/site-packages/PIL"; postInstall = "ln -s $out/${python.sitePackages} $out/${python.sitePackages}/PIL";
preConfigure = '' preConfigure = ''
sed -i "setup.py" \ sed -i "setup.py" \
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ; -e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${pkgs.libjpeg}")|g ; s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${pkgs.libjpeg}")|g ;
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;' s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;'
'' '' + stdenv.lib.optionalString stdenv.isDarwin ''
# Remove impurities # Remove impurities
+ stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace '"/Library/Frameworks",' "" \ --replace '"/Library/Frameworks",' "" \
--replace '"/System/Library/Frameworks"' "" --replace '"/System/Library/Frameworks"' ""
''; '';
checkPhase = "${python}/bin/${python.executable} selftest.py"; checkPhase = "${python.interpreter} selftest.py";
meta = { meta = {
homepage = http://www.pythonware.com/products/pil/; homepage = http://www.pythonware.com/products/pil/;
@ -13617,17 +13627,6 @@ let
--replace '"/usr/lib"' '"${pkgs.binutils}/lib"' --replace '"/usr/lib"' '"${pkgs.binutils}/lib"'
''; '';
# --old-and-unmanageable not supported by this setup.py
installPhase = ''
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
${python}/bin/${python.executable} setup.py install \
--install-lib=$out/lib/${python.libPrefix}/site-packages \
--prefix="$out"
'';
meta = { meta = {
homepage = https://github.com/Groundworkstech/pybfd; homepage = https://github.com/Groundworkstech/pybfd;
description = "A Python interface to the GNU Binary File Descriptor (BFD) library"; description = "A Python interface to the GNU Binary File Descriptor (BFD) library";
@ -14239,8 +14238,7 @@ let
propagatedBuildInputs = with self; [ urlgrabber ]; propagatedBuildInputs = with self; [ urlgrabber ];
checkPhase = '' checkPhase = ''
export PYTHONPATH="$PYTHONPATH:." ${python.interpreter} tests/baseclass.py -vv
${python}/bin/${python.executable} tests/baseclass.py -vv
''; '';
meta = { meta = {
@ -14785,6 +14783,8 @@ let
sha256 = "0hvim60bhgfj91m7pp8jfmb49f087xqlgkqa505zw28r7yl0hcfp"; sha256 = "0hvim60bhgfj91m7pp8jfmb49f087xqlgkqa505zw28r7yl0hcfp";
}; };
propagatedBuildInputs = with self; [ requests2 ];
meta = { meta = {
homepage = "https://github.com/rackspace/pyrax"; homepage = "https://github.com/rackspace/pyrax";
license = licenses.mit; license = licenses.mit;
@ -16749,19 +16749,14 @@ let
version = "2.5.1"; version = "2.5.1";
disabled = isPy3k; disabled = isPy3k;
configurePhase = "find -name 'configure' -exec chmod a+x {} \\; ; find -name 'aconfigure' -exec chmod a+x {} \\; ; ${python}/bin/${python.executable} setup.py build_ext --pjsip-clean-compile";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "http://download.ag-projects.com/SipClient/python-${name}.tar.gz"; url = "http://download.ag-projects.com/SipClient/python-${name}.tar.gz";
sha256 = "0vpy2vss8667c0kp1k8vybl38nxp7kr2v2wa8sngrgzd65m6ww5p"; sha256 = "0vpy2vss8667c0kp1k8vybl38nxp7kr2v2wa8sngrgzd65m6ww5p";
}; };
propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib lxml ]; propagatedBuildInputs = with self; [ cython pkgs.openssl dns dateutil xcaplib msrplib lxml ];
buildInputs = with pkgs; [ alsaLib ffmpeg libv4l pkgconfig sqlite libvpx ]; buildInputs = with pkgs; [ alsaLib ffmpeg libv4l pkgconfig sqlite libvpx ];
installPhase = "${python}/bin/${python.executable} setup.py install --prefix=$out";
doCheck = false; doCheck = false;
}; };
@ -21405,17 +21400,18 @@ let
}; };
jenkins-job-builder = buildPythonPackage rec { jenkins-job-builder = buildPythonPackage rec {
name = "jenkins-job-builder-1.2.0"; name = "jenkins-job-builder-1.3.0";
disabled = ! (isPy26 || isPy27); disabled = ! (isPy26 || isPy27);
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "https://pypi.python.org/packages/source/j/jenkins-job-builder/${name}.tar.gz"; url = "https://pypi.python.org/packages/source/j/jenkins-job-builder/${name}.tar.gz";
md5 = "79e44ef0d3fffc19f415d8c0caac6b7b"; sha256 = "111vpf6hzzb2mcdqi0a9r1dkf28ln9w6sgfqri0qxwf1ffbdqx6x";
}; };
# pbr required for jenkins-job-builder is <1.0.0 while many of the test patchPhase = ''
# dependencies require pbr>=1.1 sed -i '/ordereddict/d' requirements.txt
doCheck = false; export HOME=$TMPDIR
'';
buildInputs = with self; [ buildInputs = with self; [
pip pip
@ -21423,10 +21419,12 @@ let
propagatedBuildInputs = with self; [ propagatedBuildInputs = with self; [
pbr pbr
mock
python-jenkins python-jenkins
pyyaml pyyaml
six six
] ++ optionals isPy26 [ ] ++ optionals isPy26 [
ordereddict
argparse argparse
ordereddict ordereddict
]; ];