diff options
author | Yarny0 <41838844+Yarny0@users.noreply.github.com> | 2024-02-23 15:02:43 +0100 |
---|---|---|
committer | Yarny0 <41838844+Yarny0@users.noreply.github.com> | 2024-02-25 11:54:49 +0100 |
commit | b1bccc25ec523b1d4f6508ccb750b91bc07bb473 (patch) | |
tree | f72cd8ab62d6d8b741c33f3815898cdf69a77ca8 /pkgs/development/interpreters | |
parent | e5d73251660f231dd15a14993d4042d9dc082c78 (diff) | |
download | nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.tar nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.tar.gz nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.tar.bz2 nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.tar.lz nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.tar.xz nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.tar.zst nixlib-b1bccc25ec523b1d4f6508ccb750b91bc07bb473.zip |
pythonCatchConflictsHook: test cyclic dependency
Add test case where a package enlists itself as propagated build input.
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix b/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix index f3d9235799e0..cba1034e0963 100644 --- a/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix +++ b/pkgs/development/interpreters/python/hooks/python-catch-conflicts-hook-tests.nix @@ -78,6 +78,15 @@ in { ]; }; + # multi-output derivation with dependency on itself must not crash + cyclic-dependencies = + generatePythonPackage { + pname = "cyclic-dependencies"; + preFixup = '' + propagatedBuildInputs+=("$out") + ''; + }; + # Simplest test case that should trigger a conflict catches-simple-conflict = let # this build must fail due to conflicts |