[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
40/46: gnu: Add python-django-compressor.
From: |
guix-commits |
Subject: |
40/46: gnu: Add python-django-compressor. |
Date: |
Tue, 21 Jul 2020 08:49:47 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit da3dbd61edc57007c78f51de45b6cbcafdfce844
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 21 14:30:59 2020 +0300
gnu: Add python-django-compressor.
* gnu/packages/django.scm (python-django-compressor): New variable.
---
gnu/packages/django.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 119d23d..d2faff3 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -34,6 +34,7 @@
#:use-module (gnu packages check)
#:use-module (gnu packages geo)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-compression)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages sphinx)
@@ -1198,6 +1199,51 @@ a single block.")
forms using your favorite CSS framework, without writing template code.")
(license license:expat)))
+(define-public python-django-compressor
+ (package
+ (name "python-django-compressor")
+ (version "2.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "django_compressor" version))
+ (sha256
+ (base32
+ "0kx7bclfa0sxlsz6ka70zr9ra00lks0hmv1kc99wbanx6xhirvfj"))))
+ (build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (if tests?
+ (begin
+ (setenv "DJANGO_SETTINGS_MODULE" "compressor.test_settings")
+ (invoke "django-admin" "test"
+ "--pythonpath=."))
+ #t))))
+ ;; Tests fail with beautifulsoup 4.9+
+ ;; https://github.com/django-compressor/django-compressor/issues/998
+ #:tests? #f))
+ (propagated-inputs
+ `(("python-django-appconf" ,python-django-appconf)
+ ("python-rcssmin" ,python-rcssmin)
+ ("python-rjsmin" ,python-rjsmin)))
+ (native-inputs
+ `(("python-beautifulsoup4" ,python-beautifulsoup4)
+ ("python-brotli" ,python-brotli)
+ ("python-csscompressor" ,python-csscompressor)
+ ("python-django-sekizai" ,python-django-sekizai)
+ ("python-mock" ,python-mock)))
+ (home-page "https://django-compressor.readthedocs.io/en/latest/")
+ (synopsis
+ "Compress linked and inline JavaScript or CSS into single cached files")
+ (description
+ "Django Compressor combines and compresses linked and inline Javascript or
+CSS in a Django templates into cacheable static files by using the compress
+template tag.")
+ (license license:expat)))
+
(define-public python-django-override-storage
(package
(name "python-django-override-storage")
- 15/46: gnu: python-zope-component: Update to 4.6.2., (continued)
- 15/46: gnu: python-zope-component: Update to 4.6.2., guix-commits, 2020/07/21
- 17/46: gnu: Add python-authheaders., guix-commits, 2020/07/21
- 23/46: gnu: Add python-flufl-testing., guix-commits, 2020/07/21
- 24/46: gnu: Add python-aiosmtpd., guix-commits, 2020/07/21
- 26/46: gnu: Add python-rcssmin., guix-commits, 2020/07/21
- 29/46: gnu: Add python-csscompressor., guix-commits, 2020/07/21
- 30/46: gnu: gunicorn-bootstrap: Re-indent., guix-commits, 2020/07/21
- 31/46: gnu: Add python-django-picklefield., guix-commits, 2020/07/21
- 35/46: gnu: python-django-allauth: Update to 0.40.0., guix-commits, 2020/07/21
- 38/46: gnu: python-django-testing: Update to 0.5.0., guix-commits, 2020/07/21
- 40/46: gnu: Add python-django-compressor.,
guix-commits <=
- 42/46: gnu: python-mailmanclient: Update to 3.3.1., guix-commits, 2020/07/21
- 45/46: gnu: Add python-hyperkitty., guix-commits, 2020/07/21
- 16/46: gnu: Add python-zope-copy., guix-commits, 2020/07/21
- 37/46: gnu: python-django-testing: Fix tests., guix-commits, 2020/07/21
- 43/46: gnu: Add mailman., guix-commits, 2020/07/21
- 46/46: gnu: postorius: Update to 1.3.3., guix-commits, 2020/07/21
- 22/46: gnu: Add python-flufl-bounce., guix-commits, 2020/07/21
- 28/46: gnu: Add python-pysolr., guix-commits, 2020/07/21
- 41/46: gnu: Add python-django-mailman3., guix-commits, 2020/07/21
- 44/46: gnu: Add python-mailman-hyperkitty., guix-commits, 2020/07/21