diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index e1db6ce2..e87eccfb 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -256,6 +256,12 @@ jobs: fi echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH + - name: Verify Nix package build + if: runner.os != 'Windows' # Nix only supported on Linux/macOS + shell: bash + run: | + # Verify the flake builds successfully + nix build --no-link - name: Install uv shell: bash run: curl -LsSf https://astral.sh/uv/install.sh | sh diff --git a/flake.nix b/flake.nix index e92f1999..7529365b 100644 --- a/flake.nix +++ b/flake.nix @@ -50,7 +50,14 @@ sourcePreference = "wheel"; # or sourcePreference = "sdist"; }; - pyprojectOverrides = _final: _prev: {}; + pyprojectOverrides = final: prev: { + # Add setuptools for packages that need it during build + ruamel-yaml-clib = prev.ruamel-yaml-clib.overrideAttrs (old: { + nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ + final.setuptools + ]; + }); + }; python = pkgs.python311;