nixpkgs/pkgs/development/python-modules
aszlig 311aa5d8d9
python-wrapper: Handle strings at the beginning.
This should fix #7366 for now, but using the (IMHO) pragmatic approach
of extending the sed expression to recognize strings.

However, this approach is obviously not parsing the full AST, nor does
it wrap Python itself (as pointed out by @spwhitt in #7366) but tries to
match Python strings as best as possible without getting TOO unreadable.

We also use a little bit of Nix to help generating the SED expression,
because doing the whole quote matching block over and over again would
be quite repetitious and error-prone to change. The reason why I'm using
imap here is that we need to have unique labels to avoid jumping into
the wrong branch.

So the new expression is not only able to match continous regions of
triple-quoted strings, but also regions with only one quote character
(even with escaped inner quotes) and empty strings.

However, what it doesn't correctly recognize is something like this:

"string1" "string2" "multi
line
string"

Which is very unlikely that we'll find something like this in the wild.
Of course, we could handle it as well, but it would mean that we need to
substitute the current line into hold space until we're finished parsing
the strings, branch off to another label where we match multiline
strings of all sorts and swap hold/pattern space and finally print the
result. So to summarize: The SED expression would be 3 to 4 times bigger
than now and we gain very little from that.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-04-14 07:13:15 +02:00
..
4suite
blivet Revert "python-packages.nix: updated 'disabled' attributes to reduce the number of evaluation errors in http://hydra.nixos.org/jobset/nixpkgs/trunk#tabs-errors" 2015-02-25 09:23:31 +01:00
boto boto: Apply patch needed to fix docker-registry 2015-03-07 14:06:08 -08:00
box2d
bsddb3
bugzilla
buildout-nix
dbus
distutils-cfg
ecdsa
generic python-wrapper: Handle strings at the beginning. 2015-04-14 07:13:15 +02:00
graph-tool graph-tool: add joelmo to maintainers 2015-04-01 18:16:15 +02:00
gyp
h5py
irclib
libsexy
matplotlib
mpi4py
mygpoclient
numeric
psyco
pycairo Revert "Mark many packages (mostly python) broken because of broken dependencies." 2015-02-25 09:23:31 +01:00
pycangjie
pycdio
pycrypto
pycups
pyexiv2
pygame
pygobject meld: bump to 3.12.3 (latest) version 2015-01-21 22:02:20 +01:00
pygtk
pygtksourceview Adds a new package: cherrytree - A hierarchical note taking application 2015-01-31 02:17:00 +01:00
pylint update pylint, astroid, six, and logilab-common 2015-02-17 11:02:31 +01:00
pyqt
pyside
pyx
pyxml
rbtools rbtools: update to 0.7.1 2015-02-16 16:41:31 -08:00
recursive-pth-loader
rhpl
setuptools
sip
slowaes
stringtemplate
tables
taskw
wxPython
xmpppy
btrees_interger_overflow.patch
fedpkg-buildfix.diff
gevent_sslwrap.patch gevent: update Python 2.7.9 compatibility patch 2015-03-07 19:30:00 +01:00
pyacoustid-py3.patch
pyuv-external-libuv.patch
rpkg-buildfix.diff
sqlalchemy-0.7.10-test-failures.patch
tarsnapper-path.patch
virtualenv-change-prefix.patch