[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/36: gnu: Add python-django-assets.
From: |
julien lepiller |
Subject: |
20/36: gnu: Add python-django-assets. |
Date: |
Thu, 11 May 2017 16:01:28 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 01c64cb83fa98d7d1c33100a4bff37884599f274
Author: Julien Lepiller <address@hidden>
Date: Sat Apr 22 18:16:07 2017 +0200
gnu: Add python-django-assets.
* gnu/packages/django.scm (python-django-assets, python2-django-assets):
New variables.
---
gnu/packages/django.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 2038473..dad777b 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -245,3 +245,49 @@ templatetags and a full test suite.")
(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))
- 31/36: gnu: Add python-django-sortedm2m., (continued)
- 31/36: gnu: Add python-django-sortedm2m., julien lepiller, 2017/05/11
- 33/36: gnu: Add python-django-statici18n., julien lepiller, 2017/05/11
- 34/36: gnu: python-pytest-django: Update to 3.1.2., julien lepiller, 2017/05/11
- 21/36: gnu: Add python-django-jsonfield., julien lepiller, 2017/05/11
- 23/36: gnu: Add python-django-bulk-update., julien lepiller, 2017/05/11
- 11/36: gnu: Add python-nosexcover., julien lepiller, 2017/05/11
- 25/36: gnu: Add python-django-contrib-comments., julien lepiller, 2017/05/11
- 36/36: gnu: Add pootle., julien lepiller, 2017/05/11
- 24/36: gnu: Add python-django-contact-form., julien lepiller, 2017/05/11
- 29/36: gnu: Add python-django-redis., julien lepiller, 2017/05/11
- 20/36: gnu: Add python-django-assets.,
julien lepiller <=
- 26/36: gnu: Add python-django-overextends., julien lepiller, 2017/05/11
- 28/36: gnu: Add python-fakeredis., julien lepiller, 2017/05/11
- 35/36: gnu: Fix python2-django-allauth., julien lepiller, 2017/05/11
- 19/36: gnu: Add python-mysqlclient., julien lepiller, 2017/05/11
- 30/36: gnu: Add python-django-rq., julien lepiller, 2017/05/11
- 32/36: gnu: Add python-django-appconf., julien lepiller, 2017/05/11