1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
3 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
4 ;;; Copyright © 2017 ng0 <ng0@n0.is>
5 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
6 ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages django)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (guix packages)
27 #:use-module (guix download)
28 #:use-module (guix build-system python)
29 #:use-module (gnu packages)
30 #:use-module (gnu packages base)
31 #:use-module (gnu packages databases)
32 #:use-module (gnu packages check)
33 #:use-module (gnu packages python)
34 #:use-module (gnu packages python-web)
35 #:use-module (gnu packages python-xyz)
36 #:use-module (gnu packages time))
38 (define-public python-django
40 (name "python-django")
44 (uri (pypi-uri "Django" version))
47 "0h90kdq8r4y8wa73hdxmyy5psnwlg61dcq3qsa098cpfiyh9vaa3"))))
48 (build-system python-build-system)
50 '(#:modules ((srfi srfi-1)
51 (guix build python-build-system)
54 (modify-phases %standard-phases
55 (add-before 'check 'set-tzdir
56 (lambda* (#:key inputs #:allow-other-keys)
57 ;; The test-suite tests timezone-dependent functions, thus tzdata
58 ;; needs to be available.
60 (string-append (assoc-ref inputs "tzdata")
64 (lambda* (#:key inputs #:allow-other-keys)
66 (string-append ".:" (getenv "PYTHONPATH")))
67 (substitute* "tests/admin_scripts/tests.py"
68 (("python_path = \\[")
69 (string-append "python_path = ['"
72 (assoc-ref inputs "python-pytz")
74 (string-split (getenv "PYTHONPATH")
77 (invoke "python" "tests/runtests.py"))))))
78 ;; TODO: Install extras/django_bash_completion.
80 `(("tzdata" ,tzdata-for-tests)
81 ;; bcrypt and argon2-cffi are extra requirements not yet in guix
82 ;;("python-argon2-cffi" ,python-argon2-cffi) ; >= 16.1.0
83 ;;("python-bcrypt" ,python-bcrypt) ; not py-bcrypt!
84 ;; Remaining packages are test requirements taken from
85 ;; tests/requirements/py3.txt
86 ("python-docutils" ,python-docutils)
87 ;; optional for tests: ("python-geoip2" ,python-geoip2)
88 ("python-jinja2" ,python-jinja2) ; >= 2.7
89 ;; optional for tests: ("python-memcached" ,python-memcached)
90 ("python-numpy" ,python-numpy)
91 ("python-pillow" ,python-pillow)
92 ("python-pyyaml" ,python-pyyaml)
93 ;; optional for tests: ("python-selenium" ,python-selenium)
94 ("python-sqlparse" ,python-sqlparse)
95 ("python-tblib" ,python-tblib)))
97 `(("python-pytz" ,python-pytz)))
98 (home-page "http://www.djangoproject.com/")
99 (synopsis "High-level Python Web framework")
101 "Django is a high-level Python Web framework that encourages rapid
102 development and clean, pragmatic design. It provides many tools for building
103 any Web site. Django focuses on automating as much as possible and adhering
104 to the @dfn{don't repeat yourself} (DRY) principle.")
105 (license license:bsd-3)
106 (properties `((python2-variant . ,(delay python2-django))
107 (cpe-name . "django")))))
109 (define-public python2-django
110 (let ((base (package-with-python2 (strip-python2-variant python-django))))
114 `(;; Test requirements for Python 2 taken from
115 ;; tests/requirements/py3.txt: enum34 and mock.
116 ("python2-enum34" ,python2-enum34)
117 ("python2-mock" ,python2-mock)
118 ;; When adding memcached mind: for Python 2 memcached <= 1.53 is
120 ,@(package-native-inputs base))))))
122 (define-public python-django-simple-math-captcha
124 (name "python-django-simple-math-captcha")
128 (uri (pypi-uri "django-simple-math-captcha" version))
131 "0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd"))))
132 (build-system python-build-system)
134 ;; FIXME: Upstream uses a 'runtests.py' script that is not
135 ;; present in the pypi tarball.
138 `(("python-django" ,python-django)))
139 (home-page "https://github.com/alsoicode/django-simple-math-captcha")
140 (synopsis "Easy-to-use math field/widget captcha for Django forms")
142 "A multi-value-field that presents a human answerable question,
143 with no settings.py configuration necessary, but instead can be configured
144 with arguments to the field constructor.")
145 (license license:asl2.0)))
147 (define-public python2-django-simple-math-captcha
148 (package-with-python2 python-django-simple-math-captcha))
150 (define-public python-pytest-django
152 (name "python-pytest-django")
156 (uri (pypi-uri "pytest-django" version))
159 "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303"))))
160 (build-system python-build-system)
162 `(#:tests? #f ; FIXME: How to run tests?
164 (modify-phases %standard-phases
165 (add-after 'unpack 'patch-setuppy
167 (substitute* "setup.py"
168 (("setuptools_scm==1.11.1") "setuptools_scm"))
171 `(("python-django" ,python-django)
172 ("python-setuptools-scm" ,python-setuptools-scm)))
174 `(("python-pytest" ,python-pytest)))
175 (home-page "http://pytest-django.readthedocs.org/")
176 (synopsis "Django plugin for py.test")
177 (description "Pytest-django is a plugin for py.test that provides a set of
178 useful tools for testing Django applications and projects.")
179 (license license:bsd-3)))
181 (define-public python2-pytest-django
182 (package-with-python2 python-pytest-django))
184 (define-public python-django-filter
186 (name "python-django-filter")
190 (uri (pypi-uri "django-filter" version))
193 "0slpfqfhnjrzlrb6vmswyhrzn01p84s16j2x1xib35gg4fxg23pc"))))
194 (build-system python-build-system)
197 (modify-phases %standard-phases
200 (invoke "python" "runtests.py"))))))
202 `(("python-django" ,python-django)
203 ("python-djangorestframework" ,python-djangorestframework)
204 ("python-django-crispy-forms" ,python-django-crispy-forms)
205 ("python-mock" ,python-mock)))
206 (home-page "https://django-filter.readthedocs.io/en/latest/")
207 (synopsis "Reusable Django application to filter querysets dynamically")
209 "Django-filter is a generic, reusable application to alleviate writing
210 some of the more mundane bits of view code. Specifically, it allows users to
211 filter down a queryset based on a model’s fields, displaying the form to let
213 (license license:bsd-3)))
215 (define-public python2-django-filter
216 (package-with-python2 python-django-filter))
218 (define-public python-django-allauth
220 (name "python-django-allauth")
225 (uri (pypi-uri "django-allauth" version))
228 "17l0acpr3cihdndzccjhgv58f9z170v2qwx7w0b8w6235x646i24"))))
229 (build-system python-build-system)
232 (modify-phases %standard-phases
233 ;; TODO: Tagging the tests requiring the web could be done upstream.
234 (add-before 'check 'skip-test-requiring-network-access
236 (substitute* "allauth/socialaccount/providers/openid/tests.py"
237 (("import override_settings") "import tag, override_settings")
239 "@tag('requires-web')
243 ;; TODO: investigate why this test fails
244 (delete-file "allauth/socialaccount/providers/cern/tests.py")
245 (setenv "DJANGO_SETTINGS_MODULE" "test_settings")
246 (invoke "django-admin"
250 "--exclude-tag=requires-web"))))))
252 `(("python-openid" ,python-openid)
253 ("python-requests" ,python-requests)
254 ("python-requests-oauthlib" ,python-requests-oauthlib)))
256 `(("python-mock" ,python-mock)))
258 `(("python-django" ,python-django)))
259 (home-page "https://github.com/pennersr/django-allauth")
260 (synopsis "Set of Django applications addressing authentication")
262 "Integrated set of Django applications addressing authentication,
263 registration, account management as well as 3rd party (social)
264 account authentication.")
265 (license license:expat)))
267 (define-public python2-django-allauth
268 (package-with-python2 python-django-allauth))
270 (define-public python-django-debug-toolbar
272 (name "python-django-debug-toolbar")
278 "https://github.com/jazzband/django-debug-toolbar/archive/"
280 (file-name (string-append name "-" version ".tar.gz"))
283 "1rww056hyzks8spbgf4h7kf6ybxlc5p08a2b6gn1nqrrzs4yx9sy"))))
284 (build-system python-build-system)
286 `(("python-sqlparse" ,python-sqlparse)
287 ("python-django" ,python-django)))
289 `(("python-django-jinja" ,python-django-jinja)
290 ("python-html5lib" ,python-html5lib)))
293 (modify-phases %standard-phases
296 (invoke "make" "test"))))))
298 "https://github.com/jazzband/django-debug-toolbar")
299 (synopsis "Toolbar to help with developing Django applications")
301 "A configurable set of panels that display information about the current
302 request and response as a toolbar on the rendered page.")
303 (license license:bsd-3)))
305 (define-public python-django-gravatar2
307 (name "python-django-gravatar2")
312 (uri (pypi-uri "django-gravatar2" version))
315 "1qsv40xywbqsf4mkrmsswrpzqd7nfljxpfiim9an2z3dykn5rka6"))))
316 (build-system python-build-system)
318 '(;; TODO: The django project for the tests is missing from the release.
321 `(("python-django" ,python-django)))
322 (home-page "https://github.com/twaddington/django-gravatar")
323 (synopsis "Gravatar support for Django, improved version")
325 "Essential Gravatar support for Django. Features helper methods,
326 templatetags and a full test suite.")
327 (license license:expat)))
329 (define-public python2-django-gravatar2
330 (package-with-python2 python-django-gravatar2))
332 (define-public python-django-assets
334 (name "python-django-assets")
338 (uri (pypi-uri "django-assets" version))
341 "0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365"))))
342 (build-system python-build-system)
345 (modify-phases %standard-phases
346 (add-before 'check 'fix-tests
349 ;; https://github.com/miracle2k/django-assets/issues/87
350 (substitute* "tests/__init__.py"
351 (("settings.configure.*")
353 "settings.configure(\n"
354 "INSTALLED_APPS=['django_assets', "
355 "'django.contrib.staticfiles'],\n"
356 "TEMPLATES=[{'BACKEND': "
357 "'django.template.backends.django.DjangoTemplates'}],\n"
360 (substitute* "tests/test_django.py"
361 (("TestLoader") "NoTestLoader"))))))))
363 `(("python-nose" ,python-nose)))
365 `(("python-django" ,python-django)
366 ("python-webassets" ,python-webassets)))
367 (home-page "https://github.com/miracle2k/django-assets")
368 (synopsis "Asset management for Django")
370 "Asset management for Django, to compress and merge CSS and Javascript
371 files. Integrates the webassets library with Django, adding support for
372 merging, minifying and compiling CSS and Javascript files.")
373 (license license:bsd-2)))
375 (define-public python2-django-assets
376 (package-with-python2 python-django-assets))
378 (define-public python-django-jinja
380 (name "python-django-jinja")
386 "https://github.com/niwinz/django-jinja/archive/"
388 (file-name (string-append name "-" version ".tar.gz"))
391 "0bzrb4m6wx9ph5cpvz7wpvg5k6ksvj0dnxlg0nhhqskhvp46brs1"))))
392 (build-system python-build-system)
394 `(("python-django" ,python-django)
395 ("python-jinja2" ,python-jinja2)
396 ("python-pytz" ,python-pytz)
397 ("python-django-pipeline" ,python-django-pipeline)))
399 '(;; TODO Tests currently fail due to issues with the configuration for
403 (modify-phases %standard-phases
405 (lambda* (#:key tests? #:allow-other-keys)
408 (with-directory-excursion "testing"
409 (invoke "python" "runtests.py"))))))))
411 "https://niwinz.github.io/django-jinja/latest/")
412 (synopsis "Simple jinja2 templating backend for Django")
414 "This package provides a templating backend for Django, using Jinja2. It
415 provides certain advantages over the builtin Jinja2 backend in Django, for
416 example, explicit calls to callables from templates and better performance.")
417 (license license:bsd-3)))
419 (define-public python-django-jsonfield
421 (name "python-django-jsonfield")
425 (uri (pypi-uri "jsonfield" version))
428 "19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy"))))
429 (build-system python-build-system)
432 (modify-phases %standard-phases
433 (add-before 'check 'fix-tests
435 (substitute* "jsonfield/tests.py"
436 (("django.forms.util") "django.forms.utils")))))))
438 `(("python-django" ,python-django)))
439 (home-page "https://github.com/bradjasper/django-jsonfield")
440 (synopsis "Store validated JSON in your model")
442 "Django-jsonfield is a reusable Django field that allows you to store
443 validated JSON in your model. It silently takes care of serialization. To
444 use, simply add the field to one of your models.")
445 (license license:expat)))
447 (define-public python2-django-jsonfield
448 (package-with-python2 python-django-jsonfield))
450 (define-public python-dj-database-url
452 (name "python-dj-database-url")
456 (uri (pypi-uri "dj-database-url" version))
459 "024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6"))))
460 (build-system python-build-system)
461 (home-page "https://github.com/kennethreitz/dj-database-url")
462 (synopsis "Use Database URLs in your Django Application")
464 "This simple Django utility allows you to utilize the 12factor inspired
465 DATABASE_URL environment variable to configure your Django application.
467 The dj_database_url.config method returns a Django database connection
468 dictionary, populated with all the data specified in your URL. There is also a
469 conn_max_age argument to easily enable Django’s connection pool.")
470 (license license:bsd-2)))
472 (define-public python2-dj-database-url
473 (package-with-python2 python-dj-database-url))
475 (define-public python-django-bulk-update
477 (name "python-django-bulk-update")
481 (uri (pypi-uri "django-bulk-update" version))
484 "0mbng9m7swfc0dnidipbzlxfhlfjrv755dlnha5s4m9mgdxb1fhc"))))
485 (build-system python-build-system)
487 ;; tests don't support django 1.10, but the module seems to work.
490 `(("six" ,python-six)
491 ("jsonfield" ,python-django-jsonfield)
492 ("python-dj-database-url" ,python-dj-database-url)))
494 `(("python-django" ,python-django)))
495 (home-page "https://github.com/aykut/django-bulk-update")
496 (synopsis "Simple bulk update over Django ORM or with helper function")
498 "Simple bulk update over Django ORM or with helper function. This
499 project aims to bulk update given objects using one query over Django ORM.")
500 (license license:expat)))
502 (define-public python2-django-bulk-update
503 (package-with-python2 python-django-bulk-update))
505 (define-public python-django-contact-form
507 (name "python-django-contact-form")
511 (uri (pypi-uri "django-contact-form" version))
514 "0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17"))))
515 (build-system python-build-system)
518 (modify-phases %standard-phases
521 ;; the next version will need "make test"
522 (invoke "flake8" "contact_form")
523 (invoke "coverage" "run" "contact_form/runtests.py")
524 (invoke "coverage" "report" "-m" "--fail-under" "0"))))))
526 `(("python-coverage" ,python-coverage)
527 ("python-flake8" ,python-flake8)))
529 `(("python-django" ,python-django)))
530 (home-page "https://github.com/ubernostrum/django-contact-form")
531 (synopsis "Contact form for Django")
533 "This application provides simple, extensible contact-form functionality
535 (license license:bsd-3)))
537 (define-public python2-django-contact-form
538 (package-with-python2 python-django-contact-form))
540 (define-public python-django-contrib-comments
542 (name "python-django-contrib-comments")
546 (uri (pypi-uri "django-contrib-comments" version))
549 "0bxsgw8jrkhg6r5s0z6ksfi4w8yknaqb1s9acmxd9pm3pnsnp5kx"))))
550 (build-system python-build-system)
552 `(("python-django" ,python-django)))
553 (home-page "https://github.com/django/django-contrib-comments")
554 (synopsis "Comments framework")
556 "Django used to include a comments framework; since Django 1.6 it's been
557 separated to a separate project. This is that project. This framework can be
558 used to attach comments to any model, so you can use it for comments on blog
559 entries, photos, book chapters, or anything else.")
560 (license license:bsd-3)))
562 (define-public python2-django-contrib-comments
563 (package-with-python2 python-django-contrib-comments))
565 (define-public python-django-overextends
567 (name "python-django-overextends")
571 (uri (pypi-uri "django-overextends" version))
574 "0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm"))))
575 (build-system python-build-system)
578 (modify-phases %standard-phases
580 (lambda _ (invoke "./test_project/manage.py" "test"))))))
582 `(("python-django" ,python-django)))
584 `(("sphinx-me" ,python-sphinx-me)))
585 (home-page "https://github.com/stephenmcd/django-overextends")
586 (synopsis "Circular template inheritance")
588 "A Django reusable app providing the overextends template tag, a drop-in
589 replacement for Django's extends tag, which allows you to use circular template
590 inheritance. The primary use-case for overextends is to simultaneously
591 override and extend templates from other reusable apps, in your own Django
593 (license license:bsd-2)))
595 (define-public python2-django-overextends
596 (package-with-python2 python-django-overextends))
598 (define-public python-django-pipeline
600 (name "python-django-pipeline")
605 (uri (pypi-uri "django-pipeline" version))
608 "1a207y71r7za033ira0qmh2yrgp5rq0l04gw2fg9b8jri7sslrzg"))))
609 (build-system python-build-system)
612 (modify-phases %standard-phases
613 (add-after 'unpack 'patch-source
615 (substitute* "tests/tests/test_compiler.py"
616 (("\\/usr\\/bin\\/env")
619 (lambda*(#:key tests? #:allow-other-keys)
623 (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
624 (invoke "django-admin" "test" "tests"))))))))
626 `(("python-django" ,python-django)
627 ("python-slimit" ,python-slimit)
628 ("python-jsmin" ,python-jsmin)))
630 "https://github.com/jazzband/django-pipeline")
631 (synopsis "Asset packaging library for Django")
633 "Pipeline is an asset packaging library for Django, providing both CSS
634 and JavaScript concatenation and compression, built-in JavaScript template
635 support, and optional data-URI image and font embedding.")
636 (license license:expat)))
638 (define-public python-django-redis
640 (name "python-django-redis")
644 (uri (pypi-uri "django-redis" version))
647 "1rxcwnv9ik0swkwvfqdi9i9baw6n8if5pj6q63fjh4p9chw3j2xg"))))
648 (build-system python-build-system)
651 (modify-phases %standard-phases
654 (invoke "redis-server" "--daemonize" "yes")
655 (with-directory-excursion "tests"
656 (invoke "python" "runtests.py")))))))
658 `(("python-fakeredis" ,python-fakeredis)
659 ("python-hiredis" ,python-hiredis)
660 ("python-mock" ,python-mock)
661 ("python-msgpack" ,python-msgpack)
664 `(("python-django" ,python-django)
665 ("python-redis" ,python-redis)))
666 (home-page "https://github.com/niwibe/django-redis")
667 (synopsis "Full featured redis cache backend for Django")
669 "Full featured redis cache backend for Django.")
670 (license license:bsd-3)))
672 (define-public python2-django-redis
673 (package-with-python2 python-django-redis))
675 (define-public python-django-rq
677 (name "python-django-rq")
681 (uri (pypi-uri "django-rq" version))
684 "0xh6qa7i779vh58lwwv6yk0wx8bi38mvmpz79grnl2cl8531r928"))))
685 (build-system python-build-system)
688 (modify-phases %standard-phases
691 (invoke "redis-server" "--daemonize" "yes")
692 (invoke "django-admin.py" "test" "django_rq"
693 "--settings=django_rq.tests.settings"
694 "--pythonpath="))))))
696 `(("python-mock" ,python-mock)
699 `(("python-django" ,python-django)
700 ("python-rq" ,python-rq)))
701 (home-page "https://github.com/ui/django-rq")
702 (synopsis "Django integration with RQ")
704 "Django integration with RQ, a Redis based Python queuing library.
705 Django-RQ is a simple app that allows you to configure your queues in django's
706 settings.py and easily use them in your project.")
707 (license license:expat)))
709 (define-public python2-django-rq
710 (package-with-python2 python-django-rq))
712 (define-public python-django-sortedm2m
714 (name "python-django-sortedm2m")
718 (uri (pypi-uri "django-sortedm2m" version))
721 "0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi"))))
722 (build-system python-build-system)
727 `(("python-django" ,python-django)))
728 (home-page "https://github.com/gregmuellegger/django-sortedm2m")
729 (synopsis "Drop-in replacement for django's own ManyToManyField")
731 "Sortedm2m is a drop-in replacement for django's own ManyToManyField.
732 The provided SortedManyToManyField behaves like the original one but remembers
733 the order of added relations.")
734 (license license:bsd-3)))
736 (define-public python2-django-sortedm2m
737 (package-with-python2 python-django-sortedm2m))
739 (define-public python-django-appconf
741 (name "python-django-appconf")
745 (uri (pypi-uri "django-appconf" version))
748 "1qw0p9qh78bvkgi38ba58djwn0rd5j1lrkg2c2wk5wb7snj3rw9m"))))
749 (build-system python-build-system)
751 `(("python-django" ,python-django)
752 ("python-six" ,python-six)))
753 (home-page "https://github.com/django-compressor/django-appconf")
754 (synopsis "Handle configuration defaults of packaged Django apps")
756 "This app precedes Django's own AppConfig classes that act as \"objects
757 [to] store metadata for an application\" inside Django's app loading mechanism.
758 In other words, they solve a related but different use case than
759 django-appconf and can't easily be used as a replacement. The similarity in
760 name is purely coincidental.")
761 (license license:bsd-3)))
763 (define-public python2-django-appconf
764 (package-with-python2 python-django-appconf))
766 (define-public python-django-statici18n
768 (name "python-django-statici18n")
772 (uri (pypi-uri "django-statici18n" version))
775 "0alcf4g1nv69njhq5k3qw4mfl2k6dc18bik5nk0g1mnp3m8zyz7k"))))
776 (build-system python-build-system)
778 `(("python-django" ,python-django)
779 ("django-appconf" ,python-django-appconf)))
780 (home-page "https://github.com/zyegfryed/django-statici18n")
781 (synopsis "Generate JavaScript catalog to static files")
783 "A Django app that provides helper for generating JavaScript catalog to
785 (license license:bsd-3)))
787 (define-public python2-django-statici18n
788 (package-with-python2 python-django-statici18n))
790 (define-public pootle
797 (uri (pypi-uri "Pootle" version ".tar.bz2"))
800 "1ng8igq0alsqzasgxdh3fb23581anyzp121h9041pwdzzv98kn4m"))))
801 (build-system python-build-system)
803 `(; pootle supports only python2.
805 ;; tests are not run and fail with "pytest_pootle/data/po/.tmp: No such
806 ;; file or directory". If we create this directory,
807 ;; pytest_pootle/data/po/terminology.po is missing.
810 (modify-phases %standard-phases
811 (add-before 'build 'fix-requirements
813 (substitute* "Pootle.egg-info/requires.txt"
816 (substitute* "requirements/tests.txt"
817 (("==3.0.6") ">=3.0.6"))
818 (substitute* "requirements/base.txt"
820 (("2.0.0") "2.1.0")))))))
822 `(("django-allauth" ,python2-django-allauth)
823 ("django-assets" ,python2-django-assets)
824 ("django-bulk-update" ,python2-django-bulk-update)
825 ("django-contact-form" ,python2-django-contact-form)
826 ("django-contrib-comments" ,python2-django-contrib-comments)
827 ("django-overextends" ,python2-django-overextends)
828 ("django-redis" ,python2-django-redis)
829 ("django-rq" ,python2-django-rq)
830 ("django-sortedm2m" ,python2-django-sortedm2m)
831 ("django-statici18n" ,python2-django-statici18n)
832 ("babel" ,python2-babel)
833 ("cssmin" ,python2-cssmin)
834 ("diff-match-patch" ,python2-diff-match-patch)
835 ("dirsync" ,python2-dirsync)
836 ("elasticsearch" ,python2-elasticsearch)
837 ("jsonfield" ,python2-django-jsonfield)
838 ("lxml" ,python2-lxml)
839 ("dateutil" ,python2-dateutil)
840 ("levenshtein" ,python2-levenshtein)
841 ("mysqlclient" ,python2-mysqlclient)
842 ("psycopg2" ,python2-psycopg2)
843 ("pytz" ,python2-pytz)
845 ("scandir" ,python2-scandir)
846 ("stemming" ,python2-stemming)
847 ("translate-toolkit" ,python2-translate-toolkit)))
849 `(("python2-pytest" ,python2-pytest)
850 ("python2-pytest-django" ,python2-pytest-django)
851 ("python2-pytest-catchlog" ,python2-pytest-catchlog)
852 ("python2-pytest-cov" ,python2-pytest-cov)
853 ("python2-factory-boy" ,python2-factory-boy)))
854 (home-page "http://pootle.translatehouse.org/")
855 (synopsis "Community localization server")
857 "Pootle is an online translation and localization tool. It works to
858 lower the barrier of entry, providing tools to enable teams to work towards
859 higher quality while welcoming newcomers.")
860 (license license:gpl3+)))
862 (define-public python-django-tagging
864 (name "python-django-tagging")
869 (uri (pypi-uri "django-tagging" version))
872 "0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1"))))
873 (build-system python-build-system)
874 (home-page "https://github.com/Fantomas42/django-tagging")
875 (synopsis "Generic tagging application for Django")
876 (description "This package provides a generic tagging application for
877 Django projects, which allows association of a number of tags with any
878 @code{Model} instance and makes retrieval of tags simple.")
879 (license license:bsd-3)))
881 (define-public python2-django-tagging
882 (package-with-python2 python-django-tagging))
884 (define-public python-djangorestframework
886 (name "python-djangorestframework")
891 (uri (pypi-uri "djangorestframework" version))
894 "11qv117gqwswxjljs7wafxg1hyzzlx3qrviwlk9hw41bsbl997lz"))))
895 (build-system python-build-system)
897 '(;; No included tests
900 `(("python-django" ,python-django)))
901 (home-page "https://www.django-rest-framework.org")
902 (synopsis "Toolkit for building Web APIs with Django")
904 "The Django REST framework is for building Web APIs with Django. It
905 provides features like a web browseable API and authentication policies.")
906 (license license:bsd-2)))
908 (define-public python-django-crispy-forms
910 (name "python-django-crispy-forms")
915 (uri (pypi-uri "django-crispy-forms" version))
918 "0pv7y648i8iz7mf64gkjizpbx5d01ap2s4vqqa30n38if6wvlljr"))))
919 (build-system python-build-system)
921 '(;; No included tests
924 `(("python-django" ,python-django)))
926 "http://github.com/maraujop/django-crispy-forms")
927 (synopsis "Tool to control Django forms without custom templates")
929 "@code{django-crispy-forms} lets you easily build, customize and reuse
930 forms using your favorite CSS framework, without writing template code.")
931 (license license:expat)))
933 (define-public python-django-override-storage
935 (name "python-django-override-storage")
940 (uri (pypi-uri "django-override-storage" version))
943 "0sqz1mh0yn8b1bzz2gr2azfiynljigm5gkzavp5n17zd3j2jg57x"))))
944 (build-system python-build-system)
946 `(("python-django" ,python-django)))
948 "https://github.com/danifus/django-override-storage")
949 (synopsis "Django test helpers to manage file storage side effects")
951 "This project provides tools to help reduce the side effects of using
952 FileFields during tests.")
953 (license license:expat)))