From 1d1c66d3e077fb1961d08849babfd976796670b6 Mon Sep 17 00:00:00 2001 From: Adam Faiz Date: Sat, 1 Mar 2025 11:39:37 +0100 Subject: gnu: Add python-dlmanager. * gnu/packages/python-xyz.scm (python-dlmanager): New variable. Change-Id: I824480aa15fb630acf9912c0d99d07d855d0c58b Signed-off-by: Nicolas Goaziou --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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") -- cgit v1.2.3