mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
3289b8cb02
commit
4c6c159bec
1 changed files with 19 additions and 9 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue