summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python
AgeCommit message (Collapse)Author
2022-10-28Merge master into staging-nextgithub-actions[bot]
2022-10-28python3Packages: stdenv does not have to be a Python moduleFrederik Rietdijk
stdenv is included in the package set. It does not provide a Python module however and was therefore catched by the test. Because we do need it we provide an exception for it.
2022-10-28Revert "python3: pin to openssl_1_1"ajs124
This reverts commit 8dfc998207dca2e2928cd1f204e4f37444aa40a6.
2022-10-27Merge staging-next into stagingFrederik Rietdijk
2022-10-27pythonPackages: ensure all derivations provide python modulesFrederik Rietdijk
This adds a test to ensure no new uses of `buildPythonApplication` can be added to `python-packages.nix`. Python packages can be grouped into two groups: 1) applications and 2) packages providing importable modules. In `python-packages.nix` we only want to have 2). 1) should be in the top-level package set. To achieve this, all setup hooks need to be marked as being a setup hook. For the setup hooks in the Python packages set this is done by creating a new builder, `makePythonHook`. Because there were issues with splicing, the file importing all the hooks is converted to an extension. All non-packages were moved out of `python-packages.nix` into `python-packages-base.nix`. The `keep` argument to `makeScopeWithSplicing was cleaned up as well; there is no need to keep this one manually in sync reducing the risk of breaking cross-compilation.
2022-10-25Merge staging-next into staginggithub-actions[bot]
2022-10-25python311: 3.11.0-rc2 -> 3.11.0Martin Weinelt
https://www.python.org/downloads/release/python-3110/ https://discuss.python.org/t/python-3-11-0-final-is-now-available/20291
2022-10-17Merge staging-next into staginggithub-actions[bot]
2022-10-17Merge master into staging-nextgithub-actions[bot]
2022-10-17pypy: fix executable name for 3.9Jörg Thalheim
2022-10-17Merge staging-next into staginggithub-actions[bot]
2022-10-17Merge master into staging-nextgithub-actions[bot]
2022-10-17pypy: 7.3.7 -> 7.3.9Jörg Thalheim
2022-10-17buildPythonPackage: better error message if no setuptools is used.Jörg Thalheim
Before packages did not had to set `format = "other";` if had a custom installPhase and would not produce a dist folder. The current error message is hard to understand by new users: > Executing pythonOutputDistPhase > mv: cannot stat 'dist': No such file or directory This commit improves the error message.
2022-10-16Merge staging-next into staginggithub-actions[bot]
2022-10-16Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt
2022-10-15pythonInterpreters: get self from __splicedPackagesArtturin
BEFORE: the python derivation did not contain .nativeDrv and .crossDrv because it was not from the __splicedPackages set the python used in mk-python-derivation.nix was for host ``` nix-repl> pkgsCross.aarch64-multiplatform.python3Packages.xpybutil.nativeBuildInputs [ «derivation /nix/store/bhz39ds4v02hn6x4py4mzjyilw4a589h-python3-aarch64-unknown-linux-gnu-3.10.7.drv» «derivation /nix/store/v880cnh4ml7czmivfbk3cdh93hz9yvbn-hook.drv» «derivation /nix/store/f243ab7wv92gqsmc9h7gr0qcnj0xcgdb-hook.drv» «derivation /nix/store/880lf8895bzn8d94lrr2y7ilgkxq0lc4-python-remove-tests-dir-hook.drv» «derivation /nix/store/fzjnhawfs1wpw58hcd1vxd9y750dc08y-python-remove-bin-bytecode-hook.drv» «derivation /nix/store/n8l59iparx98yfw8g5ydqmzmk3fdic75-setuptools-setup-hook.drv» «deri→ ``` AFTER: the python derivation does contain .nativeDrv and .crossDrv because it is from the __splicedPackages set those 2 are what makes nativeBuildInputs and buildInputs function properly the python used in mk-python-derivation.nix is for build ``` nix-repl> pkgsCross.aarch64-multiplatform.python3Packages.xpybutil.nativeBuildInputs [ «derivation /nix/store/hvb9yxgv1133cfhxxd869sibldvv2vdx-python3-3.10.7.drv» «derivation /nix/store/v880cnh4ml7czmivfbk3cdh93hz9yvbn-hook.drv» «derivation /nix/store/f243ab7wv92gqsmc9h7gr0qcnj0xcgdb-hook.drv» «derivation /nix/store/880lf8895bzn8d94lrr2y7ilgkxq0lc4-python-remove-tests-dir-hook.drv» «derivation /nix/store/fzjnhawfs1wpw58hcd1vxd9y750dc08y-python-remove-bin-bytecode-hook.drv» «derivation /nix/store/n8l59iparx98yfw8g5ydqmzmk3fdic75-setuptools-setup-hook.drv» «derivation /nix/store/7vyhynla→ ```
2022-10-15pythonInterpreters: don't use with pkgsArtturin
2022-10-15Merge staging-next into staginggithub-actions[bot]
2022-10-15Merge master into staging-nextgithub-actions[bot]
2022-10-14python37: 3.7.14 -> 3.7.15Martin Weinelt
https://docs.python.org/release/3.7.15/whatsnew/changelog.html
2022-10-14python39: 3.9.14 -> 3.9.15Martin Weinelt
http://docs.python.org/release/3.9.15/whatsnew/changelog.html
2022-10-14python310: 3.10.7 -> 3.10.8Martin Weinelt
https://docs.python.org/release/3.10.8/whatsnew/changelog.html
2022-10-14python38: 3.8.14 -> 3.8.15Martin Weinelt
http://docs.python.org/release/3.8.15/whatsnew/changelog.html
2022-10-13Merge branch 'master' into stagingVladimír Čunát
2022-10-12update-python-libraries: enable nix commandAlyssa Ross
Since the Nix command used is an implementation detail of the script, it's the script that will have to be updated if the command changes, it's the script that should be opting into this, rather than making the user do it globally.
2022-10-12update-python-libraries: remove old Nix fallbackAlyssa Ross
Since c0972c16dcb ("update-python-libraries: add missing dependency nix"), Nix will be provided as a dependency, so we know we'll always be using a modern version and no longer need the fallback.
2022-10-11rustpython: unstable-2021-12-09 -> unstable-2022-10-11Pascal Bach
2022-10-10treewide: optional -> optionals where the argument is a listArtturin
the argument to optional should not be list
2022-10-10treewide: *Flags convert to list from strArtturin
*Flags implies a list slightly relevant: > stdenv: start deprecating non-list configureFlags https://github.com/NixOS/nixpkgs/pull/173172 the makeInstalledTests function in `nixos/tests/installed-tests/default.nix` isn't available outside of nixpkgs so it's not a breaking change
2022-10-09Merge pull request #181764 from mweinelt/glibc-without-libcryptMartin Weinelt
2022-10-09Merge staging-next into staginggithub-actions[bot]
2022-10-09cpython: fix build with libxcryptFranz Pletz
2022-10-09update-python-libraries: add missing dependency nixRyan Mulligan
nix is needed for nix-prefetch-url
2022-10-04pythonPackages.buildPython*: also output dist when using wheelFrederik Rietdijk
Typically the actual wheel will be unchanged, but it is possible we use the relax deps hook modifying the wheel.
2022-10-04pythonPackages.pythonRelaxDepsHook: cleanup unpacked folderFrederik Rietdijk
or it will end up in the dist output.
2022-09-29Merge pull request #193528 from cidkidnix/android-cpythJohn Ericson
android: cpython: fix stdenv.cc.cc.libllvm
2022-09-29cpython: fix stdenv.cc.cc.libllvmcidkidnix
2022-09-25Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt
2022-09-24pythonDocs: fix evalK900
2022-09-23Merge pull request #192624 from FRidh/hooks-crossArtturi
2022-09-23Python hooks: use spliced packages in hooksFrederik Rietdijk
This fixes issues when cross-compiling.
2022-09-23pythonDocs: bring back pname+version, allow script to be executed from anywhereSandro Jäckel
2022-09-23pythonDocs: 3.7 -> 3.10Spencer Baugh
Also include texinfo docs for Python 3 (they aren't generated for Python 2) A few minor fixes had to be made to generate.sh as well.
2022-09-20Revert "Revert "buildPython*: store dist (wheel/sdist) in dist output""Frederik Rietdijk
Most packages were fixed on python-unstable. This reverts commit 0a4898c21a04336bf9919da3ec95050890e77e5b.
2022-09-20Revert "Revert "buildPython*: wrap setuptools in hook for catching conflicts""Frederik Rietdijk
Most packages were fixed up on python-unstable branch. This reverts commit 3ff2d9362ce18cab4bebd6ebf17892e431df34e2.
2022-09-19Revert "buildPython*: wrap setuptools in hook for catching conflicts"Frederik Rietdijk
Revert for now and fix on python-unstable branch. This reverts commit 13bb0f49f7afe8296452d70e7782ac1d67b064da.
2022-09-19Revert "buildPython*: store dist (wheel/sdist) in dist output"Frederik Rietdijk
Revert for now and fix on python-unstable branch. This reverts commit adbc59c9d3b6be2cdb1c29b84afa8b30d9cc7593.
2022-09-13Merge staging-next into staginggithub-actions[bot]
2022-09-13buildPython*: wrap setuptools in hook for catching conflictsFrederik Rietdijk
By default buildPython* runs a hook for detecting conflicting packages. This hook needs pkg_resources which is part of setuptools. Before this commit, setuptools was simply added to the build. This meant that when setuptools was forgotten to be added to the build, the build and installation would still succeed because of this package from the hook. During runtime (and cross-compilation) one would notice the missing package.