From 58212eea69c91c235abf14e4ead9a559a07a685c Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 21 Sep 2025 17:22:29 +0200 Subject: [PATCH] gnu: python-django-cache-url: Fix tests. * gnu/packages/django.scm (python-django-cache-url): [source]: Switch to git-fetch. [native-inputs]: Add python-pytest, python-pytest-cov. Change-Id: I3539a056f2bb8e5e7707decae8dd698510463fae Signed-off-by: Sharlatan Hellseher --- gnu/packages/django.scm | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 6134174f453392cb33ba8aae159f56f1ff566d31..5f67f44ab652416ce1cbb4cb200ebf8845dc9d1e 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -235,15 +235,18 @@ to the @dfn{don't repeat yourself} (DRY) principle.") (package (name "python-django-cache-url") (version "3.4.5") - (source (origin - (method url-fetch) - (uri (pypi-uri "django-cache-url" version)) - (sha256 - (base32 - "05yr19gi5ln6za0y9nf184klaixnf1dr1nfajn63893mf6ab37zb")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/epicserve/django-cache-url") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1a5vd07wrnfbclvf6pz9p8ag9kdd1453lsl9q0bkyc45hq2xqd2a")))) (build-system pyproject-build-system) (native-inputs - (list python-django python-setuptools python-wheel)) + (list python-django python-pytest python-pytest-cov python-setuptools)) (home-page "https://github.com/epicserve/django-cache-url") (synopsis "Configure Django cache settings from URLs") (description