about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2024-02-23 15:02:43 +0100
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2024-02-25 11:54:49 +0100
commitb1bccc25ec523b1d4f6508ccb750b91bc07bb473 (patch)
treef72cd8ab62d6d8b741c33f3815898cdf69a77ca8 /pkgs/development/interpreters
parente5d73251660f231dd15a14993d4042d9dc082c78 (diff)
downloadnixlib-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.nix9
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