about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python
Commit message (Collapse)AuthorAge
* buildPython*: add updateScript to passthruFrederik Rietdijk2018-12-07
| | | | | | | | All Python packages now have an updateScript. The script calls `update-python-libraries` and passes it the position of the derivation expression obtained using `meta.position`. This works fine in case a Nix expression represents only a single derivation. If there are more in it, `update-python-libraries` will fail.
* Merge master into staging-nextFrederik Rietdijk2018-11-18
|\
| * Enable cross compilation for cpython 2.7 (#50245)Travis Athougies2018-11-15
| |
* | Revert "Python: reduce amount of warnings when building with `buildPython*`"Frederik Rietdijk2018-11-12
| | | | | | | | | | | | Turns out that many packages' testsuites rely on the default warnings setup. This reverts commit c1e003ff2f8a43189d48b7194ec8556aa3d88641.
* | python27: add patch to fix CVE-2018-1000802Franz Pletz2018-11-11
| |
* | Merge master into staging-nextFrederik Rietdijk2018-11-10
|\|
| * python34: removeFrederik Rietdijk2018-11-04
| | | | | | | | | | | | | | | | Python 3.4 will receive it's final patch release in March 2019 and there won't be any releases anymore after that, so also not during NixOS 2019.03. Python 3.4 is not used anymore in Nixpkgs. In any case, migrating code from 3.4 to 3.4+ is trivial.
* | Python: reduce amount of warnings when building with `buildPython*`Frederik Rietdijk2018-11-04
| | | | | | | | | | | | | | By default all warnings were printed. This occasionally resulted in a lot of warnings leading to builds being killed. This commit reduces the amount of warnings printed.
* | python37: 3.7.0 -> 3.7.1Frederik Rietdijk2018-10-20
| |
* | python36: 3.6.6 -> 3.6.7Frederik Rietdijk2018-10-20
|/
* python.buildEnv: new argument `makeWrapperArgs`Frederik Rietdijk2018-10-13
| | | | | | `python.buildEnv` would already wrap executables exporting `PYTHONHOME`. With this change, it is possible to pass in additional arguments to the underlying `makeWrapper`.
* Merge remote-tracking branch 'upstream/master' into stagingJohn Ericson2018-09-26
|\
| * python-*: Format `pythonPackages` bindingsJohn Ericson2018-09-25
| |
* | stdenv/darwin: integrate a new CoreFoundationDan Peebles2018-09-15
|/ | | | | This also updates the bootstrap tool builder to LLVM 5, but not the ones we actually use for bootstrap. I'll make that change in a subsequent commit so as to provide traceable provenance of the bootstrap tools.
* treewide: Remove usage of remaining redundant platform compatability stuffJohn Ericson2018-08-30
| | | | | Want to get this out of here for 18.09, so it can be deprecated thereafter.
* python35: 3.5.5 -> 3.5.6Frederik Rietdijk2018-08-02
|
* python34: 3.4.8 -> 3.4.9Frederik Rietdijk2018-08-02
|
* pypy: 5.10 -> 6.0Cray Elliott2018-08-01
|
* python-boot: add error message when accessing python.pkgsDaiderd Jordan2018-07-27
|
* Merge staging-next into master (#44009)Frederik Rietdijk2018-07-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * substitute(): --subst-var was silently coercing to "" if the variable does not exist. * libffi: simplify using `checkInputs` * pythonPackges.hypothesis, pythonPackages.pytest: simpify dependency cycle fix * utillinux: 2.32 -> 2.32.1 https://lkml.org/lkml/2018/7/16/532 * busybox: 1.29.0 -> 1.29.1 * bind: 9.12.1-P2 -> 9.12.2 https://ftp.isc.org/isc/bind9/9.12.2/RELEASE-NOTES-bind-9.12.2.html * curl: 7.60.0 -> 7.61.0 * gvfs: make tests run, but disable * ilmbase: disable tests on i686. Spooky! * mdds: fix tests * git: disable checks as tests are run in installcheck * ruby: disable tests * libcommuni: disable checks as tests are run in installcheck * librdf: make tests run, but disable * neon, neon_0_29: make tests run, but disable * pciutils: 3.6.0 -> 3.6.1 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/pciutils/versions. * mesa: more include fixes mostly from void-linux (thanks!) * npth: 1.5 -> 1.6 minor bump * boost167: Add lockfree next_prior patch * stdenv: cleanup darwin bootstrapping Also gets rid of the full python and some of it's dependencies in the stdenv build closure. * Revert "pciutils: use standardized equivalent for canonicalize_file_name" This reverts commit f8db20fb3ae382eba1ba2b160fe24739f43c0bd7. Patching should no longer be needed with 3.6.1. * binutils-wrapper: Try to avoid adding unnecessary -L flags (cherry picked from commit f3758258b8895508475caf83e92bfb236a27ceb9) Signed-off-by: Domen Kožar <domen@dev.si> * libffi: don't check on darwin libffi usages in stdenv broken darwin. We need to disable doCheck for that case. * "rm $out/share/icons/hicolor/icon-theme.cache" -> hicolor-icon-theme setup-hook * python.pkgs.pytest: setupHook to prevent creation of .pytest-cache folder, fixes #40273 When `py.test` was run with a folder as argument, it would not only search for tests in that folder, but also create a .pytest-cache folder. Not only is this state we don't want, but it was also causing collisions. * parity-ui: fix after merge * python.pkgs.pytest-flake8: disable test, fix build * Revert "meson: 0.46.1 -> 0.47.0" With meson 0.47.0 (or 0.47.1, or git) things are very wrong re:rpath handling resulting in at best missing libs but even corrupt binaries :(. When we run patchelf it masks the problem by removing obviously busted paths. Which is probably why this wasn't noticed immediately. Unfortunately the binary already has a long series of paths scribbled in a space intended for a much smaller string; in my testing it was something like lengths were 67 with 300+ written to it. I think we've reported the relevant issues upstream, but unfortunately it appears our patches are what introduces the overwrite/corruption (by no longer being correct in what they assume) This doesn't look so bad to fix but it's not something I can spend more time on at the moment. -- Interestingly the overwritten string data (because it is scribbled past the bounds) remains in the binary and is why we're suddenly seeing unexpected references in various builds -- notably this is is the reason we're seeing the "extra-utils" breakage that entirely crippled NixOS on master (and probably on staging before?). Fixes #43650. This reverts commit 305ac4dade5758c58e8ab1666ad0197fd305828d. (cherry picked from commit 273d68eff8f7b6cd4ebed3718e5078a0f43cb55d) Signed-off-by: Domen Kožar <domen@dev.si>
* pkgs/*: remove unreferenced function argumentsvolth2018-07-21
|
* [bot]: remove unreferenced codevolth2018-07-20
|
* Merge branch 'master' into staging-nextVladimír Čunát2018-07-14
|\ | | | | | | Hydra: ?compare=1468896
| * Merge pull request #42894 from LnL7/darwin-python37Daiderd Jordan2018-07-09
| |\ | | | | | | python37: fix darwin build
| | * python37: fix darwin buildDaiderd Jordan2018-07-09
| | |
| * | Add type_getattro.patch because it is no longer downloadable (#43130)Orivej Desh2018-07-06
| | | | | | | | | See https://github.com/NixOS/nixpkgs/commit/f2f7c4287ff257e7c219737b0d7416a7965c0c3e
* | | python37: apply distutils patchDmitry Kalinkin2018-07-03
| | |
* | | python36: fix on darwinDmitry Kalinkin2018-07-03
| | | | | | | | | | | | Fixes: 78e05215a7 ('python36: 3.6.5 -> 3.6.6')
* | | Merge branch 'master' into stagingVladimír Čunát2018-07-02
|\| | | | | | | | | | | This apparently fixes some broken src fetches (gnuradio, twisted).
| * | python37: fix openssl detectionJörg Thalheim2018-07-01
| |/ | | | | | | | | Before python37 was build without ssl support. Tested with `python -c 'import ssl'`
* | Merge branch 'master' into stagingVladimír Čunát2018-06-30
|\|
| * python36: fix version in identifierAndy Dirnberger2018-06-28
| |
| * python37: 3.7.0rc1 -> 3.7.0Frederik Rietdijk2018-06-28
| |
* | python36: 3.6.5 -> 3.6.6Frederik Rietdijk2018-06-28
|/
* python37: init at 3.7.0rc1Frederik Rietdijk2018-06-25
|
* python: Fix upstream bugs #27177 and #25750Timo Kaufmann2018-06-02
| | | | | 27177 was merged but not backported to 2.7. There is currently an open PR for 25750.
* python: 2.7.14 -> 2.7.15 (bugfix + security)Vladimír Čunát2018-05-09
| | | | | | | | Fixes CVE-2018-1000030, /cc #38993. The ncurses patch no longer applied, and it appears the problems have been resolved upstream https://bugs.python.org/issue25720 https://github.com/python/cpython/commit/6ba0b583d67
* Merge pull request #39576 from veprbl/pr/py3_distutils_fixMatthew Justin Bauer2018-05-09
|\ | | | | python3: add C++ compiler support for distutils
| * python3: add C++ compiler support for distutilsDmitry Kalinkin2018-04-26
| | | | | | | | | | This implements 095095c4 ('python: add C++ compiler support for distutils') for python3. Should fix various problems with python packages on darwin.
* | Merge pull request #39627 from veprbl/pr/python_issue24658Matthew Justin Bauer2018-05-01
|\ \ | | | | | | python35, python36: fix reading large files on darwin
| * | python35, python36: fix reading large files on darwinDmitry Kalinkin2018-04-27
| |/
* | Merge pull request #39464 from oxij/stdenv/docheck-infraMichael Raskin2018-04-30
|\ \ | |/ |/| stdenv: implement most of #33599
| * stdenv: steal `checkInputs` from buildPythonPackageJan Malakhovski2018-04-26
| | | | | | | | | | | | | | | | | | | | | | Note that a bunch of non-python packages use this attribute already. Some of those are clearly unaware of the fact that this attribute does not exists in stdenv because they define it but don't to add it to their `bulidInputs` :) Also note that I use `buildInputs` here and only handle regular builds because python and haskell builders do it this way and I'm not sure how to properly handle the cross-compilation case.
| * buildPythonPackage: use `config.doCheckByDefault`Jan Malakhovski2018-04-26
| |
* | cpython: don't use lchmod() on Linux, fix w/muslWill Dietz2018-04-25
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upstream issue: https://bugs.python.org/issue31940 There are two PR's proposed to fix this, but both seem to be stalling waiting for review. I previously used what appears to be the favored of the two approaches[1] to fix this, with plan of keeping it musl-only until PR was merged. However, while writing up a commit message explaining the problem and why it needed fixing... I investigated a bit and found it increasingly hard to justify anything other than ... simply not using lchmod. Here's what I found: * lchmod is non-POSIX, seems BSD-only these days * Functionality of lchmod isn't supported on Linux * best scenario on Linux would be an error * POSIX does provide lchmod-esque functionality with fchmodat(), which AFAICT is generally preferred. * Python intentionally overlooks fchmodat()[2] electing instead to use lchmod() behavior as a proxy for whether fchmodat() "works". I'm not sure I follow their reasoning... * both glibc and musl provide lchmod impls: * glibc returns ENOSYS "not implemented" * musl implements lchmod with fchmodat(), and so returns EOPNOTSUPP "op not supported" * Python doesn't expect EOPNOTSUPP from lchmod, since it's not valid on BSD's lchmod. * "configure" doesn't actually check lchmod usefully, instead checks for glibc preprocessor defines to indicate if the function is just a stub[3]; somewhat fittingly, if the magic macros are defined then the next line of the C source is "choke me", causing the compiler to trip, fall, and point a finger at whatever is near where it ends up. (somewhat amusing, but AFAIK effective way to get an error :P) I'm leaving out links to threads on mailing lists and such, but for now I hope I've convinced you (or to those reading commit history: explained my reasons) that this is a bit of a mess[4]. And so instead of making a big mess messier, and with hopes of never thinking about this again, I propose we simply tell Python "don't use lchmod" on Linux. [1] https://github.com/python/cpython/pull/4783 [2] https://github.com/python/cpython/blob/28453feaa8d88bbcbf6d834b1d5ca396d17265f2/Lib/os.py#L144 [3] https://github.com/python/cpython/blob/28453feaa8d88bbcbf6d834b1d5ca396d17265f2/configure#L2198 [4] Messes happen, no good intention goes unpunished :).
* tree-wide: disable `doCheck` and `doInstallCheck` where it fails (the ↵Jan Malakhovski2018-04-25
| | | | trivial part)
* python: flit: 0.13 -> 1.0Frederik Rietdijk2018-04-08
|
* python3: 3.6.4 -> 3.6.5Frederik Rietdijk2018-03-30
|
* python*: set thread stack size on muslWill Dietz2018-03-20
| | | | | | | | | | | | | Ensure recursion limit is reached before stack overflow. Python does this for OSX and BSD: https://github.com/python/cpython/blob/13ff24582c99dfb439b1af7295b401415e7eb05b/Python/thread_pthread.h#L22 Size of 1MB chosen to match value in Alpine: https://git.alpinelinux.org/cgit/aports/commit/main/python2/APKBUILD?id=2f35283fec8ec451fe5fb477dd32ffdcc0776e89 Manual testing via Alpine's test-stacksize.py crashes on these previously, and works with these changes.
* pythonPackages.tkinter: fix darwin buildJosef Kemetmüller2018-03-18
|