nixpkgs/pkgs/development/python-modules
aszlig ff15c31c37
python-wrapper: Fix handling __future__ imports.
The bazaar package is still broken even with 5f01cc7, because __future__
imports need to be the first imports before anything else. So this time
I'm going to make the sed expression with explicit branching so we can
properly match all the occasions we want to skip and insert the line
modifying sys.argv[0] only _once_ and leave the command block after
that one substitution. So no ugly swaps between hold and pattern space.

The label which is resonsible for not escaping the command block is "r"
and we jump to it as long as we need to skip something from the start of
the file.

While at it, I'm not only skipping every line with __future__ in it but
also backslashes at the end of the line, so for example:

```python
from __future__ import shiny_feature1, \
                       shiny_feature2, \
                       shiny_feature3
```

... will now be properly skipped as well.

Tested against bazaar and nixops.

Thanks to @edolstra for reporting this.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-07-29 06:40:39 +02:00
..
4suite 4suite: mark as broken 2014-06-22 20:52:52 +02:00
blivet Fix a bunch of Hydra evaluation errors 2013-10-07 17:36:47 +02:00
bsddb3 Move all db4 packages to the default db5 2014-02-15 12:03:02 +01:00
buildout-nix zc_buildout_nix: update to 2.2.1 2013-11-21 12:30:04 +01:00
dbus Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
distutils-cfg pythonPackages: distutils-cfg, allow to override config 2014-03-13 11:33:11 +01:00
ecdsa electrum: initial expression 2014-03-23 11:22:57 -04:00
generic python-wrapper: Fix handling __future__ imports. 2014-07-29 06:40:39 +02:00
gyp python-gyp: Fix no-xcode.patch for Darwin. 2013-09-27 15:52:44 +02:00
irclib Even more mirror:// fixes 2013-07-14 04:17:07 +03:00
libsexy * Reverted most of the recent Python refactorings, as discussed. It's 2010-04-21 10:51:15 +00:00
mygpoclient added platform meta information to gpodder 2014-07-22 09:39:06 +02:00
numeric * Reverted most of the recent Python refactorings, as discussed. It's 2010-04-21 10:51:15 +00:00
pil Create a PIL symlink when installing PIL so the recommended way of importing PIL.something works 2014-06-11 10:01:15 +04:00
psyco * Reverted most of the recent Python refactorings, as discussed. It's 2010-04-21 10:51:15 +00:00
pycairo pycairo: fix for python-3.4 by LFS patches 2014-05-20 12:44:09 +02:00
pycangjie Add pycangjie 2014-02-02 14:54:40 +01:00
pycrypto Merge #2638: fix weechat build on darwin 2014-06-09 19:37:06 +02:00
pycups * Update pycups, PyQt and SIP. 2011-07-21 20:14:17 +00:00
pyexiv2 add jbrout, a photo manager using IPTC keywords/EXIF 2011-08-22 20:26:11 +00:00
pygame Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
pygobject pygobject3: update 3.10.2 -> 3.12.1 2014-05-20 13:37:09 +02:00
pygtk Update pygtk to 2.24.0 to fix CPU pegging issues in xpra 2014-05-08 00:53:07 +12:00
pylint pylint: update to version 1.2.1 2014-05-13 16:11:06 +02:00
pyopenssl pyopenssl: update from 0.13 to 0.13.1, potentially fixes CVE-2013-4314 2013-12-04 05:26:34 +02:00
pyqt kde4(10).pykde4: fix build via downgrading sip and pyqt4 2014-01-16 08:59:31 +01:00
pyside More description fixes 2013-10-06 12:01:38 +02:00
pyx Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
pyxml * Reverted most of the recent Python refactorings, as discussed. It's 2010-04-21 10:51:15 +00:00
rbtools Move namePrefix="" python packages out of python-packges.nix 2013-07-31 13:34:11 +02:00
recursive-pth-loader recursive-pth-loader: fix python path 2013-09-08 22:07:20 +02:00
rhpl python-rhpl: fix mirror. unfortunately can't use mirror://fedora for this because this is a very old 2013-07-14 02:08:54 +03:00
setuptools fix pypy and pypyPackages 2014-03-07 14:34:06 +01:00
sip kde4(10).pykde4: fix build via downgrading sip and pyqt4 2014-01-16 08:59:31 +01:00
slowaes Fix tarball 2014-03-24 00:16:42 -04:00
stringtemplate * Reverted most of the recent Python refactorings, as discussed. It's 2010-04-21 10:51:15 +00:00
tables tables: Define license 2014-07-05 21:41:04 +02:00
wxPython Add wxPython-3.0 with OpenGL support. 2014-03-25 22:35:25 +01:00
xmpppy Even more mirror:// fixes 2013-07-14 04:17:07 +03:00
boto-1.9-python-2.7.patch * Applied a patch to get Euca2ools / Boto to work on Python 2.7. 2011-10-21 15:01:40 +00:00
fedpkg-buildfix.diff Add fedpkg, koji &c. + their python dependencies. 2014-02-08 14:37:53 +01:00
rpkg-buildfix.diff Add fedpkg, koji &c. + their python dependencies. 2014-02-08 14:37:53 +01:00
sqlalchemy-0.7.10-test-failures.patch sqlalchemy: add the patch so that things work, you know 2013-07-28 17:13:19 +02:00
tarsnapper-path.patch pythonPackages.tarsnapper: New expression 2014-01-25 10:30:35 +00:00
virtualenv-change-prefix.patch #492 python-virtualenv: make modules of the python wrapper available 2014-04-18 18:08:49 +02:00