Skip to content

Commit

Permalink
archivebox: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Nov 9, 2024
1 parent 2703866 commit e95d07b
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions pkgs/by-name/ar/archivebox/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
readability-extractor,
chromium,
yt-dlp,
versionCheckHook,
nix-update-script,
}:

let
Expand Down Expand Up @@ -66,11 +68,11 @@ python.pkgs.buildPythonApplication rec {
fetchSubmodules = true;
};

nativeBuildInputs = with python.pkgs; [
build-system = with python.pkgs; [
pdm-backend
];

propagatedBuildInputs =
dependencies =
with python.pkgs;
[
# Core Libraries
Expand Down Expand Up @@ -117,7 +119,6 @@ python.pkgs.buildPythonApplication rec {
pocket
sonic-client
yt-dlp
# Plugin dependencies

]
++ python.pkgs.python-benedict.optional-dependencies.io
Expand All @@ -137,6 +138,12 @@ python.pkgs.buildPythonApplication rec {
];
};

nativeInstallCheckInputs = [
versionCheckHook
];

pythonImportsCheck = [ "archivebox" ];

makeWrapperArgs =
[
"--set USE_NODE True" # used through dependencies, not needed explicitly
Expand All @@ -159,14 +166,20 @@ python.pkgs.buildPythonApplication rec {
]
);

meta = with lib; {
passthru = {
updateScript = nix-update-script { };
};

meta = {
description = "Open source self-hosted web archiving";
homepage = "https://archivebox.io";
license = licenses.mit;
maintainers = with maintainers; [
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
siraben
viraptor
pyrox0
];
platforms = platforms.unix;
platforms = lib.platforms.unix;
mainProgram = "archivebox";
};
}

0 comments on commit e95d07b

Please sign in to comment.