Skip to content

Commit

Permalink
test: Fix infinite recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Mar 3, 2024
1 parent 8819dda commit b947b72
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion test/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ let
python = pkgs.python3.override {
self = python;
# Poetry plugins aren't exposed in the Python set
packageOverrides = _self: _super: (pkgs.poetry.override { python3 = python; }).plugins;
packageOverrides = _self: _super:
let
poetry' = pkgs.poetry.override { python3 = python; };
in
{
inherit (poetry'.plugins) poetry-plugin-export;
};
};
in
# Construct withPackages environments and assert modules can be imported
Expand Down Expand Up @@ -98,6 +104,8 @@ lib.mapAttrs'
# Add relax deps since we don't assert versions
nativeBuildInputs = attrs.nativeBuildInputs or [ ] ++ [ python.pkgs.pythonRelaxDepsHook ];

dontCheckRuntimeDeps = true;

# HACK: Relax deps hook is not sufficient
postPatch = ''
substituteInPlace pyproject.toml \
Expand Down

0 comments on commit b947b72

Please sign in to comment.