summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2026-02-04 14:09:13 +0000
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:55 +0100
commit0aa8b522e691b8a48cc7076950dea996e43e4674 (patch)
tree0548354cc2905340e0084a6b703e63cdfd8b4125
parent4c60e934d39d5e58c875932cae856097ee6f9ead (diff)
gnu: python-django-dbbackup: Update to 5.1.2.
* gnu/packages/django.scm (python-django-dbbackup): Update to 5.1.2. [source]: Switch to git-fetch. [phases]{pre-check}: Remove tests modification step. {check}: Use default phase. [native-inputs]: Remove python-setuptools and python-wheel; add python-hatchling. Change-Id: I206864969a91cd554431b2afe81dae4622bf1fa2
-rw-r--r--gnu/packages/django.scm28
1 files changed, 10 insertions, 18 deletions
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 54c4681d576..2766a77bf7a 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1747,13 +1747,16 @@ template tag.")
(define-public python-django-dbbackup
(package
(name "python-django-dbbackup")
- (version "4.3.0")
+ (version "5.1.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "django_dbbackup" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Archmonger/django-dbbackup")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1p66xs6c2sw1l2zlskpa64zslyawlpgv0vn2l86g4rxizp6chj9m"))))
+ (base32 "1iapp6kln4sc459w97x2hzdz471d4c2ikqwq556c6bqafdgh8brn"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -1762,26 +1765,15 @@ template tag.")
(add-before 'check 'pre-check
(lambda _
;; To write a .env file.
- (setenv "HOME" "/tmp")
- ;; 'env' command is not available in the build environment.
- (substitute* "dbbackup/tests/test_connectors/test_base.py"
- (("def test_run_command_with_parent_env")
- "def _test_run_command_with_parent_env"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (setenv "DJANGO_SETTINGS_MODULE" "dbbackup.tests.settings")
- (invoke "django-admin" "test" "dbbackup/tests"
- "--pythonpath=.")))))))
+ (setenv "HOME" "/tmp"))))))
(native-inputs (list gnupg
python-dotenv
python-gnupg
+ python-hatchling
python-pytest
python-pytz
- python-setuptools
python-testfixtures
- python-tzdata
- python-wheel))
+ python-tzdata))
(propagated-inputs (list python-django))
(home-page "https://github.com/Archmonger/django-dbbackup")
(synopsis "Backup and restore a Django project database and media")