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>
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))
41 (define-public python-django
43 (name "python-django")
47 (uri (pypi-uri "Django" version))
50 "0adhcw8sx2mgwk9y2j760y96pqbip1ni3sf2v2ls5zxc9x93wwms"))))
51 (build-system python-build-system)
53 '(#:modules ((srfi srfi-1)
54 (guix build python-build-system)
57 (modify-phases %standard-phases
58 (add-before 'check 'set-tzdir
59 (lambda* (#:key inputs #:allow-other-keys)
60 ;; The test-suite tests timezone-dependent functions, thus tzdata
61 ;; needs to be available.
63 (string-append (assoc-ref inputs "tzdata")
67 (lambda* (#:key inputs #:allow-other-keys)
69 (string-append ".:" (getenv "PYTHONPATH")))
70 (substitute* "tests/admin_scripts/tests.py"
71 (("python_path = \\[")
72 (string-append "python_path = ['"
75 (assoc-ref inputs "python-pytz")
77 (string-split (getenv "PYTHONPATH")
80 (invoke "python" "tests/runtests.py"))))))
81 ;; TODO: Install extras/django_bash_completion.
83 `(("tzdata" ,tzdata-for-tests)
84 ;; bcrypt and argon2-cffi are extra requirements not yet in guix
85 ;;("python-argon2-cffi" ,python-argon2-cffi) ; >= 16.1.0
86 ;;("python-bcrypt" ,python-bcrypt) ; not py-bcrypt!
87 ;; Remaining packages are test requirements taken from
88 ;; tests/requirements/py3.txt
89 ("python-docutils" ,python-docutils)
90 ;; optional for tests: ("python-geoip2" ,python-geoip2)
91 ("python-jinja2" ,python-jinja2) ; >= 2.7
92 ;; optional for tests: ("python-memcached" ,python-memcached)
93 ("python-numpy" ,python-numpy)
94 ("python-pillow" ,python-pillow)
95 ("python-pyyaml" ,python-pyyaml)
96 ;; optional for tests: ("python-selenium" ,python-selenium)
97 ("python-sqlparse" ,python-sqlparse)
98 ("python-tblib" ,python-tblib)))
100 `(("python-pytz" ,python-pytz)))
101 (home-page "http://www.djangoproject.com/")
102 (synopsis "High-level Python Web framework")
104 "Django is a high-level Python Web framework that encourages rapid
105 development and clean, pragmatic design. It provides many tools for building
106 any Web site. Django focuses on automating as much as possible and adhering
107 to the @dfn{don't repeat yourself} (DRY) principle.")
108 (license license:bsd-3)
109 (properties `((python2-variant . ,(delay python2-django))
110 (cpe-name . "django")))))
112 (define-public python2-django
113 (let ((base (package-with-python2 (strip-python2-variant python-django))))
117 `(;; Test requirements for Python 2 taken from
118 ;; tests/requirements/py3.txt: enum34 and mock.
119 ("python2-enum34" ,python2-enum34)
120 ("python2-mock" ,python2-mock)
121 ;; When adding memcached mind: for Python 2 memcached <= 1.53 is
123 ,@(package-native-inputs base))))))
125 (define-public python-django-extensions
127 (name "python-django-extensions")
132 ;; Fetch from the git repository, so that the tests can be run.
134 (url "https://github.com/django-extensions/django-extensions.git")
136 (file-name (string-append name "-" version))
139 "0p4qrdinrv6indczlc8dcnm528i5fzmcn9xk1ja7ycfkyk5x6j5w"))))
140 (build-system python-build-system)
142 '(#:tests? #f)) ;TODO collected 378 items / 3 errors / 1 skipped
144 `(("python-six" ,python-six)
145 ("python-vobject" ,python-vobject)
146 ("python-werkzeug" ,python-werkzeug)
147 ("python-dateutil" ,python-dateutil)
148 ("python-django" ,python-django)))
150 `(("python-mock" ,python-mock)
151 ("python-factory-boy" ,python-factory-boy)
152 ("python-tox" ,python-tox)
153 ("python-pytest" ,python-pytest)
154 ("python-pytest-cov" ,python-pytest-cov)
155 ("python-pytest-django" ,python-pytest-django)
156 ("python-shortuuid" , python-shortuuid)))
158 "https://github.com/django-extensions/django-extensions")
159 (synopsis "Custom management extensions for Django")
161 "Django-extensions extends Django providing, for example, management
162 commands, additional database fields and admin extensions.")
163 (license license:expat)))
165 (define-public python-django-simple-math-captcha
167 (name "python-django-simple-math-captcha")
171 (uri (pypi-uri "django-simple-math-captcha" version))
174 "0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd"))))
175 (build-system python-build-system)
177 ;; FIXME: Upstream uses a 'runtests.py' script that is not
178 ;; present in the pypi tarball.
181 `(("python-django" ,python-django)))
182 (home-page "https://github.com/alsoicode/django-simple-math-captcha")
183 (synopsis "Easy-to-use math field/widget captcha for Django forms")
185 "A multi-value-field that presents a human answerable question,
186 with no settings.py configuration necessary, but instead can be configured
187 with arguments to the field constructor.")
188 (license license:asl2.0)))
190 (define-public python2-django-simple-math-captcha
191 (package-with-python2 python-django-simple-math-captcha))
193 (define-public python-django-taggit
195 (name "python-django-taggit")
200 (uri (pypi-uri "django-taggit" version))
203 "044fzcpmns90kaxdi49qczlam4xsi8rl73rpfwvxx1gkcqzidgq1"))))
204 (build-system python-build-system)
207 (modify-phases %standard-phases
210 (invoke "python3" "-m" "django" "test" "--settings=tests.settings"))))))
212 `(("python-django" ,python-django)
213 ("python-isort" ,python-isort)))
215 `(("python-pytest" ,python-pytest)
216 ("python-mock" ,python-mock)))
218 "https://github.com/jazzband/django-taggit")
220 "Reusable Django application for simple tagging")
222 "Django-taggit is a reusable Django application for simple tagging.")
223 (license license:bsd-3)))
225 (define-public python-pytest-django
227 (name "python-pytest-django")
231 (uri (pypi-uri "pytest-django" version))
234 "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303"))))
235 (build-system python-build-system)
237 `(#:tests? #f ; FIXME: How to run tests?
239 (modify-phases %standard-phases
240 (add-after 'unpack 'patch-setuppy
242 (substitute* "setup.py"
243 (("setuptools_scm==1.11.1") "setuptools_scm"))
246 `(("python-django" ,python-django)
247 ("python-setuptools-scm" ,python-setuptools-scm)))
249 `(("python-pytest" ,python-pytest)))
250 (home-page "http://pytest-django.readthedocs.org/")
251 (synopsis "Django plugin for py.test")
252 (description "Pytest-django is a plugin for py.test that provides a set of
253 useful tools for testing Django applications and projects.")
254 (license license:bsd-3)))
256 (define-public python2-pytest-django
257 (package-with-python2 python-pytest-django))
259 (define-public python-django-filter
261 (name "python-django-filter")
265 (uri (pypi-uri "django-filter" version))
268 "0slpfqfhnjrzlrb6vmswyhrzn01p84s16j2x1xib35gg4fxg23pc"))))
269 (build-system python-build-system)
272 (modify-phases %standard-phases
275 (invoke "python" "runtests.py"))))))
277 `(("python-django" ,python-django)
278 ("python-djangorestframework" ,python-djangorestframework)
279 ("python-django-crispy-forms" ,python-django-crispy-forms)
280 ("python-mock" ,python-mock)))
281 (home-page "https://django-filter.readthedocs.io/en/latest/")
282 (synopsis "Reusable Django application to filter querysets dynamically")
284 "Django-filter is a generic, reusable application to alleviate writing
285 some of the more mundane bits of view code. Specifically, it allows users to
286 filter down a queryset based on a model’s fields, displaying the form to let
288 (license license:bsd-3)))
290 (define-public python2-django-filter
291 (package-with-python2 python-django-filter))
293 (define-public python-django-allauth
295 (name "python-django-allauth")
300 (uri (pypi-uri "django-allauth" version))
303 "17l0acpr3cihdndzccjhgv58f9z170v2qwx7w0b8w6235x646i24"))))
304 (build-system python-build-system)
307 (modify-phases %standard-phases
308 ;; TODO: Tagging the tests requiring the web could be done upstream.
309 (add-before 'check 'skip-test-requiring-network-access
311 (substitute* "allauth/socialaccount/providers/openid/tests.py"
312 (("import override_settings") "import tag, override_settings")
314 "@tag('requires-web')
318 ;; TODO: investigate why this test fails
319 (delete-file "allauth/socialaccount/providers/cern/tests.py")
320 (setenv "DJANGO_SETTINGS_MODULE" "test_settings")
321 (invoke "django-admin"
325 "--exclude-tag=requires-web"))))))
327 `(("python-openid" ,python-openid)
328 ("python-requests" ,python-requests)
329 ("python-requests-oauthlib" ,python-requests-oauthlib)))
331 `(("python-mock" ,python-mock)))
333 `(("python-django" ,python-django)))
334 (home-page "https://github.com/pennersr/django-allauth")
335 (synopsis "Set of Django applications addressing authentication")
337 "Integrated set of Django applications addressing authentication,
338 registration, account management as well as 3rd party (social)
339 account authentication.")
340 (license license:expat)))
342 (define-public python2-django-allauth
343 (package-with-python2 python-django-allauth))
345 (define-public python-django-debug-toolbar
347 (name "python-django-debug-toolbar")
353 "https://github.com/jazzband/django-debug-toolbar/archive/"
355 (file-name (string-append name "-" version ".tar.gz"))
358 "1rww056hyzks8spbgf4h7kf6ybxlc5p08a2b6gn1nqrrzs4yx9sy"))))
359 (build-system python-build-system)
361 `(("python-sqlparse" ,python-sqlparse)
362 ("python-django" ,python-django)))
364 `(("python-django-jinja" ,python-django-jinja)
365 ("python-html5lib" ,python-html5lib)))
368 (modify-phases %standard-phases
371 (invoke "make" "test"))))))
373 "https://github.com/jazzband/django-debug-toolbar")
374 (synopsis "Toolbar to help with developing Django applications")
376 "A configurable set of panels that display information about the current
377 request and response as a toolbar on the rendered page.")
378 (license license:bsd-3)))
380 (define-public python-django-gravatar2
382 (name "python-django-gravatar2")
387 (uri (pypi-uri "django-gravatar2" version))
390 "1qsv40xywbqsf4mkrmsswrpzqd7nfljxpfiim9an2z3dykn5rka6"))))
391 (build-system python-build-system)
393 '(;; TODO: The django project for the tests is missing from the release.
396 `(("python-django" ,python-django)))
397 (home-page "https://github.com/twaddington/django-gravatar")
398 (synopsis "Gravatar support for Django, improved version")
400 "Essential Gravatar support for Django. Features helper methods,
401 templatetags and a full test suite.")
402 (license license:expat)))
404 (define-public python2-django-gravatar2
405 (package-with-python2 python-django-gravatar2))
407 (define-public python-django-assets
409 (name "python-django-assets")
413 (uri (pypi-uri "django-assets" version))
416 "0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365"))))
417 (build-system python-build-system)
420 (modify-phases %standard-phases
421 (add-before 'check 'fix-tests
424 ;; https://github.com/miracle2k/django-assets/issues/87
425 (substitute* "tests/__init__.py"
426 (("settings.configure.*")
428 "settings.configure(\n"
429 "INSTALLED_APPS=['django_assets', "
430 "'django.contrib.staticfiles'],\n"
431 "TEMPLATES=[{'BACKEND': "
432 "'django.template.backends.django.DjangoTemplates'}],\n"
435 (substitute* "tests/test_django.py"
436 (("TestLoader") "NoTestLoader"))))))))
438 `(("python-nose" ,python-nose)))
440 `(("python-django" ,python-django)
441 ("python-webassets" ,python-webassets)))
442 (home-page "https://github.com/miracle2k/django-assets")
443 (synopsis "Asset management for Django")
445 "Asset management for Django, to compress and merge CSS and Javascript
446 files. Integrates the webassets library with Django, adding support for
447 merging, minifying and compiling CSS and Javascript files.")
448 (license license:bsd-2)))
450 (define-public python2-django-assets
451 (package-with-python2 python-django-assets))
453 (define-public python-django-jinja
455 (name "python-django-jinja")
461 "https://github.com/niwinz/django-jinja/archive/"
463 (file-name (string-append name "-" version ".tar.gz"))
466 "0bzrb4m6wx9ph5cpvz7wpvg5k6ksvj0dnxlg0nhhqskhvp46brs1"))))
467 (build-system python-build-system)
469 `(("python-django" ,python-django)
470 ("python-jinja2" ,python-jinja2)
471 ("python-pytz" ,python-pytz)
472 ("python-django-pipeline" ,python-django-pipeline)))
474 '(;; TODO Tests currently fail due to issues with the configuration for
478 (modify-phases %standard-phases
480 (lambda* (#:key tests? #:allow-other-keys)
483 (with-directory-excursion "testing"
484 (invoke "python" "runtests.py"))))))))
486 "https://niwinz.github.io/django-jinja/latest/")
487 (synopsis "Simple jinja2 templating backend for Django")
489 "This package provides a templating backend for Django, using Jinja2. It
490 provides certain advantages over the builtin Jinja2 backend in Django, for
491 example, explicit calls to callables from templates and better performance.")
492 (license license:bsd-3)))
494 (define-public python-django-jsonfield
496 (name "python-django-jsonfield")
500 (uri (pypi-uri "jsonfield" version))
503 "19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy"))))
504 (build-system python-build-system)
507 (modify-phases %standard-phases
508 (add-before 'check 'fix-tests
510 (substitute* "jsonfield/tests.py"
511 (("django.forms.util") "django.forms.utils")))))))
513 `(("python-django" ,python-django)))
514 (home-page "https://github.com/bradjasper/django-jsonfield")
515 (synopsis "Store validated JSON in your model")
517 "Django-jsonfield is a reusable Django field that allows you to store
518 validated JSON in your model. It silently takes care of serialization. To
519 use, simply add the field to one of your models.")
520 (license license:expat)))
522 (define-public python2-django-jsonfield
523 (package-with-python2 python-django-jsonfield))
525 (define-public python-dj-database-url
527 (name "python-dj-database-url")
531 (uri (pypi-uri "dj-database-url" version))
534 "024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6"))))
535 (build-system python-build-system)
536 (home-page "https://github.com/kennethreitz/dj-database-url")
537 (synopsis "Use Database URLs in your Django Application")
539 "This simple Django utility allows you to utilize the 12factor inspired
540 DATABASE_URL environment variable to configure your Django application.
542 The dj_database_url.config method returns a Django database connection
543 dictionary, populated with all the data specified in your URL. There is also a
544 conn_max_age argument to easily enable Django’s connection pool.")
545 (license license:bsd-2)))
547 (define-public python2-dj-database-url
548 (package-with-python2 python-dj-database-url))
550 (define-public python-django-bulk-update
552 (name "python-django-bulk-update")
556 (uri (pypi-uri "django-bulk-update" version))
559 "0mbng9m7swfc0dnidipbzlxfhlfjrv755dlnha5s4m9mgdxb1fhc"))))
560 (build-system python-build-system)
562 ;; tests don't support django 1.10, but the module seems to work.
565 `(("six" ,python-six)
566 ("jsonfield" ,python-django-jsonfield)
567 ("python-dj-database-url" ,python-dj-database-url)))
569 `(("python-django" ,python-django)))
570 (home-page "https://github.com/aykut/django-bulk-update")
571 (synopsis "Simple bulk update over Django ORM or with helper function")
573 "Simple bulk update over Django ORM or with helper function. This
574 project aims to bulk update given objects using one query over Django ORM.")
575 (license license:expat)))
577 (define-public python2-django-bulk-update
578 (package-with-python2 python-django-bulk-update))
580 (define-public python-django-contact-form
582 (name "python-django-contact-form")
586 (uri (pypi-uri "django-contact-form" version))
589 "0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17"))))
590 (build-system python-build-system)
593 (modify-phases %standard-phases
596 ;; the next version will need "make test"
597 (invoke "flake8" "contact_form")
598 (invoke "coverage" "run" "contact_form/runtests.py")
599 (invoke "coverage" "report" "-m" "--fail-under" "0"))))))
601 `(("python-coverage" ,python-coverage)
602 ("python-flake8" ,python-flake8)))
604 `(("python-django" ,python-django)))
605 (home-page "https://github.com/ubernostrum/django-contact-form")
606 (synopsis "Contact form for Django")
608 "This application provides simple, extensible contact-form functionality
610 (license license:bsd-3)))
612 (define-public python2-django-contact-form
613 (package-with-python2 python-django-contact-form))
615 (define-public python-django-contrib-comments
617 (name "python-django-contrib-comments")
621 (uri (pypi-uri "django-contrib-comments" version))
624 "0bxsgw8jrkhg6r5s0z6ksfi4w8yknaqb1s9acmxd9pm3pnsnp5kx"))))
625 (build-system python-build-system)
627 `(("python-django" ,python-django)))
628 (home-page "https://github.com/django/django-contrib-comments")
629 (synopsis "Comments framework")
631 "Django used to include a comments framework; since Django 1.6 it's been
632 separated to a separate project. This is that project. This framework can be
633 used to attach comments to any model, so you can use it for comments on blog
634 entries, photos, book chapters, or anything else.")
635 (license license:bsd-3)))
637 (define-public python2-django-contrib-comments
638 (package-with-python2 python-django-contrib-comments))
640 (define-public python-django-overextends
642 (name "python-django-overextends")
646 (uri (pypi-uri "django-overextends" version))
649 "0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm"))))
650 (build-system python-build-system)
653 (modify-phases %standard-phases
655 (lambda _ (invoke "./test_project/manage.py" "test"))))))
657 `(("python-django" ,python-django)))
659 `(("sphinx-me" ,python-sphinx-me)))
660 (home-page "https://github.com/stephenmcd/django-overextends")
661 (synopsis "Circular template inheritance")
663 "A Django reusable app providing the overextends template tag, a drop-in
664 replacement for Django's extends tag, which allows you to use circular template
665 inheritance. The primary use-case for overextends is to simultaneously
666 override and extend templates from other reusable apps, in your own Django
668 (license license:bsd-2)))
670 (define-public python2-django-overextends
671 (package-with-python2 python-django-overextends))
673 (define-public python-django-pipeline
675 (name "python-django-pipeline")
680 (uri (pypi-uri "django-pipeline" version))
683 "1a207y71r7za033ira0qmh2yrgp5rq0l04gw2fg9b8jri7sslrzg"))))
684 (build-system python-build-system)
687 (modify-phases %standard-phases
688 (add-after 'unpack 'patch-source
690 (substitute* "tests/tests/test_compiler.py"
691 (("\\/usr\\/bin\\/env")
694 (lambda*(#:key tests? #:allow-other-keys)
698 (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
699 (invoke "django-admin" "test" "tests"))))))))
701 `(("python-django" ,python-django)
702 ("python-slimit" ,python-slimit)
703 ("python-jsmin" ,python-jsmin)))
705 "https://github.com/jazzband/django-pipeline")
706 (synopsis "Asset packaging library for Django")
708 "Pipeline is an asset packaging library for Django, providing both CSS
709 and JavaScript concatenation and compression, built-in JavaScript template
710 support, and optional data-URI image and font embedding.")
711 (license license:expat)))
713 (define-public python-django-redis
715 (name "python-django-redis")
719 (uri (pypi-uri "django-redis" version))
722 "1rxcwnv9ik0swkwvfqdi9i9baw6n8if5pj6q63fjh4p9chw3j2xg"))))
723 (build-system python-build-system)
726 (modify-phases %standard-phases
729 (invoke "redis-server" "--daemonize" "yes")
730 (with-directory-excursion "tests"
731 (invoke "python" "runtests.py")))))))
733 `(("python-fakeredis" ,python-fakeredis)
734 ("python-hiredis" ,python-hiredis)
735 ("python-mock" ,python-mock)
736 ("python-msgpack" ,python-msgpack)
739 `(("python-django" ,python-django)
740 ("python-redis" ,python-redis)))
741 (home-page "https://github.com/niwibe/django-redis")
742 (synopsis "Full featured redis cache backend for Django")
744 "Full featured redis cache backend for Django.")
745 (license license:bsd-3)))
747 (define-public python2-django-redis
748 (package-with-python2 python-django-redis))
750 (define-public python-django-rq
752 (name "python-django-rq")
756 (uri (pypi-uri "django-rq" version))
759 "1ips1ikv5qhgwb58ssn496vgqg9qv6jinwmwbrg9l3s75fskd1l5"))))
760 (build-system python-build-system)
763 (modify-phases %standard-phases
766 (invoke "redis-server" "--daemonize" "yes")
767 (invoke "django-admin.py" "test" "django_rq"
768 "--settings=django_rq.tests.settings"
769 "--pythonpath="))))))
771 `(("python-mock" ,python-mock)
774 `(("python-django" ,python-django)
775 ("python-rq" ,python-rq)))
776 (home-page "https://github.com/ui/django-rq")
777 (synopsis "Django integration with RQ")
779 "Django integration with RQ, a Redis based Python queuing library.
780 Django-RQ is a simple app that allows you to configure your queues in django's
781 settings.py and easily use them in your project.")
782 (license license:expat)))
784 (define-public python2-django-rq
785 (package-with-python2 python-django-rq))
787 (define-public python-django-sortedm2m
789 (name "python-django-sortedm2m")
793 (uri (pypi-uri "django-sortedm2m" version))
796 "0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi"))))
797 (build-system python-build-system)
802 `(("python-django" ,python-django)))
803 (home-page "https://github.com/gregmuellegger/django-sortedm2m")
804 (synopsis "Drop-in replacement for django's own ManyToManyField")
806 "Sortedm2m is a drop-in replacement for django's own ManyToManyField.
807 The provided SortedManyToManyField behaves like the original one but remembers
808 the order of added relations.")
809 (license license:bsd-3)))
811 (define-public python2-django-sortedm2m
812 (package-with-python2 python-django-sortedm2m))
814 (define-public python-django-appconf
816 (name "python-django-appconf")
820 (uri (pypi-uri "django-appconf" version))
823 "1qw0p9qh78bvkgi38ba58djwn0rd5j1lrkg2c2wk5wb7snj3rw9m"))))
824 (build-system python-build-system)
826 `(("python-django" ,python-django)
827 ("python-six" ,python-six)))
828 (home-page "https://github.com/django-compressor/django-appconf")
829 (synopsis "Handle configuration defaults of packaged Django apps")
831 "This app precedes Django's own AppConfig classes that act as \"objects
832 [to] store metadata for an application\" inside Django's app loading mechanism.
833 In other words, they solve a related but different use case than
834 django-appconf and can't easily be used as a replacement. The similarity in
835 name is purely coincidental.")
836 (license license:bsd-3)))
838 (define-public python2-django-appconf
839 (package-with-python2 python-django-appconf))
841 (define-public python-django-statici18n
843 (name "python-django-statici18n")
847 (uri (pypi-uri "django-statici18n" version))
850 "0alcf4g1nv69njhq5k3qw4mfl2k6dc18bik5nk0g1mnp3m8zyz7k"))))
851 (build-system python-build-system)
853 `(("python-django" ,python-django)
854 ("django-appconf" ,python-django-appconf)))
855 (home-page "https://github.com/zyegfryed/django-statici18n")
856 (synopsis "Generate JavaScript catalog to static files")
858 "A Django app that provides helper for generating JavaScript catalog to
860 (license license:bsd-3)))
862 (define-public python2-django-statici18n
863 (package-with-python2 python-django-statici18n))
865 (define-public pootle
872 (uri (pypi-uri "Pootle" version ".tar.bz2"))
875 "1ng8igq0alsqzasgxdh3fb23581anyzp121h9041pwdzzv98kn4m"))))
876 (build-system python-build-system)
878 `(; pootle supports only python2.
880 ;; tests are not run and fail with "pytest_pootle/data/po/.tmp: No such
881 ;; file or directory". If we create this directory,
882 ;; pytest_pootle/data/po/terminology.po is missing.
885 (modify-phases %standard-phases
886 (add-before 'build 'fix-requirements
888 (substitute* "Pootle.egg-info/requires.txt"
891 (substitute* "requirements/tests.txt"
892 (("==3.0.6") ">=3.0.6"))
893 (substitute* "requirements/base.txt"
895 (("2.0.0") "2.1.0")))))))
897 `(("django-allauth" ,python2-django-allauth)
898 ("django-assets" ,python2-django-assets)
899 ("django-bulk-update" ,python2-django-bulk-update)
900 ("django-contact-form" ,python2-django-contact-form)
901 ("django-contrib-comments" ,python2-django-contrib-comments)
902 ("django-overextends" ,python2-django-overextends)
903 ("django-redis" ,python2-django-redis)
904 ("django-rq" ,python2-django-rq)
905 ("django-sortedm2m" ,python2-django-sortedm2m)
906 ("django-statici18n" ,python2-django-statici18n)
907 ("babel" ,python2-babel)
908 ("cssmin" ,python2-cssmin)
909 ("diff-match-patch" ,python2-diff-match-patch)
910 ("dirsync" ,python2-dirsync)
911 ("elasticsearch" ,python2-elasticsearch)
912 ("jsonfield" ,python2-django-jsonfield)
913 ("lxml" ,python2-lxml)
914 ("dateutil" ,python2-dateutil)
915 ("levenshtein" ,python2-levenshtein)
916 ("mysqlclient" ,python2-mysqlclient)
917 ("psycopg2" ,python2-psycopg2)
918 ("pytz" ,python2-pytz)
920 ("scandir" ,python2-scandir)
921 ("stemming" ,python2-stemming)
922 ("translate-toolkit" ,python2-translate-toolkit)))
924 `(("python2-pytest" ,python2-pytest)
925 ("python2-pytest-django" ,python2-pytest-django)
926 ("python2-pytest-catchlog" ,python2-pytest-catchlog)
927 ("python2-pytest-cov" ,python2-pytest-cov)
928 ("python2-factory-boy" ,python2-factory-boy)))
929 (home-page "http://pootle.translatehouse.org/")
930 (synopsis "Community localization server")
932 "Pootle is an online translation and localization tool. It works to
933 lower the barrier of entry, providing tools to enable teams to work towards
934 higher quality while welcoming newcomers.")
935 (license license:gpl3+)))
937 (define-public python-django-tagging
939 (name "python-django-tagging")
944 (uri (pypi-uri "django-tagging" version))
947 "0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1"))))
948 (build-system python-build-system)
949 (home-page "https://github.com/Fantomas42/django-tagging")
950 (synopsis "Generic tagging application for Django")
951 (description "This package provides a generic tagging application for
952 Django projects, which allows association of a number of tags with any
953 @code{Model} instance and makes retrieval of tags simple.")
954 (license license:bsd-3)))
956 (define-public python2-django-tagging
957 (package-with-python2 python-django-tagging))
959 (define-public python-djangorestframework
961 (name "python-djangorestframework")
966 (uri (pypi-uri "djangorestframework" version))
969 "11qv117gqwswxjljs7wafxg1hyzzlx3qrviwlk9hw41bsbl997lz"))))
970 (build-system python-build-system)
972 '(;; No included tests
975 `(("python-django" ,python-django)))
976 (home-page "https://www.django-rest-framework.org")
977 (synopsis "Toolkit for building Web APIs with Django")
979 "The Django REST framework is for building Web APIs with Django. It
980 provides features like a web browseable API and authentication policies.")
981 (license license:bsd-2)))
983 (define-public python-django-crispy-forms
985 (name "python-django-crispy-forms")
990 (uri (pypi-uri "django-crispy-forms" version))
993 "0pv7y648i8iz7mf64gkjizpbx5d01ap2s4vqqa30n38if6wvlljr"))))
994 (build-system python-build-system)
996 '(;; No included tests
999 `(("python-django" ,python-django)))
1001 "http://github.com/maraujop/django-crispy-forms")
1002 (synopsis "Tool to control Django forms without custom templates")
1004 "@code{django-crispy-forms} lets you easily build, customize and reuse
1005 forms using your favorite CSS framework, without writing template code.")
1006 (license license:expat)))
1008 (define-public python-django-override-storage
1010 (name "python-django-override-storage")
1015 (uri (pypi-uri "django-override-storage" version))
1018 "0sqz1mh0yn8b1bzz2gr2azfiynljigm5gkzavp5n17zd3j2jg57x"))))
1019 (build-system python-build-system)
1021 `(("python-django" ,python-django)))
1023 "https://github.com/danifus/django-override-storage")
1024 (synopsis "Django test helpers to manage file storage side effects")
1026 "This project provides tools to help reduce the side effects of using
1027 FileFields during tests.")
1028 (license license:expat)))