summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python
AgeCommit message (Collapse)Author
2023-08-09Merge staging-next into staginggithub-actions[bot]
2023-08-09cpython: fix _PYTHON_SYSCONFIGDATA_NAME on armv7l with musl (#240770)Ben Wolsieffer
Python always uses "gnu" prefixed ABI names, and this patch handles this by doing a musl->gnu string replacement. With pkgsCross.armv7l-hf-multiplatform.pkgsStatic, the previous name was: _sysconfigdata__linux_arm-linux-gnu Now, the corrected name is: _sysconfigdata__linux_arm-linux-gnueabihf
2023-08-08Merge staging-next into staginggithub-actions[bot]
2023-08-08cpython: use correct variable to set meta.mainProgramSandro Jäckel
2023-08-05Merge pull request #247245 from Artturin/passthrufunthng1Adam Joseph
Revert "Revert "python3: splice python within python3Packages.callPackage""
2023-08-05Revert "Revert "python3: splice python within python3Packages.callPackage""Artturin
This reverts commit 2ffca30cded859fdbde6f1ae4685e29f92c20424. `793cc9d982415b71cdba729cf779bfc49e9d2ae7` `python3: splice python within python3Packages.callPackage` Was reverted because it broke `pkgsCross.aarch64-multiplatform.python3Packages.cryptography` But by reverting the revert `pkgsCross.aarch64-multiplatform.python3Packages.cryptography` still builds. I tried reverting the 2 cryptography update commits, and it still worked, so I do not know why this would work now.
2023-08-03Merge master into staging-nextgithub-actions[bot]
2023-08-01treewide: Add meta.mainProgramRobert Hensing
Based on ofborg feedback. Part of https://github.com/NixOS/nixpkgs/pull/246386
2023-07-28Revert "lib.customisation: uncurry makeScopeWithSplicing"Silvan Mosberger
2023-07-28lib.makeScopeWithSplicing: provide default for keep,extraArtturin
These are often unneeded by the user.
2023-07-28python3.pkgs.pypaBuildHook: initDoron Behar
2023-07-28pip-build-hook.sh: Support $pipBuildFlagsDoron Behar
2023-07-28Merge pull request #212795 from Cynerd/setuptools-rust-hookAdam Joseph
Setuptools rust hook for cross compilation
2023-07-27lib.customisation: uncurry makeScopeWithSplicingAdam Joseph
Deeply-curried functions are pretty error-prone in untyped languages like Nix. This is a particularly bad case because `top-level/splice.nix` *also* declares a makeScopeWithSplicing, but it takes *two fewer arguments*. Let's switch to attrset-passing form, to provide some minimal level of sanity-checking.
2023-07-27Merge staging-next into staginggithub-actions[bot]
2023-07-27Revert "python3: splice python within python3Packages.callPackage"Adam Joseph
2023-07-27Merge staging-next into staginggithub-actions[bot]
2023-07-26Merge pull request #245475 from Artturin/splicepython1Artturi
2023-07-26Merge staging-next into staginggithub-actions[bot]
2023-07-26python3: splice python within python3Packages.callPackageArtturin
`lib.extends hooks pythonPackagesFun` includes python which we want to splice what this fixes: ``` nix-repl> lib.elemAt pkgsCross.aarch64-multiplatform.python3Packages.xpybutil.nativeBuildInputs 0 «derivation /nix/store/39dkb51rciw6zwg0c2c44gpmpjapddxc-python3-aarch64-unknown-linux-gnu-3.10.12.drv» ``` to ``` nix-repl> lib.elemAt pkgsCross.aarch64-multiplatform.python3Packages.xpybutil.nativeBuildInputs 0 «derivation /nix/store/21ldw2dp26xvv9iyxn9x77a8yh4waqz5-python3-3.10.12.drv» ``` Before https://github.com/NixOS/nixpkgs/pull/194205 The keep python used to work by accident because self was passed from __splicedPackages https://github.com/NixOS/nixpkgs/pull/196052/files#diff-44ce3495c4f983ce64dd47c86a9d3e77bad210b2709c098a3806998dcd9b000bR213 But now it does not work because overrideAttrs is used on python in python-packages-base.nix Preferably we would [ splice the hooks too ](https://github.com/NixOS/nixpkgs/pull/228139) but we cannot do that until [Package sets within derivations (i.e. python3.pkgs) are not spliced](https://github.com/NixOS/nixpkgs/issues/211340) is fixed, because people often use `python3.pkgs.wrapPython` in `nativeBuildInputs` (it's correct but python3.pkgs should be python3Packages to get splicing.
2023-07-25Merge pull request #243074 from mweinelt/cpython-3.12.0b4Nick Cao
python312: 3.12.0b3 -> 3.12.0b4
2023-07-22Merge staging-next into staginggithub-actions[bot]
2023-07-22Merge pull request #239624 from Stunkymonkey/use-optionalString-thenFelix Bühler
treewide: use optionalString instead of 'then ""'
2023-07-20Merge pull request #153527 from andersk/python3-symlinksSandro
python3: Add manpage symlink to fix ‘man python’
2023-07-19python3: Add manpage symlink to fix ‘man python’Anders Kaseorg
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2023-07-12python312: 3.12.0b3 -> 3.12.0b4Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0b4 Fixes: CVE-2023-27043
2023-07-02Merge pull request #196802 from jneem/manylinuxJanik
2023-07-02pythonManylinuxPackages: add libz and expatJoe Neeman
These libs aren't mentioned in PEP 513, but auditwheel allows them (https://github.com/pypa/auditwheel/issues/152) and so built wheels may depend on them.
2023-06-30setuptools-rust: fix cross compilationKarel Kočí
The setuptools-rust requires some environment variables to really perform cross build, otherwise it just builds for build platform. This adds setup hook that introduces these environment variables. There are three variables. The PYO3_CROSS_LIB_DIR has to point to the target's Python library directory. This has to be directory for the target not for the build or host. We have to choose the correct target Python. I am unsure how to do that simply in nixpkgs and this this implementations just delays this and waits for the correct Python when package using this hook is build. The CARGO_BUILD_TARGET triggers cross compilation in setuptools-rust. This is simply the Rust target specification. The CARGO_TARGET_*_LINKER variable should not be essentially required but setuptools-rust probably mangles the Rust build environment somewhat and that results to the missing linker. By explicitly specifying it using the environment variable we force the correct linker.
2023-06-25treewide: use optionalAttrs instead of 'else {}'Felix Buehler
2023-06-24treewide: use optionalString instead of 'then ""'Felix Buehler
2023-06-22python311Packages.tkinter: fix runtime error on darwinWeijia Wang
2023-06-21python312: 3.12.0b2 -> 3.12.0b3Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0b3
2023-06-09Merge staging-next into staginggithub-actions[bot]
2023-06-07python311: 3.11.3 -> 3.11.4Martin Weinelt
https://docs.python.org/release/3.11.4/whatsnew/changelog.html Fixes: CVE-2023-24329
2023-06-07python310: 3.10.11 -> 3.10.12Martin Weinelt
https://docs.python.org/release/3.10.12/whatsnew/changelog.html Fixes: CVE-2023-24329
2023-06-07python38: 3.8.16 -> 3.8.17Martin Weinelt
https://docs.python.org/release/3.8.17/whatsnew/changelog.html Fixes: CVE-2023-24329
2023-06-07python39: 3.9.16 -> 3.9.17Martin Weinelt
https://docs.python.org/release/3.9.17/whatsnew/changelog.html Fixes: CVE-2023-24329
2023-06-07python312: 3.12.0b1 -> 3.12.0b2Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0b2
2023-06-05cypthon: moduralize so it can be called with other versionsDomen Kožar
2023-06-05python: add conditionals to be able to compile with 3.6 or olderDomen Kožar
2023-06-03python3.doc: build offline documentationDmitry Bogatov
Since python documentation requires Sphinx to build, documentation is built in separate derivation to avoid hard recursion/bootstrapping questions and plugged into main derivation. Care is taken that "python3.doc" derivation feels and looks as close as possible to as if it were main derivation were multi-output one. This change does not cause rebuild of python3 itself.
2023-05-31python3.pkgs.fetchPypi: deprecate in favor of top-level fetchPypifigsoda
2023-05-23python312: 3.12.0a7 -> 3.12.0b1Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0b1
2023-05-09Merge staging-next into staginggithub-actions[bot]
2023-05-07update-python-libraries: Fix some issuesMartin Weinelt
discovered by ruff and pyright.
2023-05-04python: implement PEP 668 (#229166)Jonas Chevalier
Add a marker file to the python outputs that tells pip and other tooling following PEP 668 that they should not be installing things system-wide. This provides better feedback to the user and also potentially avoids issues in single-user installs where the /nix/store is owned by the user. For more details, see <https://peps.python.org/pep-0668/> Here is how it currently looks like: $ pip install requests error: externally-managed-environment × This environment is externally managed ╰─> This command has been disabled as it tries to modify the immutable `/nix/store` filesystem. To use Python with Nix and nixpkgs, have a look at the online documentation: <https://nixos.org/manual/nixpkgs/stable/#python>.
2023-05-03Merge pull request #226937 from rhendric/rhendric/update-python-librariesMartin Weinelt
update-python-libraries: escape vars in regexes
2023-05-01cpython: add loongarch tripletsjackyliu16
using patch ref on: https://github.com/python/cpython/issues/90656 to add loongarch triplets for using cpython in loongarch Note: This patch is being reviewed by cpython
2023-04-28Merge pull request #120220 from grahamc/python-kvetch-on-mismatchArtturi