From patchwork Thu Mar 9 17:26:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 47827 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 F0F3016E46; Thu, 9 Mar 2023 17:27:23 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 8BCD216E43 for ; Thu, 9 Mar 2023 17:27:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1paK2j-0004Tf-IY; Thu, 09 Mar 2023 12:27:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paK2g-0004SJ-D6 for guix-patches@gnu.org; Thu, 09 Mar 2023 12:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1paK2g-0006Gt-4m for guix-patches@gnu.org; Thu, 09 Mar 2023 12:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1paK2f-0008I5-S0 for guix-patches@gnu.org; Thu, 09 Mar 2023 12:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62084] [PATCH] gnu: Add python-dlmanager. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 09 Mar 2023 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62084 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62084@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167838278831819 (code B ref -1); Thu, 09 Mar 2023 17:27:01 +0000 Received: (at submit) by debbugs.gnu.org; 9 Mar 2023 17:26:28 +0000 Received: from localhost ([127.0.0.1]:53019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paK27-0008H9-Ib for submit@debbugs.gnu.org; Thu, 09 Mar 2023 12:26:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:46432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1paK26-0008Gz-6t for submit@debbugs.gnu.org; Thu, 09 Mar 2023 12:26:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paK26-0003nP-0j for guix-patches@gnu.org; Thu, 09 Mar 2023 12:26:26 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paK24-0006Bi-Au for guix-patches@gnu.org; Thu, 09 Mar 2023 12:26:25 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 494CC44616 for ; Thu, 9 Mar 2023 18:26:22 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Me6wPlZZXEnJ for ; Thu, 9 Mar 2023 18:26:20 +0100 (CET) Message-ID: <889bae53-8018-50bb-5f0c-64db08ab2fb5@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678382780; bh=2nerIEJ9emIquCbXaMAM/eKdQ93SIQxMwAjy0ncVhMg=; h=Date:To:From:Subject; b=RXik1jci9PdpPjBrdaEAaMBVC547LhZ3LEElDLollqK9YYGffuvRYxVypVfQriuFy RQm7jSvL2ZP6MwZ6/b/e+rrK/TjlpFn3Dq+kbDX3d+Se6GRvEeXSPdMllHbIdFQQRn c46OQ2WdLYVA3cP8YPa+95KiJXmR6mwwEZqVwjSnFaEAjbRxSW+Lwb8nZ7q1ZMDHMI gSI7VZUJWhOXP6K7WlJPwjRNRB/R4p5UI0DC33rNQ/OQcC3HyqYdbL4AnVsrJkiYGt gAvHiUzrGDYz0mly6oVZg2OQlFb3b32cl56zb/AcXVt9qJ8ZkylYPjlnHbIFwzPxu6 xQbuJXjzr5Osw== Date: Fri, 10 Mar 2023 01:26:17 +0800 MIME-Version: 1.0 Content-Language: en-US Received-SPF: pass client-ip=178.21.23.139; envelope-from=adam.faiz@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 31791297ec5bf5bbeaf4412aa654618320db6646 Mon Sep 17 00:00:00 2001 Message-Id: <31791297ec5bf5bbeaf4412aa654618320db6646.1678382603.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Fri, 10 Mar 2023 00:32:21 +0800 Subject: [PATCH] gnu: Add python-dlmanager. * gnu/packages/python-xyz.scm (python-dlmanager): New variable. --- gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5f695da802..439d6f058e 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28260,6 +28260,41 @@ (define-public python-djvulibre (home-page "https://jwilk.net/software/python-djvulibre") (license license:gpl2))) +(define-public python-dlmanager + (package + (name "python-dlmanager") + (version "0.1.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/parkouss/dlmanager") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0f2j7d396z50yd5r86jx8m5bxyv2i0cw967j68xcwpcg3b216zmr")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "setup.py" + (("pytest.main.self.pytest_args.") + "pytest.main(self.pytest_args.split(' '))")))))) + (build-system python-build-system) + (native-inputs + (list python-pytest python-mock)) + (propagated-inputs + (list python-requests python-six)) + (home-page "https://github.com/parkouss/dlmanager") + (synopsis "Download manager library") + (description + "@code{dlmanager} is a download manager library, +with the following features:\n +* Download files in background and in parallel\n +* Cancel downloads\n +* Store downloads in a given directory, avoiding re-downloading files\n +* Limit the size of this directory, removing oldest files.") + (license license:gpl3+))) + (define-public python-version ;; No version tags available in the git repo; just using bare commit instead. (let ((commit "5232eea250ab72cc5cb72b0b75efb35d2192b906")