summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Faiz <adam.faiz@disroot.org>2025-03-01 11:39:37 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2025-03-01 11:39:37 +0100
commit1d1c66d3e077fb1961d08849babfd976796670b6 (patch)
tree04d9137802a2cc257ba139a3373c917ec74ba0e9
parentf3f09fb4a370fd0363fd216f73736164a2a29f7b (diff)
gnu: Add python-dlmanager.
* gnu/packages/python-xyz.scm (python-dlmanager): New variable. Change-Id: I824480aa15fb630acf9912c0d99d07d855d0c58b Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/python-xyz.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2214e0aa9c..cc6233e94f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1159,6 +1159,39 @@ Python dataclasses.")
from JSON payloads using the @code{databind.core} framework.")
(license license:expat)))
+(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
+ "Dlmanager is a download manager library. It can download files in
+background and in parallel, and cancel downloads. It stores downloads in
+a given directory, avoiding re-downloading files and limits the size of this
+directory, removing oldest files.")
+ (license license:gpl3+)))
+
(define-public python-docspec
(package
(name "python-docspec")