summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/python2/mk-python-derivation.nix (follow)
Commit message (Expand)AuthorAgeFilesLines
* treewide: format all inactive Nix files•••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 Silvan Mosberger2024-12-101-184/+242
* treewide: replace `stdenv.is` with `stdenv.hostPlatform.is`•••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" ``` Artturin2024-09-251-1/+1
* python312Packages.setuptoolsCheckHook: remove•••The hook relied on the `test` command passed to `setup.py`, which has long been deprecated and finally removed in setuptools 72.0. Martin Weinelt2024-08-061-8/+1
* buildPython*: make doCheck default less confusing•••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. Yueh-Shun Li2024-07-031-1/+1
* Revert "python2/mk-python-derivation: disable catchConflictsHook"•••This reverts commit 397a8fd06bd576cae7f1fae71dbfd9fbce30dc66. The hook now uses the old implementation based on the deprecated pkg_resources library provided by setuptools again. Martin Weinelt2023-11-181-2/+1
* python2/mk-python-derivation: disable catchConflictsHook•••It's broken on Py2. Hopefully people still using 2 know what they're doing? K9002023-11-171-1/+2
* treewide: change pythonForBuild to pythonOnBuildForHostAdam Joseph2023-11-051-1/+1
* python3Packages.flitBuildHook: removePeder Bergebakken Sundt2023-09-221-4/+2
* python2.{buildPythonPackage,buildPythonApplication}: extract into its own file•••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. Theodore Ni2023-08-201-0/+252