1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
3 ;;; Copyright © 2016, 2019 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>
8 ;;; Copyright © 2019 Sam <smbaines8@gmail.com>
10 ;;; This file is part of GNU Guix.
12 ;;; GNU Guix is free software; you can redistribute it and/or modify it
13 ;;; under the terms of the GNU General Public License as published by
14 ;;; the Free Software Foundation; either version 3 of the License, or (at
15 ;;; your option) any later version.
17 ;;; GNU Guix is distributed in the hope that it will be useful, but
18 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;;; GNU General Public License for more details.
22 ;;; You should have received a copy of the GNU General Public License
23 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
25 (define-module (gnu packages django)
26 #:use-module ((guix licenses) #:prefix license:)
27 #:use-module (guix packages)
28 #:use-module (guix download)
29 #:use-module (guix git-download)
30 #:use-module (guix build-system python)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages base)
33 #:use-module (gnu packages databases)
34 #:use-module (gnu packages check)
35 #:use-module (gnu packages python)
36 #:use-module (gnu packages python-web)
37 #:use-module (gnu packages python-xyz)
38 #:use-module (gnu packages sphinx)
39 #:use-module (gnu packages time)
40 #:use-module (gnu packages xml))
42 (define-public python-django
44 (name "python-django")
48 (uri (pypi-uri "Django" version))
51 "0rpgx212n8gh61nwizkyldvskna808xpcvawmavk5mc5c9cfh52k"))))
52 (build-system python-build-system)
54 '(#:modules ((srfi srfi-1)
55 (guix build python-build-system)
58 (modify-phases %standard-phases
59 (add-before 'check 'set-tzdir
60 (lambda* (#:key inputs #:allow-other-keys)
61 ;; The test-suite tests timezone-dependent functions, thus tzdata
62 ;; needs to be available.
64 (string-append (assoc-ref inputs "tzdata")
68 (lambda* (#:key inputs #:allow-other-keys)
70 (string-append ".:" (getenv "PYTHONPATH")))
71 (substitute* "tests/admin_scripts/tests.py"
72 (("python_path = \\[")
73 (string-append "python_path = ['"
76 (assoc-ref inputs "python-pytz")
78 (string-split (getenv "PYTHONPATH")
81 (invoke "python" "tests/runtests.py"))))))
82 ;; TODO: Install extras/django_bash_completion.
84 `(("tzdata" ,tzdata-for-tests)
85 ;; bcrypt and argon2-cffi are extra requirements not yet in guix
86 ;;("python-argon2-cffi" ,python-argon2-cffi) ; >= 16.1.0
87 ;;("python-bcrypt" ,python-bcrypt) ; not py-bcrypt!
88 ;; Remaining packages are test requirements taken from
89 ;; tests/requirements/py3.txt
90 ("python-docutils" ,python-docutils)
91 ;; optional for tests: ("python-geoip2" ,python-geoip2)
92 ("python-jinja2" ,python-jinja2) ; >= 2.7
93 ;; optional for tests: ("python-memcached" ,python-memcached)
94 ("python-numpy" ,python-numpy)
95 ("python-pillow" ,python-pillow)
96 ("python-pyyaml" ,python-pyyaml)
97 ;; optional for tests: ("python-selenium" ,python-selenium)
98 ("python-sqlparse" ,python-sqlparse)
99 ("python-tblib" ,python-tblib)))
101 `(("python-pytz" ,python-pytz)))
102 (home-page "http://www.djangoproject.com/")
103 (synopsis "High-level Python Web framework")
105 "Django is a high-level Python Web framework that encourages rapid
106 development and clean, pragmatic design. It provides many tools for building
107 any Web site. Django focuses on automating as much as possible and adhering
108 to the @dfn{don't repeat yourself} (DRY) principle.")
109 (license license:bsd-3)
110 (properties `((python2-variant . ,(delay python2-django))
111 (cpe-name . "django")))))
113 (define-public python2-django
114 (let ((base (package-with-python2 (strip-python2-variant python-django))))
118 `(;; Test requirements for Python 2 taken from
119 ;; tests/requirements/py3.txt: enum34 and mock.
120 ("python2-enum34" ,python2-enum34)
121 ("python2-mock" ,python2-mock)
122 ;; When adding memcached mind: for Python 2 memcached <= 1.53 is
124 ,@(package-native-inputs base))))))
126 (define-public python-django-extensions
128 (name "python-django-extensions")
133 ;; Fetch from the git repository, so that the tests can be run.
135 (url "https://github.com/django-extensions/django-extensions.git")
137 (file-name (string-append name "-" version))
140 "0p4qrdinrv6indczlc8dcnm528i5fzmcn9xk1ja7ycfkyk5x6j5w"))))
141 (build-system python-build-system)
143 '(#:tests? #f)) ;TODO collected 378 items / 3 errors / 1 skipped
145 `(("python-six" ,python-six)
146 ("python-vobject" ,python-vobject)
147 ("python-werkzeug" ,python-werkzeug)
148 ("python-dateutil" ,python-dateutil)
149 ("python-django" ,python-django)))
151 `(("python-mock" ,python-mock)
152 ("python-factory-boy" ,python-factory-boy)
153 ("python-tox" ,python-tox)
154 ("python-pytest" ,python-pytest)
155 ("python-pytest-cov" ,python-pytest-cov)
156 ("python-pytest-django" ,python-pytest-django)
157 ("python-shortuuid" , python-shortuuid)))
159 "https://github.com/django-extensions/django-extensions")
160 (synopsis "Custom management extensions for Django")
162 "Django-extensions extends Django providing, for example, management
163 commands, additional database fields and admin extensions.")
164 (license license:expat)))
166 (define-public python-django-simple-math-captcha
168 (name "python-django-simple-math-captcha")
172 (uri (pypi-uri "django-simple-math-captcha" version))
175 "0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd"))))
176 (build-system python-build-system)
178 ;; FIXME: Upstream uses a 'runtests.py' script that is not
179 ;; present in the pypi tarball.
182 `(("python-django" ,python-django)))
183 (home-page "https://github.com/alsoicode/django-simple-math-captcha")
184 (synopsis "Easy-to-use math field/widget captcha for Django forms")
186 "A multi-value-field that presents a human answerable question,
187 with no settings.py configuration necessary, but instead can be configured
188 with arguments to the field constructor.")
189 (license license:asl2.0)))
191 (define-public python2-django-simple-math-captcha
192 (package-with-python2 python-django-simple-math-captcha))
194 (define-public python-django-taggit
196 (name "python-django-taggit")
201 (uri (pypi-uri "django-taggit" version))
204 "044fzcpmns90kaxdi49qczlam4xsi8rl73rpfwvxx1gkcqzidgq1"))))
205 (build-system python-build-system)
208 (modify-phases %standard-phases
211 (invoke "python3" "-m" "django" "test" "--settings=tests.settings"))))))
213 `(("python-django" ,python-django)
214 ("python-isort" ,python-isort)))
216 `(("python-pytest" ,python-pytest)
217 ("python-mock" ,python-mock)))
219 "https://github.com/jazzband/django-taggit")
221 "Reusable Django application for simple tagging")
223 "Django-taggit is a reusable Django application for simple tagging.")
224 (license license:bsd-3)))
226 (define-public python-pytest-django
228 (name "python-pytest-django")
232 (uri (pypi-uri "pytest-django" version))
235 "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303"))))
236 (build-system python-build-system)
238 `(#:tests? #f ; FIXME: How to run tests?
240 (modify-phases %standard-phases
241 (add-after 'unpack 'patch-setuppy
243 (substitute* "setup.py"
244 (("setuptools_scm==1.11.1") "setuptools_scm"))
247 `(("python-django" ,python-django)
248 ("python-setuptools-scm" ,python-setuptools-scm)))
250 `(("python-pytest" ,python-pytest)))
251 (home-page "http://pytest-django.readthedocs.org/")
252 (synopsis "Django plugin for py.test")
253 (description "Pytest-django is a plugin for py.test that provides a set of
254 useful tools for testing Django applications and projects.")
255 (license license:bsd-3)))
257 (define-public python2-pytest-django
258 (package-with-python2 python-pytest-django))
260 (define-public python-django-filter
262 (name "python-django-filter")
266 (uri (pypi-uri "django-filter" version))
269 "0slpfqfhnjrzlrb6vmswyhrzn01p84s16j2x1xib35gg4fxg23pc"))))
270 (build-system python-build-system)
273 (modify-phases %standard-phases
276 (invoke "python" "runtests.py"))))))
278 `(("python-django" ,python-django)
279 ("python-djangorestframework" ,python-djangorestframework)
280 ("python-django-crispy-forms" ,python-django-crispy-forms)
281 ("python-mock" ,python-mock)))
282 (home-page "https://django-filter.readthedocs.io/en/latest/")
283 (synopsis "Reusable Django application to filter querysets dynamically")
285 "Django-filter is a generic, reusable application to alleviate writing
286 some of the more mundane bits of view code. Specifically, it allows users to
287 filter down a queryset based on a model’s fields, displaying the form to let
289 (license license:bsd-3)))
291 (define-public python2-django-filter
292 (package-with-python2 python-django-filter))
294 (define-public python-django-allauth
296 (name "python-django-allauth")
301 (uri (pypi-uri "django-allauth" version))
304 "17l0acpr3cihdndzccjhgv58f9z170v2qwx7w0b8w6235x646i24"))))
305 (build-system python-build-system)
308 (modify-phases %standard-phases
309 ;; TODO: Tagging the tests requiring the web could be done upstream.
310 (add-before 'check 'skip-test-requiring-network-access
312 (substitute* "allauth/socialaccount/providers/openid/tests.py"
313 (("import override_settings") "import tag, override_settings")
315 "@tag('requires-web')
319 ;; TODO: investigate why this test fails
320 (delete-file "allauth/socialaccount/providers/cern/tests.py")
321 (setenv "DJANGO_SETTINGS_MODULE" "test_settings")
322 (invoke "django-admin"
326 "--exclude-tag=requires-web"))))))
328 `(("python-openid" ,python-openid)
329 ("python-requests" ,python-requests)
330 ("python-requests-oauthlib" ,python-requests-oauthlib)))
332 `(("python-mock" ,python-mock)))
334 `(("python-django" ,python-django)))
335 (home-page "https://github.com/pennersr/django-allauth")
336 (synopsis "Set of Django applications addressing authentication")
338 "Integrated set of Django applications addressing authentication,
339 registration, account management as well as 3rd party (social)
340 account authentication.")
341 (license license:expat)))
343 (define-public python2-django-allauth
344 (package-with-python2 python-django-allauth))
346 (define-public python-django-debug-toolbar
348 (name "python-django-debug-toolbar")
354 (url "https://github.com/jazzband/django-debug-toolbar.git")
356 (file-name (git-file-name name version))
359 "0zr6yjsms97wlvvd17rdbrx01irkg887dn9x70c1hzfjmfvp9afk"))))
360 (build-system python-build-system)
362 `(("python-sqlparse" ,python-sqlparse)
363 ("python-django" ,python-django)))
365 `(("python-django-jinja" ,python-django-jinja)
366 ("python-html5lib" ,python-html5lib)))
369 (modify-phases %standard-phases
372 (invoke "make" "test"))))))
374 "https://github.com/jazzband/django-debug-toolbar")
375 (synopsis "Toolbar to help with developing Django applications")
377 "A configurable set of panels that display information about the current
378 request and response as a toolbar on the rendered page.")
379 (license license:bsd-3)))
381 (define-public python-django-gravatar2
383 (name "python-django-gravatar2")
388 (uri (pypi-uri "django-gravatar2" version))
391 "1qsv40xywbqsf4mkrmsswrpzqd7nfljxpfiim9an2z3dykn5rka6"))))
392 (build-system python-build-system)
394 '(;; TODO: The django project for the tests is missing from the release.
397 `(("python-django" ,python-django)))
398 (home-page "https://github.com/twaddington/django-gravatar")
399 (synopsis "Gravatar support for Django, improved version")
401 "Essential Gravatar support for Django. Features helper methods,
402 templatetags and a full test suite.")
403 (license license:expat)))
405 (define-public python2-django-gravatar2
406 (package-with-python2 python-django-gravatar2))
408 (define-public python-django-assets
410 (name "python-django-assets")
414 (uri (pypi-uri "django-assets" version))
417 "0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365"))))
418 (build-system python-build-system)
421 (modify-phases %standard-phases
422 (add-before 'check 'fix-tests
425 ;; https://github.com/miracle2k/django-assets/issues/87
426 (substitute* "tests/__init__.py"
427 (("settings.configure.*")
429 "settings.configure(\n"
430 "INSTALLED_APPS=['django_assets', "
431 "'django.contrib.staticfiles'],\n"
432 "TEMPLATES=[{'BACKEND': "
433 "'django.template.backends.django.DjangoTemplates'}],\n"
436 (substitute* "tests/test_django.py"
437 (("TestLoader") "NoTestLoader"))))))))
439 `(("python-nose" ,python-nose)))
441 `(("python-django" ,python-django)
442 ("python-webassets" ,python-webassets)))
443 (home-page "https://github.com/miracle2k/django-assets")
444 (synopsis "Asset management for Django")
446 "Asset management for Django, to compress and merge CSS and Javascript
447 files. Integrates the webassets library with Django, adding support for
448 merging, minifying and compiling CSS and Javascript files.")
449 (license license:bsd-2)))
451 (define-public python2-django-assets
452 (package-with-python2 python-django-assets))
454 (define-public python-django-jinja
456 (name "python-django-jinja")
462 (url "https://github.com/niwinz/django-jinja.git")
464 (file-name (git-file-name name version))
467 "1fcrxlznlq1xvl26y3j1r22vvy6m08r5l97xi2wj50rdmxhfvhis"))))
468 (build-system python-build-system)
470 `(("python-django" ,python-django)
471 ("python-jinja2" ,python-jinja2)
472 ("python-pytz" ,python-pytz)
473 ("python-django-pipeline" ,python-django-pipeline)))
475 '(;; TODO Tests currently fail due to issues with the configuration for
479 (modify-phases %standard-phases
481 (lambda* (#:key tests? #:allow-other-keys)
484 (with-directory-excursion "testing"
485 (invoke "python" "runtests.py"))))))))
487 "https://niwinz.github.io/django-jinja/latest/")
488 (synopsis "Simple jinja2 templating backend for Django")
490 "This package provides a templating backend for Django, using Jinja2. It
491 provides certain advantages over the builtin Jinja2 backend in Django, for
492 example, explicit calls to callables from templates and better performance.")
493 (license license:bsd-3)))
495 (define-public python-django-jsonfield
497 (name "python-django-jsonfield")
501 (uri (pypi-uri "jsonfield" version))
504 "19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy"))))
505 (build-system python-build-system)
508 (modify-phases %standard-phases
509 (add-before 'check 'fix-tests
511 (substitute* "jsonfield/tests.py"
512 (("django.forms.util") "django.forms.utils")))))))
514 `(("python-django" ,python-django)))
515 (home-page "https://github.com/bradjasper/django-jsonfield")
516 (synopsis "Store validated JSON in your model")
518 "Django-jsonfield is a reusable Django field that allows you to store
519 validated JSON in your model. It silently takes care of serialization. To
520 use, simply add the field to one of your models.")
521 (license license:expat)))
523 (define-public python2-django-jsonfield
524 (package-with-python2 python-django-jsonfield))
526 (define-public python-dj-database-url
528 (name "python-dj-database-url")
532 (uri (pypi-uri "dj-database-url" version))
535 "024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6"))))
536 (build-system python-build-system)
537 (home-page "https://github.com/kennethreitz/dj-database-url")
538 (synopsis "Use Database URLs in your Django Application")
540 "This simple Django utility allows you to utilize the 12factor inspired
541 DATABASE_URL environment variable to configure your Django application.
543 The dj_database_url.config method returns a Django database connection
544 dictionary, populated with all the data specified in your URL. There is also a
545 conn_max_age argument to easily enable Django’s connection pool.")
546 (license license:bsd-2)))
548 (define-public python2-dj-database-url
549 (package-with-python2 python-dj-database-url))
551 (define-public python-django-bulk-update
553 (name "python-django-bulk-update")
557 (uri (pypi-uri "django-bulk-update" version))
560 "0mbng9m7swfc0dnidipbzlxfhlfjrv755dlnha5s4m9mgdxb1fhc"))))
561 (build-system python-build-system)
563 ;; tests don't support django 1.10, but the module seems to work.
566 `(("six" ,python-six)
567 ("jsonfield" ,python-django-jsonfield)
568 ("python-dj-database-url" ,python-dj-database-url)))
570 `(("python-django" ,python-django)))
571 (home-page "https://github.com/aykut/django-bulk-update")
572 (synopsis "Simple bulk update over Django ORM or with helper function")
574 "Simple bulk update over Django ORM or with helper function. This
575 project aims to bulk update given objects using one query over Django ORM.")
576 (license license:expat)))
578 (define-public python2-django-bulk-update
579 (package-with-python2 python-django-bulk-update))
581 (define-public python-django-contact-form
583 (name "python-django-contact-form")
587 (uri (pypi-uri "django-contact-form" version))
590 "0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17"))))
591 (build-system python-build-system)
594 (modify-phases %standard-phases
597 ;; the next version will need "make test"
598 (invoke "flake8" "contact_form")
599 (invoke "coverage" "run" "contact_form/runtests.py")
600 (invoke "coverage" "report" "-m" "--fail-under" "0"))))))
602 `(("python-coverage" ,python-coverage)
603 ("python-flake8" ,python-flake8)))
605 `(("python-django" ,python-django)))
606 (home-page "https://github.com/ubernostrum/django-contact-form")
607 (synopsis "Contact form for Django")
609 "This application provides simple, extensible contact-form functionality
611 (license license:bsd-3)))
613 (define-public python2-django-contact-form
614 (package-with-python2 python-django-contact-form))
616 (define-public python-django-contrib-comments
618 (name "python-django-contrib-comments")
622 (uri (pypi-uri "django-contrib-comments" version))
625 "0bxsgw8jrkhg6r5s0z6ksfi4w8yknaqb1s9acmxd9pm3pnsnp5kx"))))
626 (build-system python-build-system)
628 `(("python-django" ,python-django)))
629 (home-page "https://github.com/django/django-contrib-comments")
630 (synopsis "Comments framework")
632 "Django used to include a comments framework; since Django 1.6 it's been
633 separated to a separate project. This is that project. This framework can be
634 used to attach comments to any model, so you can use it for comments on blog
635 entries, photos, book chapters, or anything else.")
636 (license license:bsd-3)))
638 (define-public python2-django-contrib-comments
639 (package-with-python2 python-django-contrib-comments))
641 (define-public python-django-overextends
643 (name "python-django-overextends")
647 (uri (pypi-uri "django-overextends" version))
650 "0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm"))))
651 (build-system python-build-system)
654 (modify-phases %standard-phases
656 (lambda _ (invoke "./test_project/manage.py" "test"))))))
658 `(("python-django" ,python-django)))
660 `(("sphinx-me" ,python-sphinx-me)))
661 (home-page "https://github.com/stephenmcd/django-overextends")
662 (synopsis "Circular template inheritance")
664 "A Django reusable app providing the overextends template tag, a drop-in
665 replacement for Django's extends tag, which allows you to use circular template
666 inheritance. The primary use-case for overextends is to simultaneously
667 override and extend templates from other reusable apps, in your own Django
669 (license license:bsd-2)))
671 (define-public python2-django-overextends
672 (package-with-python2 python-django-overextends))
674 (define-public python-django-pipeline
676 (name "python-django-pipeline")
681 (uri (pypi-uri "django-pipeline" version))
684 "1a207y71r7za033ira0qmh2yrgp5rq0l04gw2fg9b8jri7sslrzg"))))
685 (build-system python-build-system)
688 (modify-phases %standard-phases
689 (add-after 'unpack 'patch-source
691 (substitute* "tests/tests/test_compiler.py"
692 (("\\/usr\\/bin\\/env")
695 (lambda*(#:key tests? #:allow-other-keys)
700 (string-append (getcwd) ":"
701 (getenv "PYTHONPATH")))
702 (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
703 (invoke "django-admin" "test" "tests"))))))))
705 `(("python-django" ,python-django)
706 ("python-slimit" ,python-slimit)
707 ("python-jsmin" ,python-jsmin)))
709 "https://github.com/jazzband/django-pipeline")
710 (synopsis "Asset packaging library for Django")
712 "Pipeline is an asset packaging library for Django, providing both CSS
713 and JavaScript concatenation and compression, built-in JavaScript template
714 support, and optional data-URI image and font embedding.")
715 (license license:expat)))
717 (define-public python-django-redis
719 (name "python-django-redis")
723 (uri (pypi-uri "django-redis" version))
726 "1rxcwnv9ik0swkwvfqdi9i9baw6n8if5pj6q63fjh4p9chw3j2xg"))))
727 (build-system python-build-system)
730 (modify-phases %standard-phases
733 (invoke "redis-server" "--daemonize" "yes")
734 (with-directory-excursion "tests"
735 (invoke "python" "runtests.py")))))))
737 `(("python-fakeredis" ,python-fakeredis)
738 ("python-hiredis" ,python-hiredis)
739 ("python-mock" ,python-mock)
740 ("python-msgpack" ,python-msgpack)
743 `(("python-django" ,python-django)
744 ("python-redis" ,python-redis)))
745 (home-page "https://github.com/niwibe/django-redis")
746 (synopsis "Full featured redis cache backend for Django")
748 "Full featured redis cache backend for Django.")
749 (license license:bsd-3)))
751 (define-public python2-django-redis
752 (package-with-python2 python-django-redis))
754 (define-public python-django-rq
756 (name "python-django-rq")
760 (uri (pypi-uri "django-rq" version))
763 "1ips1ikv5qhgwb58ssn496vgqg9qv6jinwmwbrg9l3s75fskd1l5"))))
764 (build-system python-build-system)
767 (modify-phases %standard-phases
770 (invoke "redis-server" "--daemonize" "yes")
771 (invoke "django-admin.py" "test" "django_rq"
772 "--settings=django_rq.tests.settings"
773 "--pythonpath="))))))
775 `(("python-mock" ,python-mock)
778 `(("python-django" ,python-django)
779 ("python-rq" ,python-rq)))
780 (home-page "https://github.com/ui/django-rq")
781 (synopsis "Django integration with RQ")
783 "Django integration with RQ, a Redis based Python queuing library.
784 Django-RQ is a simple app that allows you to configure your queues in django's
785 settings.py and easily use them in your project.")
786 (license license:expat)))
788 (define-public python2-django-rq
789 (package-with-python2 python-django-rq))
791 (define-public python-django-sortedm2m
793 (name "python-django-sortedm2m")
797 (uri (pypi-uri "django-sortedm2m" version))
800 "0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi"))))
801 (build-system python-build-system)
806 `(("python-django" ,python-django)))
807 (home-page "https://github.com/gregmuellegger/django-sortedm2m")
808 (synopsis "Drop-in replacement for django's own ManyToManyField")
810 "Sortedm2m is a drop-in replacement for django's own ManyToManyField.
811 The provided SortedManyToManyField behaves like the original one but remembers
812 the order of added relations.")
813 (license license:bsd-3)))
815 (define-public python2-django-sortedm2m
816 (package-with-python2 python-django-sortedm2m))
818 (define-public python-django-appconf
820 (name "python-django-appconf")
824 (uri (pypi-uri "django-appconf" version))
827 "1qw0p9qh78bvkgi38ba58djwn0rd5j1lrkg2c2wk5wb7snj3rw9m"))))
828 (build-system python-build-system)
830 `(("python-django" ,python-django)
831 ("python-six" ,python-six)))
832 (home-page "https://github.com/django-compressor/django-appconf")
833 (synopsis "Handle configuration defaults of packaged Django apps")
835 "This app precedes Django's own AppConfig classes that act as \"objects
836 [to] store metadata for an application\" inside Django's app loading mechanism.
837 In other words, they solve a related but different use case than
838 django-appconf and can't easily be used as a replacement. The similarity in
839 name is purely coincidental.")
840 (license license:bsd-3)))
842 (define-public python2-django-appconf
843 (package-with-python2 python-django-appconf))
845 (define-public python-django-statici18n
847 (name "python-django-statici18n")
851 (uri (pypi-uri "django-statici18n" version))
854 "0alcf4g1nv69njhq5k3qw4mfl2k6dc18bik5nk0g1mnp3m8zyz7k"))))
855 (build-system python-build-system)
857 `(("python-django" ,python-django)
858 ("django-appconf" ,python-django-appconf)))
859 (home-page "https://github.com/zyegfryed/django-statici18n")
860 (synopsis "Generate JavaScript catalog to static files")
862 "A Django app that provides helper for generating JavaScript catalog to
864 (license license:bsd-3)))
866 (define-public python2-django-statici18n
867 (package-with-python2 python-django-statici18n))
869 (define-public pootle
876 (uri (pypi-uri "Pootle" version ".tar.bz2"))
879 "1ng8igq0alsqzasgxdh3fb23581anyzp121h9041pwdzzv98kn4m"))))
880 (build-system python-build-system)
882 `(; pootle supports only python2.
884 ;; tests are not run and fail with "pytest_pootle/data/po/.tmp: No such
885 ;; file or directory". If we create this directory,
886 ;; pytest_pootle/data/po/terminology.po is missing.
889 (modify-phases %standard-phases
890 (add-before 'build 'fix-requirements
892 (substitute* "Pootle.egg-info/requires.txt"
895 (substitute* "requirements/tests.txt"
896 (("==3.0.6") ">=3.0.6"))
897 (substitute* "requirements/base.txt"
899 (("2.0.0") "2.1.0")))))))
901 `(("django-allauth" ,python2-django-allauth)
902 ("django-assets" ,python2-django-assets)
903 ("django-bulk-update" ,python2-django-bulk-update)
904 ("django-contact-form" ,python2-django-contact-form)
905 ("django-contrib-comments" ,python2-django-contrib-comments)
906 ("django-overextends" ,python2-django-overextends)
907 ("django-redis" ,python2-django-redis)
908 ("django-rq" ,python2-django-rq)
909 ("django-sortedm2m" ,python2-django-sortedm2m)
910 ("django-statici18n" ,python2-django-statici18n)
911 ("babel" ,python2-babel)
912 ("cssmin" ,python2-cssmin)
913 ("diff-match-patch" ,python2-diff-match-patch)
914 ("dirsync" ,python2-dirsync)
915 ("elasticsearch" ,python2-elasticsearch)
916 ("jsonfield" ,python2-django-jsonfield)
917 ("lxml" ,python2-lxml)
918 ("dateutil" ,python2-dateutil)
919 ("levenshtein" ,python2-levenshtein)
920 ("mysqlclient" ,python2-mysqlclient)
921 ("psycopg2" ,python2-psycopg2)
922 ("pytz" ,python2-pytz)
924 ("scandir" ,python2-scandir)
925 ("stemming" ,python2-stemming)
926 ("translate-toolkit" ,python2-translate-toolkit)))
928 `(("python2-pytest" ,python2-pytest)
929 ("python2-pytest-django" ,python2-pytest-django)
930 ("python2-pytest-catchlog" ,python2-pytest-catchlog)
931 ("python2-pytest-cov" ,python2-pytest-cov)
932 ("python2-factory-boy" ,python2-factory-boy)))
933 (home-page "http://pootle.translatehouse.org/")
934 (synopsis "Community localization server")
936 "Pootle is an online translation and localization tool. It works to
937 lower the barrier of entry, providing tools to enable teams to work towards
938 higher quality while welcoming newcomers.")
939 (license license:gpl3+)))
941 (define-public python-django-tagging
943 (name "python-django-tagging")
948 (uri (pypi-uri "django-tagging" version))
951 "0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1"))))
952 (build-system python-build-system)
953 (home-page "https://github.com/Fantomas42/django-tagging")
954 (synopsis "Generic tagging application for Django")
955 (description "This package provides a generic tagging application for
956 Django projects, which allows association of a number of tags with any
957 @code{Model} instance and makes retrieval of tags simple.")
958 (license license:bsd-3)))
960 (define-public python2-django-tagging
961 (package-with-python2 python-django-tagging))
963 (define-public python-djangorestframework
965 (name "python-djangorestframework")
970 (uri (pypi-uri "djangorestframework" version))
973 "11qv117gqwswxjljs7wafxg1hyzzlx3qrviwlk9hw41bsbl997lz"))))
974 (build-system python-build-system)
976 '(;; No included tests
979 `(("python-django" ,python-django)))
980 (home-page "https://www.django-rest-framework.org")
981 (synopsis "Toolkit for building Web APIs with Django")
983 "The Django REST framework is for building Web APIs with Django. It
984 provides features like a web browseable API and authentication policies.")
985 (license license:bsd-2)))
987 (define-public python-django-crispy-forms
989 (name "python-django-crispy-forms")
994 (uri (pypi-uri "django-crispy-forms" version))
997 "0pv7y648i8iz7mf64gkjizpbx5d01ap2s4vqqa30n38if6wvlljr"))))
998 (build-system python-build-system)
1000 '(;; No included tests
1003 `(("python-django" ,python-django)))
1005 "http://github.com/maraujop/django-crispy-forms")
1006 (synopsis "Tool to control Django forms without custom templates")
1008 "@code{django-crispy-forms} lets you easily build, customize and reuse
1009 forms using your favorite CSS framework, without writing template code.")
1010 (license license:expat)))
1012 (define-public python-django-override-storage
1014 (name "python-django-override-storage")
1019 (uri (pypi-uri "django-override-storage" version))
1021 (base32 "022arq94lxnlyykn8wvfnkykhi2dldnsn93pa2i41na551i0wpiv"))))
1022 (build-system python-build-system)
1024 `(("python-django" ,python-django)))
1026 "https://github.com/danifus/django-override-storage")
1027 (synopsis "Django test helpers to manage file storage side effects")
1029 "This project provides tools to help reduce the side effects of using
1030 FileFields during tests.")
1031 (license license:expat)))