From d147bd7923dfdc1b2594d7273b7b7d5a3d5f5823 Mon Sep 17 00:00:00 2001 From: Matt Traudt Date: Mon, 24 Jun 2024 20:20:11 -0500 Subject: [PATCH] grab-site, ludios_wpull: fix callPackage invocation --- pkgs/by-name/gr/grab-site/package.nix | 8 +++----- pkgs/by-name/lu/ludios_wpull/package.nix | 17 ++--------------- pkgs/top-level/all-packages.nix | 8 ++++++-- 3 files changed, 11 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/gr/grab-site/package.nix b/pkgs/by-name/gr/grab-site/package.nix index 5dae8c800ca14..5ed7b7edc3625 100644 --- a/pkgs/by-name/gr/grab-site/package.nix +++ b/pkgs/by-name/gr/grab-site/package.nix @@ -1,11 +1,9 @@ { lib -, fetchPypi , fetchFromGitHub -, buildPythonApplication -, python -, pythonOlder +, python3 , ludios_wpull }: +with python3.pkgs; buildPythonApplication rec { pname = "grab-site"; version = "2.2.7"; @@ -24,7 +22,7 @@ buildPythonApplication rec { --replace-fail '"wpull @ https://github.com/ArchiveTeam/ludios_wpull/tarball/master#egg=wpull-3.0.9"' '"wpull"' ''; - propagatedBuildInputs = with python.pkgs; [ + propagatedBuildInputs = [ click ludios_wpull manhole diff --git a/pkgs/by-name/lu/ludios_wpull/package.nix b/pkgs/by-name/lu/ludios_wpull/package.nix index ff37b73150fff..227eeed0f9768 100644 --- a/pkgs/by-name/lu/ludios_wpull/package.nix +++ b/pkgs/by-name/lu/ludios_wpull/package.nix @@ -1,19 +1,6 @@ { lib -, buildPythonApplication , fetchFromGitHub -, fetchPypi -, chardet -, dnspython -, html5-parser -, lxml -, namedlist -, psutil -, setuptools -, sqlalchemy -, tornado -, yapsy -, python -, pythonOlder +, python3 # Override Python packages using # self: super: { pkg = super.pkg.overridePythonAttrs (oldAttrs: { ... }); } # Applied after defaultOverrides @@ -34,7 +21,7 @@ let }); }) ]; - py = python.override { + py = python3.override { # Put packageOverrides at the start so they are applied after defaultOverrides packageOverrides = lib.foldr lib.composeExtensions (self: super: { }) ([ packageOverrides ] ++ defaultOverrides); }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 208a24779e562..d2e31da588d6e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8532,7 +8532,9 @@ with pkgs; gql = callPackage ../applications/version-management/gql { }; - grab-site = python312Packages.callPackage ../by-name/gr/grab-site/package.nix { }; + grab-site = callPackage ../by-name/gr/grab-site/package.nix { + python3 = python312; + }; grafterm = callPackage ../tools/misc/grafterm { }; @@ -8714,7 +8716,9 @@ with pkgs; lucky-cli = callPackage ../development/web/lucky-cli { }; - ludios_wpull = python312Packages.callPackage ../by-name/lu/ludios_wpull/package.nix { }; + ludios_wpull = callPackage ../by-name/lu/ludios_wpull/package.nix { + python3 = python312; + }; mac-fdisk = callPackage ../tools/system/mac-fdisk { };