gnu: python-django-gravatar2: Switch to pyproject.

* gnu/packages/django.scm (python-django-gravatar2):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Replace 'check phase.
[native-inputs]: Add python-setuptools.

Change-Id: I1f877ef89ebc0728a8e21d33a4e869c0be1f3816
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-28 18:46:33 +02:00 committed by Sharlatan Hellseher
parent 3289b8cb02
commit 4c6c159bec
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -734,17 +734,27 @@ queries done via the Django ORM, SQLAlchemy generated queries are displayed.")
(version "1.4.5") (version "1.4.5")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "django-gravatar2" version)) (uri (git-reference
(url "https://github.com/twaddington/django-gravatar")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "0brh1176gx758cimkz36g8v760a1hadxspqanp8kc59kvx50qvm0"))))
"0r03m1qkh56g92x136xdq8n92mj7gbi1fh0djarxhp9rbr35dfrd")))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
'(;; TODO: The django project for the tests is missing from the release. (list
#:tests? #f)) #:phases
(inputs #~(modify-phases %standard-phases
(list python-django)) (replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(with-directory-excursion "example_project"
(invoke "python" "./manage.py" "test"
"-k" "not test_has_gravatar"
"django_gravatar"))))))))
(native-inputs (list python-setuptools))
(inputs (list python-django))
(home-page "https://github.com/twaddington/django-gravatar") (home-page "https://github.com/twaddington/django-gravatar")
(synopsis "Gravatar support for Django, improved version") (synopsis "Gravatar support for Django, improved version")
(description (description