From d26373168f621d91375c81092a909ba918b090e1 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 18 Jan 2022 20:07:35 +1200 Subject: [PATCH] Fix file deps test --- tests/file-src-deps-level2/default.nix | 5 +++++ tests/file-src-deps/default.nix | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/tests/file-src-deps-level2/default.nix b/tests/file-src-deps-level2/default.nix index 9a73a07ad..e4b51f6f0 100644 --- a/tests/file-src-deps-level2/default.nix +++ b/tests/file-src-deps-level2/default.nix @@ -6,4 +6,9 @@ poetry2nix.mkPoetryApplication { poetrylock = ./poetry.lock; src = lib.cleanSource ./.; pwd = ./.; + overrides = poetry2nix.overrides.withDefaults (self: super: { + trivial = super.trivial.overridePythonAttrs (old: { + buildInputs = old.buildInputs or [ ] ++ [ self.poetry ]; + }); + }); } diff --git a/tests/file-src-deps/default.nix b/tests/file-src-deps/default.nix index 9a73a07ad..e4b51f6f0 100644 --- a/tests/file-src-deps/default.nix +++ b/tests/file-src-deps/default.nix @@ -6,4 +6,9 @@ poetry2nix.mkPoetryApplication { poetrylock = ./poetry.lock; src = lib.cleanSource ./.; pwd = ./.; + overrides = poetry2nix.overrides.withDefaults (self: super: { + trivial = super.trivial.overridePythonAttrs (old: { + buildInputs = old.buildInputs or [ ] ++ [ self.poetry ]; + }); + }); }