summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix
AgeCommit message (Collapse)Author
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 78e9caf153f5a339bf1d4c000ff6f0a503a369c8 result/bin/apply-formatting $NIXPKGS_PATH
2024-11-25treewide: improve prepending and appending derivation arguments in bash codeWolfgang Walther
Those would be problematic with __structuredAttrs turned on, because they'd turn those nice bash arrays back into strings - and potentially lose some of the values on the way.
2024-10-22python3Packages.pythonCatchConflictsHook: fix tests with lib.overrideDerivationYueh-Shun Li
Use lib.overrideDerivation instead of <pkg>.overrideDerivation to fix the evaluation of python3Packages.pythonCatchConflictsHook.tests.catches-conflict-multiple-chains, as buildPythonPackage and buildPythonApplication no longer provide <pkg>.overrideDerivation Clean up the leftover of commit 58bfe7412308 ("buildPython*: Deprecate and remove (buildPython* { ... }).override")
2024-04-26pythonCatchConflictsHook: add test for multiple dependency chainsBen Wolsieffer
Add a test where a conflicting package can be found at the end of multiple dependency chains. This is far too simple an example to demonstrate the ill effects of exponential time complexity, but does serve to demonstrate how the error output changes when each path is only visited once.
2024-02-25pythonCatchConflictsHook: test cyclic dependencyYarny0
Add test case where a package enlists itself as propagated build input.
2024-02-13pythonCatchConflictsHook: improve and add testsDavHau