summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python
AgeCommit message (Collapse)Author
2023-04-28mkPythonDerivation: validate propagatedBuildInputs use a matching pythonArtturin
mkPythonDerivation: apply checks to buildInputs as well fixup: add a suggestion about nativeBuildInputs Clean up the wording, add reasons for the suggestions switch to throw Adjust error to clarify build-time vs. run-time
2023-04-18update-python-libraries: escape vars in regexesRyan Hendrickson
2023-04-09Merge staging-next into staginggithub-actions[bot]
2023-04-09pypy*: fixup buildVladimír Čunát
https://hydra.nixos.org/build/215259697 This is most likely fallout from PR #209870
2023-04-08Merge staging-next into staginggithub-actions[bot]
2023-04-06python311: 3.11.2 -> 3.11.3Martin Weinelt
https://docs.python.org/release/3.11.3/whatsnew/changelog.html
2023-04-05python310: 3.10.10 -> 3.10.11Martin Weinelt
https://docs.python.org/release/3.10.11/whatsnew/changelog.html
2023-04-05python312: 3.12.0a6 -> 3.12.0a7Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0-alpha-7
2023-03-26tree-wide: convert rust with git deps to importCargoLockYureka
2023-03-08python312: 3.12.0a5 -> 3.12.0a6Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0-alpha-6
2023-03-07rustpython: fix build on aarch64-linuxMario Rodas
2023-03-07rustpython: 2022-10-11 -> 0.2.0Mario Rodas
2023-03-04Merge pull request #208636 from wegank/python-frameworksuperherointj
python3: allow enabling framework on darwin
2023-02-27update-python-libraries: Improve code qualityMartin Weinelt
- Prune unused imports - Collect imports at the top - Removed unused exception assignments - Fill bare except clause with - Expand overly long check_output lines
2023-02-27update-python-libraries: Make the hash replacement more robustMartin Weinelt
Retrieve the current package hash and use it for a more precise match, which allows us to update a derivation in situation where multiple hashes are present.
2023-02-27update-python-libraries: Allow packages to deny bulk updatesMartin Weinelt
By settings `passthru.skipBulkUpdate = true` in a python package, it will be excluded from bulk update runs. This is useful in case of fragile packages, that require special attention during updates.
2023-02-27update-python-libraries: Add support for fetchgitMartin Weinelt
Previously when packages that required the git fetcher were updated, we would wrongly rely on `nix-prefetch-url`, which would reliable break the hash. Instead we need to use `nix-prefetch-git` to determine the proper hash, when the relevant attributes are present.
2023-02-26Merge pull request #217558 from winterqt/pypy3-fix-site-packagesMartin Weinelt
pypy3{8,9}: fix sitePackages
2023-02-26pypy: Use hash everywhereMartin Weinelt
Fixes the build after cpython switched to hash.
2023-02-25pypy3{8,9}: fix sitePackagesWinter
When PyPy introduced Python 3.8 support with version 7.3.6, they also migrated to using CPython's directory layout [0]: > The 3.8 package now uses the same layout as CPython, and many of the PyPy-specific changes to `sysconfig`, `distutils.sysconfig`, and `distutils.commands.install.py` have been removed. The stdlib now is located in `<base>/lib/pypy3.8` on `posix` systems... When we upgraded past this version and added Python 3.8 support [1], the `sitePackages` value was never updated, leading `bootstrapped-pip` to fail to build, because wheel was trying to be located in `$out/site-packages`, when it was actually installed to `$out/lib/pypy3.8/site-packages`. [0]: https://www.pypy.org/posts/2021/10/pypy-v736-release.html [1]: eec28b8cfd7923a876fb47af8a0459c1a550fd97
2023-02-23Merge remote-tracking branch 'origin/master' into staging-nextAlyssa Ross
Conflicts: pkgs/development/libraries/pmdk/default.nix
2023-02-22treewide: move NIX_CFLAGS_COMPILE to the env attrsetArtturin
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
2023-02-15Merge staging-next into staginggithub-actions[bot]
2023-02-15Merge staging-next into staginggithub-actions[bot]
2023-02-14treewide: use lib.optionalsFelix Buehler
2023-02-13treewide: use optionalStringFelix Buehler
2023-02-13python2: fix evalAlyssa Ross
Fixes: ee90eca180f ("cpython: Migrate sha256 occurences to hash")
2023-02-12python3.tests.nixenv-virtualenv: Fix on darwinMartin Weinelt
The virtualenv mode is trying to be smart and checks whether it can write to $out, which for some reason fails on darwin. > virtualenv: error: argument dest: the destination . is not write-able at /nix/store But what does work is creating it in the pwd and moving it to $out, because mv just does what it is told.
2023-02-11python3.tests.condaExamplePackage: Exclude on non-linuxMartin Weinelt
Allow python3.tests to eval on other platforms than linux, by excluding conda tests when not on linux, because they include alsa-lib, which is linux-only.
2023-02-11cpython: Migrate sha256 occurences to hashMartin Weinelt
2023-02-11python311: 3.11.1 -> 3.11.2Martin Weinelt
https://docs.python.org/release/3.11.2/whatsnew/changelog.html
2023-02-11python310: 3.10.9 -> 3.10.10Martin Weinelt
https://docs.python.org/release/3.10.10/whatsnew/changelog.html
2023-02-11python39: Move out of sources attrsetMartin Weinelt
2023-02-10Merge pull request #208537 from Artturin/makesetuphooksupportstrictdepsArtturi
2023-02-09Merge staging-next into staginggithub-actions[bot]
2023-02-08python312: 3.12.0a3 -> 3.12.0a5Martin Weinelt
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0-alpha-4 https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0-alpha-5
2023-02-07treewide: makeSetupHook deps -> propagatedBuildInputsArtturin
2023-02-07makeSetupHook: support depsTargetTargetPropagatedArtturin
2023-02-05Merge staging-next into staginggithub-actions[bot]
2023-02-04Merge pull request #209622 from NickCao/python311-crosssuperherointj
python311: fix cross compilation
2023-02-03Merge pull request #211685 from Artturin/splicingstuff1-splitArtturi
2023-02-03rustpython: unbreak on x86_64-darwinWeijia Wang
2023-02-02buildPython*: allow overriding disabled packagesAlyssa Ross
Previously: nix-repl> python3.pkgs.WSME error: WSME-0.11.0 not supported for interpreter python3.10 nix-repl> python3.pkgs.WSME.overridePythonAttrs (_: { disabled = false; }) error: WSME-0.11.0 not supported for interpreter python3.10 Now: nix-repl> python3.pkgs.WSME error: WSME-0.11.0 not supported for interpreter python3.10 «derivation nix-repl> python3.pkgs.WSME.overridePythonAttrs (_: { disabled = false; }) «derivation /nix/store/cxkiwdfm146zvl573s2hahlbjd1wfrrp-python3.10-WSME-0.11.0.drv»
2023-01-29Merge master into staging-nextgithub-actions[bot]
2023-01-28python3.pkgs: fix splice through unsupported hostsAlyssa Ross
Previously, unless unsupported platforms were allowed, the following would fail to evaluate (from an "x86_64-linux" system): pkgsCross.x86_64-freebsd.__splicedPackages.docutils.__spliced.buildHost It shouldn't have, because the buildHost package ends up being for Linux. This broke evaluation of e.g. pkgsCross.x86_64-freebsd.libdrm, because it has docutils in nativeBuildInputs. mkDerivation would try to go through __spliced.buildHost on docutils to get to the Linux version, but the check in ensurePythonModules would kick in first, triggering the meta check because of the equality check in the implementation of hasPythonModule, which would fail because Python is not marked as supported on FreeBSD in Nixpkgs at the moment. Thus, even though they're not supposed to be, the meta checks would be triggered even though the only attribute being accessed on the unsupported derivation was __spliced. We can fix this by using the same mechanism used to implement the meta checks themselves: lib.extendDerivation. Now, attempting to access drvPath or outPath on an attribute that fails the validity check will produce the same error as before, but other accesses will be allowed through, fixing splicing. I've tested evaluation of packages that pass and fail the validity check, and confirmed that the behaviour is still correct.
2023-01-28python3.pkgs: simplify ensurePythonModules logicAlyssa Ross
It wasn't clear before, but it turns out that this is just four separate conditions, and an attribute is valid if any of the conditions is true, so we don't need a sea of parentheses to express it.
2023-01-27Merge branch 'master' into staging-nextVladimír Čunát
2023-01-26treewide: remove global with lib; statements in pkgs/developmentShawn8901
2023-01-23Merge master into staging-nextgithub-actions[bot]
2023-01-23Merge pull request #211079 from NickCao/py37Nick Cao
python37: remove leftovers