From patchwork Sun May 22 13:30:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pradana Adrinusa AUMARS X-Patchwork-Id: 39568 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EF75C27BBEA; Sun, 22 May 2022 14:31:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 77D0A27BBE9 for ; Sun, 22 May 2022 14:31:11 +0100 (BST) Received: from localhost ([::1]:41642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nslfq-0004zG-Lh for patchwork@mira.cbaines.net; Sun, 22 May 2022 09:31:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nslfi-0004z6-T9 for guix-patches@gnu.org; Sun, 22 May 2022 09:31:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50081) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nslfi-0005YE-Kr for guix-patches@gnu.org; Sun, 22 May 2022 09:31:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nslfi-0006SP-Gf for guix-patches@gnu.org; Sun, 22 May 2022 09:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55575] [PATCH] gnu: Add archivebox. Resent-From: Pradana Adrinusa AUMARS Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 22 May 2022 13:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55575 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55575@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165322624524793 (code B ref -1); Sun, 22 May 2022 13:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2022 13:30:45 +0000 Received: from localhost ([127.0.0.1]:43978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nslfG-0006Rd-9p for submit@debbugs.gnu.org; Sun, 22 May 2022 09:30:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:41730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nslfD-0006RR-P7 for submit@debbugs.gnu.org; Sun, 22 May 2022 09:30:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nslfD-0004rf-F8 for guix-patches@gnu.org; Sun, 22 May 2022 09:30:31 -0400 Received: from mail.42l.fr ([45.155.171.163]:45754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nslfA-0005P3-U8 for guix-patches@gnu.org; Sun, 22 May 2022 09:30:31 -0400 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=courrier.dev; s=mail; t=1653226212; bh=3v/bgCphJV795UFpyt6Hnhv9wcRsB13eq+6dre4UDKc=; h=Subject:From:To; b=rlk0sg+GqDIw7XeU200f+tJWMCKFq8dZrry/UO6Uq7XffQ8EueIXpnO3fn2M3sVUl 8oVwgg6bbsOS4kbyWFKFIOPBlINfz8ThGcY3b+Hi/c8QeENigAtL96Okvwkp81AfYQ KGNve38aJ5tklYM7dLwphLggrYxFMrsBCPBpNmLAA7Vv9FH/1IDAQJ0Vh/EKhaaP7d f+kyRybnVtU3h5fbaA2l6U680zrhZKXRC79DdNGkYlroDhsCa3eWquV8DxUq5uW787 +M4a8ubOUs7D9B9FMVU0j/UGS8Jk/ouAPdDORw+ErAQPd5XxnUGdeR20SR4wnabJdX sWGkNNV1QZrfw== Date: Sun, 22 May 2022 15:30:10 +0200 Mime-Version: 1.0 Received-SPF: pass client-ip=45.155.171.163; envelope-from=SRS0=aaXC=V6=courrier.dev=paumars@42l.fr; helo=mail.42l.fr X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Pradana Adrinusa AUMARS X-ACL-Warn: , Pradana Adrinusa AUMARS via Guix-patches X-Patchwork-Original-From: Pradana Adrinusa AUMARS via Guix-patches via From: Pradana Adrinusa AUMARS X-getmail-retrieved-from-mailbox: Patches From 597e0ee3e2073cc3bbf2a8a997fcbeef750b9f98 Mon Sep 17 00:00:00 2001 From: Pradana AUMARS Date: Sun, 22 May 2022 15:27:02 +0200 Subject: [PATCH] gnu: Add archivebox. * gnu/packages/web.scm (archivebox): New variable. --- gnu/packages/web.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 600ef0c895..72b78b4d43 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -56,6 +56,7 @@ ;;; Copyright © 2021 Denis 'GNUtoo' Carikli ;;; Copyright © 2021 Vinicius Monego ;;; Copyright © 2022 cage +;;; Copyright © 2022 Pradana Aumars ;;; ;;; This file is part of GNU Guix. ;;; @@ -112,6 +113,7 @@ (define-module (gnu packages web) #:use-module (gnu packages curl) #:use-module (gnu packages cyrus-sasl) #:use-module (gnu packages databases) + #:use-module (gnu packages django) #:use-module (gnu packages docbook) #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) @@ -154,6 +156,7 @@ (define-module (gnu packages web) #:use-module (gnu packages markup) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) + #:use-module (gnu packages node) #:use-module (gnu packages nss) #:use-module (gnu packages openldap) #:use-module (gnu packages openstack) @@ -162,6 +165,8 @@ (define-module (gnu packages web) #:use-module (gnu packages perl) #:use-module (gnu packages perl-check) #:use-module (gnu packages python) + #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -177,7 +182,9 @@ (define-module (gnu packages web) #:use-module (gnu packages tls) #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) + #:use-module (gnu packages video) #:use-module (gnu packages vim) + #:use-module (gnu packages wget) #:use-module (gnu packages xml) #:use-module ((srfi srfi-1) #:select (delete-duplicates))) @@ -8218,3 +8225,40 @@ (define-public quark ;; "cpe:2.3:a:comelz:quark" package. The proper fix is for (guix cve) ;; to account for "vendor names". (properties '((lint-hidden-cve . ("CVE-2019-15520"))))))) + +(define-public archivebox + (package + (name "archivebox") + (version "0.6.2") + (source (origin + (method url-fetch) + (uri (pypi-uri name version)) + (sha256 + (base32 + "1mnq82ynq01l7vx957bbx4bvgwdh59qsnx6pdydaqszbakp74yyc")))) + (build-system python-build-system) + (propagated-inputs + (list curl + node)) + (inputs + (list python + youtube-dl + wget + git + python-w3lib + python-ipython + python-croniter + python-crontab + python-dateparser + python-django-extensions + python-django-3.1.14 + python-mypy-extensions)) + (native-inputs + (list python-wheel)) + (synopsis "Open source self-hosted web archiving") + (description "ArchiveBox is a powerful, self-hosted internet archiving +solution to collect, save, and view sites you want to preserve offline. +You can feed it URLs one at a time, or schedule regular imports. It saves +snapshots of the URLs you feed it in several formats.") + (home-page "https://archivebox.io/") + (license license:expat)))