1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00
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 New package: python-box2d. The Python bindings of the c++ game physics library box2. 2014-10-25 17:05:28 +02:00
bsddb3 bsddb3: update from 6.0.1 to 6.1.0 2014-11-17 18:07:17 +00:00
bugzilla Add python-bugzilla 1.1.0. 2014-11-30 16:48:51 +01:00
buildout-nix
dbus pypy: handle unsupported packages 2014-09-12 00:26:50 +02:00
distutils-cfg
ecdsa Fix many package descriptions 2014-08-24 22:31:37 +02:00
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 h5py: Change description 2014-09-04 18:48:08 +02:00
irclib
libsexy
matplotlib matplotlib: be consistent 2015-01-17 15:24:54 +01:00
mpi4py mpi4py: Disable for Python3 and PyPy 2014-09-07 19:44:08 +02:00
mygpoclient Turn more licenses into lib.licenses style 2014-11-06 00:48:16 +00:00
numeric Fix many package descriptions 2014-08-24 22:31:37 +02:00
psyco
pycairo Revert "Mark many packages (mostly python) broken because of broken dependencies." 2015-02-25 09:23:31 +01:00
pycangjie
pycdio Add 'pycdio', a Python wrapper for libcdio. 2014-11-07 21:26:53 +01:00
pycrypto pycrypto: preConfigure patch ups 2015-01-03 07:53:08 -05:00
pycups pycups: update package 2014-11-14 16:30:53 +03:00
pyexiv2
pygame pygame: fix build, add all deps, use buildPythonPackage 2014-11-26 21:50:58 +01:00
pygobject meld: bump to 3.12.3 (latest) version 2015-01-21 22:02:20 +01:00
pygtk pygtk: disable on py3k 2014-08-26 14:41:44 +02:00
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 pyqt4: update from 4.10.2 to 4.11.3 2014-12-24 13:59:57 +01:00
pyside
pyx
pyxml
rbtools rbtools: update to 0.7.1 2015-02-16 16:41:31 -08:00
recursive-pth-loader
rhpl use rpmextract in some packages 2014-10-20 03:16:59 +04:00
setuptools setuptools: 5.8 -> 7.0 2014-11-30 20:42:06 +01:00
sip sip-4.16: update from 4.16.1 to 4.16.4 2014-12-22 23:36:55 +01:00
slowaes
stringtemplate
tables
taskw Add python-taskw 0.8.6. 2014-11-30 16:48:51 +01:00
wxPython pythonPackages.runsnakerun: add performance/memory GUI profiler for python 2014-11-04 18:19:27 +01:00
xmpppy
btrees_interger_overflow.patch python3Packages.BTrees: fix build on i686-linux 2014-08-26 10:47:22 +02:00
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 Fix build of 'pyacoustid' under Python 3. 2015-01-19 18:42:23 +01:00
pyuv-external-libuv.patch
rpkg-buildfix.diff
sqlalchemy-0.7.10-test-failures.patch
tarsnapper-path.patch
virtualenv-change-prefix.patch