about summary refs log tree commit diff
path: root/pkgs/development/interpreters/python
AgeCommit message (Collapse)AuthorFilesLines
2023-12-29python/hooks: fix `test` attribute evalSergei Trofimovich1-1/+2
Without the change `tests` attribute fails the eval as: $ nix build --no-link -f. pypy27Packages.pypaBuildHook.tests error: 69| # versions of this hook's dependencies. 70| passthru.tests = import ./pypa-build-hook-tests.nix { | ^ Fixed file name and added missing runCommand import.
2023-12-12python3.pkgs.buildsetupcfg: Remove function from python-packages-base.nixadisbladis1-5/+0
This function is not, and never have been, used anywhere inside nixpkgs, outside of bootstrapping setupcfg2nix itself. It was added in https://github.com/NixOS/nixpkgs/pull/38778 by @shlevy. It has no out-of-tree users on Github either. External breakage is not expected.
2023-12-08python312: 3.12.0 -> 3.12.1Martin Weinelt1-2/+2
https://docs.python.org/release/3.12.1/whatsnew/changelog.html Fixes: CVE-2023-6507
2023-12-02update-python-libraries: quiet nix stderr outputMartin Weinelt1-1/+2
We query lots of derivation attributes, most of which do not exist, so logging stderr causes a lot of noise for no gain.
2023-12-02update-python-libraries: format with black/isortMartin Weinelt1-125/+164
2023-12-02update-python-libraries: add package changelog to commit messageMartin Weinelt1-0/+3
2023-12-02update-python-libraries: don't update packages with cargoDepsMartin Weinelt1-0/+2
This is unsupported and breaks packages on update.
2023-11-28cpython: restore passthru.testsMartin Weinelt1-1/+3
Fixes a regression from #261323, where all `passthru.tests` were overwritten.
2023-11-26Merge pull request #269255 from prusnak/rustpython-darwinPavol Rusnak1-0/+5
rustpython: mark broken on x86_64-darwin
2023-11-25python/hooks: use python.pythonVersion to support PyPyAlexandre Macabies1-1/+1
f292ef4 introduced a check for the Python version but uses `.version`, which isn't friendly to other Pythons like PyPy which use versions strings like 7.3, failing the >=3.10 check. Using `.pythonVersion` fixes this check. Co-authored-by: Pierre Bourdon <delroth@gmail.com>
2023-11-23python313: 3.13.0a1 -> 3.13.0a2Martin Weinelt1-2/+2
https://www.python.org/downloads/release/python-3130a2/
2023-11-22rustpython: mark broken on x86_64-darwinPavol Rusnak1-0/+5
2023-11-22rustpython: 0.2.0 -> 0.3.0Gaetan Lepage2-497/+687
2023-11-18Revert "python2/mk-python-derivation: disable catchConflictsHook"Martin Weinelt1-2/+1
This reverts commit 397a8fd06bd576cae7f1fae71dbfd9fbce30dc66. The hook now uses the old implementation based on the deprecated pkg_resources library provided by setuptools again.
2023-11-18python/hooks: restore catchConflictHook for python<3.10Martin Weinelt2-2/+39
By restoring and diverting to the old version. Previously the newer language features and use of more modern stdlib imports broke the hook on Python<3.10.
2023-11-17python2/mk-python-derivation: disable catchConflictsHookK9001-1/+2
It's broken on Py2. Hopefully people still using 2 know what they're doing?
2023-11-14Merge master into staging-nextgithub-actions[bot]1-2/+2
2023-11-14Merge pull request #265710 from ShamrockLee/lib-copy-function-argsSilvan Mosberger1-2/+2
lib.mirrorFunctionArgs: init
2023-11-09Merge staging-next into staginggithub-actions[bot]1-0/+5
2023-11-09lib.systems: elaborate Rust metadataAlyssa Ross1-5/+3
We need this stuff to be available in lib so make-derivation.nix can access it to construct the Meson cross file. This has a couple of other advantages: - It makes Rust less special. Now figuring out what Rust calls a platform is the same as figuring out what Linux or QEMU call it. - We can unify the schema used to define Rust targets, and the schema used to access those values later. Just like you can set "config" or "system" in a platform definition, and then access those same keys on the elaborated platform, you can now set "rustcTarget" in your crossSystem, and then access "stdenv.hostPlatform.rustcTarget" in your code. "rustcTarget", "rustcTargetSpec", "cargoShortTarget", and "cargoEnvVarTarget" have the "rustc" and "cargo" prefixes because these are not exposed to code by the compiler, and are not standardized. The arch/os/etc. variables are all named to match the forms in the Rust target spec JSON. The new rust.target-family only takes a list, since we don't need to worry about backwards compatibility when that name is used. The old APIs are all still functional with no warning for now, so that it's possible for external code to use a single API on both 23.05 and 23.11. We can introduce the warnings once 23.05 is EOL, and make them hard errors when 23.11 is EOL.
2023-11-08python2: fix build with clang 16 on x86_64-darwinRandy Eckenrode1-0/+5
Apply the patch to fix using libutil.h instead of util.h on Darwin for `forkpty` and `openpty`.
2023-11-08Merge staging-next into staginggithub-actions[bot]8-34/+35
2023-11-08python3Packages.sphinxHook: fix eval after merge of ↵Fabián Heredia Montiel1-1/+1
bc2d5988780f02c26daea44016df56a1dc4fb8e2
2023-11-08Merge branch 'master' into staging-nextAdam Joseph8-33/+34
2023-11-07Merge branch 'staging-next' into stagingWeijia Wang2-3/+6
2023-11-07makeOverridablePythonPackage: preserve function argumentsYueh-Shun Li1-2/+2
2023-11-07python: deprecate pythonForBuild in favor of pythonOnBuildForHostAdam Joseph1-3/+4
2023-11-06Merge branch 'master' into staging-nextWeijia Wang1-2/+5
2023-11-05treewide: change pythonForBuild to pythonOnBuildForHostAdam Joseph7-30/+30
2023-11-04python: add python.pythonOnBuildForHostAdam Joseph1-2/+5
2023-11-04Merge branch 'master' into staging-nextWeijia Wang1-1/+1
2023-11-04python311Packages.python-docs-theme: rename from python_docs_themenatsukium1-1/+1
2023-10-30buildPythonPackage: port catch-conflicts to importlib.metadataMartin Weinelt2-14/+18
To escape the pkg_resources API deprecation: > catch-conflicts.py:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Also remove exceptions for the previus bootstrap packages.
2023-10-19python3.pkgs.buildPython*: allow overriding of the stdenvFrederik Rietdijk1-3/+4
With this change it is possible to pass in `stdenv` directly to `buildPython*` or override it using e.g. ``` numpy.overridePythonAttrs(_: { stdenv = clangStdenv; }) ```
2023-10-18Merge staging-next into staginggithub-actions[bot]3-1/+120
2023-10-18Merge master into staging-nextgithub-actions[bot]3-1/+120
2023-10-17python313: init at 3.13.0a1Martin Weinelt3-1/+120
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0-alpha-1
2023-10-17Merge staging-next into staginggithub-actions[bot]1-2/+6
2023-10-17Merge master into staging-nextgithub-actions[bot]1-2/+6
2023-10-16python3*: Add `meta.pkgConfigModules` and testMeet Barot1-2/+6
2023-10-13Merge staging-next into staginggithub-actions[bot]2-1/+299
2023-10-13python311: fix cross to/from musl (#260641)Yureka2-1/+299
The situation: Python <3.11: under Linux the abi string is always -gnu* Python 3.11-3.12: musl is treated as its own abi in the python build system, but when cross-compiling the build host's libc is used for the target abi string. Cross compiling from glibc to musl gives a -gnu* target abi string and vice versa. Python >=3.13: musl is treated as its own abi, and when cross-compiling the target libc is used for the target abi string We backport the fix for python 3.11-3.12, since the intermediate state is almost impossible to model in the nix expression
2023-10-13Merge pull request #258223 from OroraTech/fix/propagated-sphinxArtturi2-2/+5
2023-10-09Merge staging-next into staginggithub-actions[bot]1-18/+15
2023-10-09Merge master into staging-nextgithub-actions[bot]1-18/+15
2023-10-09python: simplify ABI name detectionYureka1-18/+15
2023-10-03python311: 3.11.5 -> 3.11.6Martin Weinelt1-2/+2
https://docs.python.org/release/3.11.6/whatsnew/changelog.html
2023-10-02Merge master into staging-nextgithub-actions[bot]1-2/+2
2023-10-02python312: 3.12.0-rc3 -> 3.12.0Martin Weinelt1-2/+2
https://docs.python.org/dev/whatsnew/3.12.html https://docs.python.org/release/3.12.0/whatsnew/changelog.html
2023-09-30python3Packages.sphinxHook: Avoid propagating sphinxLeandro Reina2-2/+5
Fixes some side effects of #249157 (see #255810)