From 4a94bcba12b4150917c123bc46489cd5a5115a9a Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Wed, 16 Jul 2025 22:02:21 -0300 Subject: [PATCH] gnu: python-django-cleanup: Update to 9.0.0. * gnu/packages/django.scm (python-django-cleanup): Update to 9.0.0. [build-system]: Use pyproject-build-system. [arguments]: Delete phase 'patch-tests-settings'. Do not override the 'check' phase. [native-inputs]: Remove python-easythumbnails, python-pillow, python-pytest-xdist. Add python-setuptools, python-wheel. Change-Id: I192983ee4bab95d1643c2f7e62473605b3097e88 --- gnu/packages/django.scm | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 2a016a0a6538170bc53e13196cf7b1b5d6df005b..bbb26aabe023b8150bf0e37f3e0f39deedd011ff 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -1662,7 +1662,7 @@ image files already supported by it.") (define-public python-django-cleanup (package (name "python-django-cleanup") - (version "6.0.0") + (version "9.0.0") (source (origin (method git-fetch) @@ -1671,35 +1671,14 @@ image files already supported by it.") (commit (string-append version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0c1nghn1bnlq0a4d3sy3s363ksqsnxksixbimdy3cc6a0vk4sjps")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-tests-settings - (lambda* (#:key inputs #:allow-other-keys) - ;; django-cleanup optionally integrates with - ;; sorl-thumbnail, which is not available in Guix yet, so - ;; this patch comments it out to avoid import failures in - ;; test settings. - (substitute* "django_cleanup/testapp/settings.py" - (("'sorl\\.thumbnail',") "# 'sorl.thumbnail',")))) - (replace 'check - (lambda* (#:key tests? inputs outputs #:allow-other-keys) - (when tests? - (add-installed-pythonpath inputs outputs) - ;; Add CWD to PYTHONPATH so that the tests can find the - ;; testapp package in the source. - (setenv "PYTHONPATH" (getcwd)) - (invoke "pytest"))))))) + (base32 "02ipa8d8ndnj8bs4dqhk03id4vmrvyr25vkpfqcfhmwipbhx8dc0")))) + (build-system pyproject-build-system) (native-inputs - (list ;; python-django-sorl-thumbnail ; TODO: Add to Guix. - python-easy-thumbnails - python-pillow - python-pytest - python-pytest-cov + (list python-pytest + python-pytest-cov ; runs by default python-pytest-django - python-pytest-xdist)) + python-setuptools + python-wheel)) (propagated-inputs (list python-django)) (home-page "https://github.com/un1t/django-cleanup")