From c66e65cb2ea8f37cd0f39cde2007f50e71f0f2bc Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 20 Nov 2024 19:41:42 +0000 Subject: [PATCH] nixos-rebuild-ng: use python3Packages --- pkgs/by-name/ni/nixos-rebuild-ng/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ni/nixos-rebuild-ng/package.nix b/pkgs/by-name/ni/nixos-rebuild-ng/package.nix index a680d9a13887..b111c7cb108a 100644 --- a/pkgs/by-name/ni/nixos-rebuild-ng/package.nix +++ b/pkgs/by-name/ni/nixos-rebuild-ng/package.nix @@ -5,20 +5,21 @@ nix, nixos-rebuild, python3, + python3Packages, runCommand, withNgSuffix ? true, }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "nixos-rebuild-ng"; version = "0.0.0"; src = ./src; pyproject = true; - build-system = with python3.pkgs; [ + build-system = with python3Packages; [ setuptools ]; - dependencies = with python3.pkgs; [ + dependencies = with python3Packages; [ tabulate ]; @@ -54,7 +55,7 @@ python3.pkgs.buildPythonApplication rec { mv $out/bin/nixos-rebuild $out/bin/nixos-rebuild-ng ''; - nativeCheckInputs = with python3.pkgs; [ + nativeCheckInputs = with python3Packages; [ pytestCheckHook ];