Skip to content

Commit

Permalink
hatch: use python3Packages
Browse files Browse the repository at this point in the history
This makes cross compilation work.
  • Loading branch information
dotlambda committed Aug 26, 2024
1 parent d4cebe7 commit be70972
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkgs/by-name/ha/hatch/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
lib,
python3,
python3Packages,
fetchFromGitHub,
replaceVars,
git,
Expand All @@ -12,7 +12,7 @@
hatch,
}:

python3.pkgs.buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "hatch";
version = "1.12.0";
pyproject = true;
Expand All @@ -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
Expand All @@ -52,7 +52,7 @@ python3.pkgs.buildPythonApplication rec {
];

nativeCheckInputs =
with python3.pkgs;
with python3Packages;
[
binary
git
Expand Down

0 comments on commit be70972

Please sign in to comment.