From be709723a58b739d52e4e539c785e01f708f17e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 25 Aug 2024 18:56:51 -0700 Subject: [PATCH] hatch: use python3Packages This makes cross compilation work. --- pkgs/by-name/ha/hatch/package.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ha/hatch/package.nix b/pkgs/by-name/ha/hatch/package.nix index d4011175f7d9..141fb9a51ec6 100644 --- a/pkgs/by-name/ha/hatch/package.nix +++ b/pkgs/by-name/ha/hatch/package.nix @@ -1,6 +1,6 @@ { lib, - python3, + python3Packages, fetchFromGitHub, replaceVars, git, @@ -12,7 +12,7 @@ hatch, }: -python3.pkgs.buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "hatch"; version = "1.12.0"; pyproject = true; @@ -24,16 +24,16 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-HW2vDVsFrdFRRaPNuGDg9DZpJd8OuYDIqA3KQRa3m9o="; }; - patches = [ (replaceVars ./paths.patch { uv = lib.getExe python3.pkgs.uv; }) ]; + patches = [ (replaceVars ./paths.patch { uv = lib.getExe python3Packages.uv; }) ]; - build-system = with python3.pkgs; [ + build-system = with python3Packages; [ hatchling hatch-vcs ]; pythonRemoveDeps = [ "uv" ]; - dependencies = with python3.pkgs; [ + dependencies = with python3Packages; [ click hatchling httpx @@ -52,7 +52,7 @@ python3.pkgs.buildPythonApplication rec { ]; nativeCheckInputs = - with python3.pkgs; + with python3Packages; [ binary git