mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: Add python-django-assets.
* gnu/packages/django.scm (python-django-assets, python2-django-assets): New variables.
This commit is contained in:
parent
3b08d1a612
commit
01c64cb83f
1 changed files with 46 additions and 0 deletions
|
@ -245,3 +245,49 @@ (define-public python-django-gravatar2
|
|||
|
||||
(define-public python2-django-gravatar2
|
||||
(package-with-python2 python-django-gravatar2))
|
||||
|
||||
(define-public python-django-assets
|
||||
(package
|
||||
(name "python-django-assets")
|
||||
(version "0.12")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (pypi-uri "django-assets" version))
|
||||
(sha256
|
||||
(base32
|
||||
"0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365"))))
|
||||
(build-system python-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'check 'fix-tests
|
||||
(lambda _
|
||||
(begin
|
||||
;; https://github.com/miracle2k/django-assets/issues/87
|
||||
(substitute* "tests/__init__.py"
|
||||
(("settings.configure.*")
|
||||
(string-append
|
||||
"settings.configure(\n"
|
||||
"INSTALLED_APPS=['django_assets', "
|
||||
"'django.contrib.staticfiles'],\n"
|
||||
"TEMPLATES=[{'BACKEND': "
|
||||
"'django.template.backends.django.DjangoTemplates'}],\n"
|
||||
")\n")))
|
||||
;; These tests fail
|
||||
(substitute* "tests/test_django.py"
|
||||
(("TestLoader") "NoTestLoader"))))))))
|
||||
(native-inputs
|
||||
`(("python-nose" ,python-nose)))
|
||||
(propagated-inputs
|
||||
`(("python-django" ,python-django)
|
||||
("python-webassets" ,python-webassets)))
|
||||
(home-page "https://github.com/miracle2k/django-assets")
|
||||
(synopsis "Asset management for Django")
|
||||
(description
|
||||
"Asset management for Django, to compress and merge CSS and Javascript
|
||||
files. Integrates the webassets library with Django, adding support for
|
||||
merging, minifying and compiling CSS and Javascript files.")
|
||||
(license license:bsd-2)))
|
||||
|
||||
(define-public python2-django-assets
|
||||
(package-with-python2 python-django-assets))
|
||||
|
|
Loading…
Reference in a new issue