From be6f48bc3942ec2a2a26778365f6b4ca7ad696d4 Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Tue, 11 Feb 2025 07:34:43 -0700 Subject: [PATCH] nixos-render-docs: move pytestCheckHook to nativeCheckInputs Previously, it was in nativeBuildInputs which caused tests to run while cross compiling. This attempts to run host python on the build machine. --- pkgs/by-name/ni/nixos-render-docs/package.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ni/nixos-render-docs/package.nix b/pkgs/by-name/ni/nixos-render-docs/package.nix index 9e58c3561c16..2b417bf86383 100644 --- a/pkgs/by-name/ni/nixos-render-docs/package.nix +++ b/pkgs/by-name/ni/nixos-render-docs/package.nix @@ -38,9 +38,12 @@ python.pkgs.buildPythonApplication rec { src = ./src; }; - nativeBuildInputs = with python.pkgs; [ - setuptools - pytestCheckHook + nativeCheckInputs = [ + python.pkgs.pytestCheckHook + ]; + + build-system = [ + python.pkgs.setuptools ]; propagatedBuildInputs = with python.pkgs; [