summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/python2
AgeCommit message (Collapse)Author
2025-10-23buildPython*: allow stdenv customization through <function>.overrideYueh-Shun Li
2025-10-05treewide: remove redundant parenthesesWolfgang Walther
Auto-fixed by nixf-diagnose.
2025-10-04pkgs: remove optional builtins prefixes from prelude functionsNAHO
Remove optional builtins prefixes from prelude functions by running: builtins=( abort baseNameOf break derivation derivationStrict dirOf false fetchGit fetchMercurial fetchTarball fetchTree fromTOML import isNull map null placeholder removeAttrs scopedImport throw toString true ) fd \ --type file \ . \ pkgs \ --exec-batch sed --in-place --regexp-extended " s/\<builtins\.($( printf '%s\n' "${builtins[@]}" | paste --delimiter '|' --serial - ))\>/\1/g " nix fmt
2025-07-24treewide: run nixfmt 1.0.0Wolfgang Walther
2024-12-10treewide: format all inactive Nix filesSilvan Mosberger
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \ --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7 result/bin/apply-formatting $NIXPKGS_PATH
2024-09-25treewide: replace `stdenv.is` with `stdenv.hostPlatform.is`Artturin
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
2024-08-06python312Packages.setuptoolsCheckHook: removeMartin Weinelt
The hook relied on the `test` command passed to `setup.py`, which has long been deprecated and finally removed in setuptools 72.0.
2024-07-03buildPython*: make doCheck default less confusingYueh-Shun Li
Modify the set pattern to hint developers that the doInstallCheck attribute of Python packages, specified by the doCheck argument of buildPythonPackage and buildPythonApplication, defaults to true instead of false.
2023-11-18Revert "python2/mk-python-derivation: disable catchConflictsHook"Martin Weinelt
This reverts commit 397a8fd06bd576cae7f1fae71dbfd9fbce30dc66. The hook now uses the old implementation based on the deprecated pkg_resources library provided by setuptools again.
2023-11-17python2/mk-python-derivation: disable catchConflictsHookK900
It's broken on Py2. Hopefully people still using 2 know what they're doing?
2023-11-05treewide: change pythonForBuild to pythonOnBuildForHostAdam Joseph
2023-09-22python3Packages.flitBuildHook: removePeder Bergebakken Sundt
2023-08-20python2.{buildPythonPackage,buildPythonApplication}: extract into its own fileTheodore Ni
As we continue iterating on Python infrastructure for Python 3, some code is starting to diverge for Python 2. If we copy the current state of mk-python-derivation.nix and freeze it for Python 2, we can iterate on it for Python 3 with more freedom.