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 4suite: mark as broken 2014-06-22 20:52:52 +02:00
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 zc_buildout_nix: update to 2.2.1 2013-11-21 12:30:04 +01:00
dbus pypy: handle unsupported packages 2014-09-12 00:26:50 +02:00
distutils-cfg pythonPackages: distutils-cfg, allow to override config 2014-03-13 11:33:11 +01:00
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 python-gyp: Fix no-xcode.patch for Darwin. 2013-09-27 15:52:44 +02:00
h5py h5py: Change description 2014-09-04 18:48:08 +02:00
irclib Even more mirror:// fixes 2013-07-14 04:17:07 +03:00
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 Add pycangjie 2014-02-02 14:54:40 +01:00
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 freecad: updating to 0.14 2014-08-01 16:56:27 +02:00
pyx Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
pyxml
rbtools rbtools: update to 0.7.1 2015-02-16 16:41:31 -08:00
recursive-pth-loader recursive-pth-loader: fix python path 2013-09-08 22:07:20 +02:00
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 Fix tarball 2014-03-24 00:16:42 -04:00
stringtemplate
tables tables: Define license 2014-07-05 21:41:04 +02:00
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 Even more mirror:// fixes 2013-07-14 04:17:07 +03:00
btrees_interger_overflow.patch python3Packages.BTrees: fix build on i686-linux 2014-08-26 10:47:22 +02:00
fedpkg-buildfix.diff Add fedpkg, koji &c. + their python dependencies. 2014-02-08 14:37:53 +01:00
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 python-pyuv: new package 2014-08-22 21:57:14 +02: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