pep257 is a static analysis tool for checking compliance with Python PEP 257.
I stay with pep257-0.3.2 because newer versions does nos satisfy requirements
for pytest-pep257.
Fixes creating of admin accounts, which is used by NixOps to deploy new
servers. Props to @rbvermaa for reporting the issue and testing it with
NixOps.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Regression introduced by 5f55788531.
The commit not only changes documentation, but also changed a few
variable names. One of them is $i which now is $f and it contains the
name of the file to wrap.
This was accidentally found by @Profpatsch (thanks!) who found himself
getting the basename of the last patch file to end up in sys.argv[0].
The reason for this is that $i is used in the for loop of the generic
patchPhase and thus is reused later when the Python file is to be
wrapped.
I have also added a small comment noting about this, to be sure that
this won't accidentally occur the next time someone changes variable
names.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
namebench expects to be run from its own source tree (it uses relative
paths to various resources), make it work.
The current version fails like this:
$ ./result/bin/namebench.py
Traceback (most recent call last):
File "/nix/store/04d29llycr5xcxplfv4gn556nzm1mrl7-python2.7-namebench-1.0.5/bin/.namebench.py-wrapped", line 46, in <module>
(options, supplied_ns, global_ns, regional_ns) = config.GetConfiguration()
File "/nix/store/04d29llycr5xcxplfv4gn556nzm1mrl7-python2.7-namebench-1.0.5/lib/python2.7/site-packages/libnamebench/config.py", line 27, in GetConfiguration
(configured_options, global_ns, regional_ns) = ProcessConfigurationFile(options)
File "/nix/store/04d29llycr5xcxplfv4gn556nzm1mrl7-python2.7-namebench-1.0.5/lib/python2.7/site-packages/libnamebench/config.py", line 100, in ProcessConfigurationFile
general = dict(config.items('general'))
File "/nix/store/z6vp5aix4ks1zdjdry7v7dahg8dd02sy-python-2.7.10/lib/python2.7/ConfigParser.py", line 642, in items
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'general'
Fixes:
- Emacs Control-T key binding.
- Color fix for Windows consoles.
New features:
- Allow both booleans and Filters in many places.
- `password` can be a Filter now.
- added ghc-import, smartypants and typogrify packages. last 2 needed as
a dependency for pelican buildInputs
- updated pelican to 3.6.0 and enable tests
- added myself (garbas) as maintainer to bunch of packages which I use.
- removed usage if python.isPypy and replace it with isPyPy
Fixes:
- Fix in output_screen_diff: reset correctly.
- Ignore flush errors in vt100_output.
- Implemented <num>gg Vi key binding.
- Bug fix in the renderer when the style changes.
New features:
- TokenListControl can now display the cursor somewhere.
- Added SwitchableValidator class.
- print_tokens function added.
- get_style argument for Application added.
- KeyBindingManager got an enable_all argument.
Backwards incompatible changes:
- history_search is now a SimpleFilter instance.
This reverts commit b26de39252.
We no longer need this version because Chromium now builds with the
latest gyp version, see 58fd4f672f.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
It was an experiment by @garbas in 2014 that has been forgotten
because of other, newer experiments.
Packages also weren't updated so we shouldn't let them rot in nixpkgs.
neovim:
- possibility to extend neovim (via .override) and passing extraPythonPackages
or extraPython3Packages
- neovim's python interpreter can be found as nvim-python / nvim-python3
- wrapping nvim binary and setting `g:python_host_prog` and
`g:python3_host_prog` via --cmd flag
python-packages.nix fixes:
- ordereddict builds for py26 and uses disabled argument to tell this
- trollius builds on all python platforms except 3.4 (where is included in
standard librarary)
- neovim builds on all python platforms
This allows youtube-dl to support all versions of python, and be built
correctly even when the python version is overridden by the user.
An alias to youtube-dl has been added which points to the default python
version's youtube-dl.
Also, ffmpeg has been made into an optional dependency. If ffmpeg is set
to 'null' then it will not be built and there will be no wrapper for it
either. An extra package, youtube-dl-light, is the same as youtube-dl
but without the ffmpeg dependency.
Many (less easily automatically converted) old-style strings
remain.
Where there was any possible ambiguity about the exact version or
variant intended, nothing was changed. IANAL, nor a search robot.
Use `with stdenv.lib` wherever it makes sense.
New features:
- Add support for auto-completing view names
- Add support for building RPM and DEB packages
- Add subsequence matching for completion
- Completion for built-in tables and temporary tables are suggested after
entering a prefix of pg_
- Add place holder doc strings for special commands that are planned for
implementation
- Updated version of prompt_toolkit, now matching braces are highlighted
- Added support of \\e command. Queries can be edited in an external editor
- Add special command \dT to show datatypes
- Add auto-completion support for datatypes in CREATE, SELECT etc
- Improve the auto-completion in WHERE clause with logical operators
Bug Fixes:
- Fix the table formatting while printing multi-byte characters
- Fix a crash when pg_catalog was present in search path
- Fixed a bug that broke \e when prompt_tookit was updated
- Fix the display of triggers as shown in the \d output
- Fix broken auto-completion for INNER JOIN, LEFT JOIN etc
- Fix incorrect super() calls in pgbuffer, pgtoolbar and pgcompleter
- Add missing schema completion for CREATE and DROP statements
- Minor fixes around cursor cleanup
- Typos: meta.maintainer -> meta.maintainers, licences -> license, ...
- Remove unnecessary stdenv.lib (already in scope for entire file)
- [ maintainers.foo maintainers.bar ] -> with maintainers; [ foo bar ]
Doing so even for single-maintainer packages makes it slightly
more inviting to add others, which can only be a good thing.
Works around regression from a305e6855d.
We're also marking it lowPrio to make sure nobody will accidentally
reference it using nix-env -i.
Until we have fixed#7402, we're going to build with the old gyp version
to prevent being affected by https://crbug.com/462153.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This reverts commit 6e8d1f84f2.
pysqlite is not available for Python 3. Adding it to buildInputs
makes all packages dependent upon sqlalchemy equally unavailable
for no good reason.
S3QL is a file system that stores all its data online using storage
services like Google Storage, Amazon S3, or OpenStack. S3QL effectively
provides a hard disk of dynamic, infinite capacity that can be accessed
from any computer with internet access running Linux, FreeBSD or OS-X.
S3QL is a file system that stores all its data online using storage
services like Google Storage, Amazon S3, or OpenStack. S3QL effectively
provides a hard disk of dynamic, infinite capacity that can be accessed
from any computer with internet access running Linux, FreeBSD or OS-X.
This script gives status information for code repositories found
recursively under a root directory. In particular, it tells whether
there are uncommitted changes, untracked files, unpushed or unpulled
commits. Thanks to the -u option, it is also useful to fetch updates
for all the remotes in the encountered repositories.
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>
Needed to be able to run 'make serve' in a pelican directory, else this
happens:
$ make serve
cd /home/bfo/pelican-test/output && python -m pelican.server
/run/current-system/sw/bin/python: No module named markupsafe
make: *** [serve] Error 1
Regression introduced by 56a6f22d7f.
I'm temporarily pulling in test_mccabe.py, as suggested by someone at
flintwork/mccabe#31, which for now should fix the build (and the tests
of course as well).
Signed-off-by: aszlig <aszlig@redmoonstudios.org>