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 Nikita <nikita@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 "1ss1jyip7mlbfjn27m0j6wx80s8h4ksg6g5annkgwigp8xgy6g5k"))))
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 "https://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")
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-easy-thumbnails
228 (name "python-easy-thumbnails")
233 (uri (pypi-uri "easy-thumbnails" version))
236 "14gzp5cv24z0qhxb7f7k7v9jgzpaj4n8yhjq83ynpx8183fs1rz4"))))
237 (build-system python-build-system)
239 `(("python-django" ,python-django)
240 ("python-pillow" ,python-pillow)))
241 (home-page "https://github.com/SmileyChris/easy-thumbnails")
242 (synopsis "Easy thumbnails for Django")
244 "Easy thumbnails is a Django plugin to dynamically create thumbnails
245 based on source images. Multiple thumbnails can be created from a single
246 source image, using different options to control parameters like the image
248 (license license:bsd-3)))
250 (define-public python-pytest-django
252 (name "python-pytest-django")
256 (uri (pypi-uri "pytest-django" version))
259 "02932m2sr8x22m4az8syr8g835g4ak77varrnw71n6xakmdcr303"))))
260 (build-system python-build-system)
262 `(#:tests? #f ; FIXME: How to run tests?
264 (modify-phases %standard-phases
265 (add-after 'unpack 'patch-setuppy
267 (substitute* "setup.py"
268 (("setuptools_scm==1.11.1") "setuptools_scm"))
271 `(("python-django" ,python-django)
272 ("python-setuptools-scm" ,python-setuptools-scm)))
274 `(("python-pytest" ,python-pytest)))
275 (home-page "https://pytest-django.readthedocs.org/")
276 (synopsis "Django plugin for py.test")
277 (description "Pytest-django is a plugin for py.test that provides a set of
278 useful tools for testing Django applications and projects.")
279 (license license:bsd-3)))
281 (define-public python2-pytest-django
282 (package-with-python2 python-pytest-django))
284 (define-public python-django-filter
286 (name "python-django-filter")
290 (uri (pypi-uri "django-filter" version))
293 "0slpfqfhnjrzlrb6vmswyhrzn01p84s16j2x1xib35gg4fxg23pc"))))
294 (build-system python-build-system)
297 (modify-phases %standard-phases
300 (invoke "python" "runtests.py"))))))
302 `(("python-django" ,python-django)
303 ("python-djangorestframework" ,python-djangorestframework)
304 ("python-django-crispy-forms" ,python-django-crispy-forms)
305 ("python-mock" ,python-mock)))
306 (home-page "https://django-filter.readthedocs.io/en/latest/")
307 (synopsis "Reusable Django application to filter querysets dynamically")
309 "Django-filter is a generic, reusable application to alleviate writing
310 some of the more mundane bits of view code. Specifically, it allows users to
311 filter down a queryset based on a model’s fields, displaying the form to let
313 (license license:bsd-3)))
315 (define-public python2-django-filter
316 (package-with-python2 python-django-filter))
318 (define-public python-django-allauth
320 (name "python-django-allauth")
325 (uri (pypi-uri "django-allauth" version))
328 "17l0acpr3cihdndzccjhgv58f9z170v2qwx7w0b8w6235x646i24"))))
329 (build-system python-build-system)
332 (modify-phases %standard-phases
333 ;; TODO: Tagging the tests requiring the web could be done upstream.
334 (add-before 'check 'skip-test-requiring-network-access
336 (substitute* "allauth/socialaccount/providers/openid/tests.py"
337 (("import override_settings") "import tag, override_settings")
339 "@tag('requires-web')
343 ;; TODO: investigate why this test fails
344 (delete-file "allauth/socialaccount/providers/cern/tests.py")
345 (setenv "DJANGO_SETTINGS_MODULE" "test_settings")
346 (invoke "django-admin"
350 "--exclude-tag=requires-web"))))))
352 `(("python-openid" ,python-openid)
353 ("python-requests" ,python-requests)
354 ("python-requests-oauthlib" ,python-requests-oauthlib)))
356 `(("python-mock" ,python-mock)))
358 `(("python-django" ,python-django)))
359 (home-page "https://github.com/pennersr/django-allauth")
360 (synopsis "Set of Django applications addressing authentication")
362 "Integrated set of Django applications addressing authentication,
363 registration, account management as well as 3rd party (social)
364 account authentication.")
365 (license license:expat)))
367 (define-public python2-django-allauth
368 (package-with-python2 python-django-allauth))
370 (define-public python-django-debug-toolbar
372 (name "python-django-debug-toolbar")
378 (url "https://github.com/jazzband/django-debug-toolbar")
380 (file-name (git-file-name name version))
383 "0zr6yjsms97wlvvd17rdbrx01irkg887dn9x70c1hzfjmfvp9afk"))))
384 (build-system python-build-system)
386 `(("python-sqlparse" ,python-sqlparse)
387 ("python-django" ,python-django)))
389 `(("python-django-jinja" ,python-django-jinja)
390 ("python-html5lib" ,python-html5lib)))
393 (modify-phases %standard-phases
396 (invoke "make" "test"))))))
398 "https://github.com/jazzband/django-debug-toolbar")
399 (synopsis "Toolbar to help with developing Django applications")
401 "A configurable set of panels that display information about the current
402 request and response as a toolbar on the rendered page.")
403 (license license:bsd-3)))
405 (define-public python-django-gravatar2
407 (name "python-django-gravatar2")
412 (uri (pypi-uri "django-gravatar2" version))
415 "1qsv40xywbqsf4mkrmsswrpzqd7nfljxpfiim9an2z3dykn5rka6"))))
416 (build-system python-build-system)
418 '(;; TODO: The django project for the tests is missing from the release.
421 `(("python-django" ,python-django)))
422 (home-page "https://github.com/twaddington/django-gravatar")
423 (synopsis "Gravatar support for Django, improved version")
425 "Essential Gravatar support for Django. Features helper methods,
426 templatetags and a full test suite.")
427 (license license:expat)))
429 (define-public python2-django-gravatar2
430 (package-with-python2 python-django-gravatar2))
432 (define-public python-django-assets
434 (name "python-django-assets")
438 (uri (pypi-uri "django-assets" version))
441 "0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365"))))
442 (build-system python-build-system)
445 (modify-phases %standard-phases
446 (add-before 'check 'fix-tests
449 ;; https://github.com/miracle2k/django-assets/issues/87
450 (substitute* "tests/__init__.py"
451 (("settings.configure.*")
453 "settings.configure(\n"
454 "INSTALLED_APPS=['django_assets', "
455 "'django.contrib.staticfiles'],\n"
456 "TEMPLATES=[{'BACKEND': "
457 "'django.template.backends.django.DjangoTemplates'}],\n"
460 (substitute* "tests/test_django.py"
461 (("TestLoader") "NoTestLoader"))))))))
463 `(("python-nose" ,python-nose)))
465 `(("python-django" ,python-django)
466 ("python-webassets" ,python-webassets)))
467 (home-page "https://github.com/miracle2k/django-assets")
468 (synopsis "Asset management for Django")
470 "Asset management for Django, to compress and merge CSS and Javascript
471 files. Integrates the webassets library with Django, adding support for
472 merging, minifying and compiling CSS and Javascript files.")
473 (license license:bsd-2)))
475 (define-public python2-django-assets
476 (package-with-python2 python-django-assets))
478 (define-public python-django-jinja
480 (name "python-django-jinja")
486 (url "https://github.com/niwinz/django-jinja")
488 (file-name (git-file-name name version))
491 "1fcrxlznlq1xvl26y3j1r22vvy6m08r5l97xi2wj50rdmxhfvhis"))))
492 (build-system python-build-system)
494 `(("python-django" ,python-django)
495 ("python-jinja2" ,python-jinja2)
496 ("python-pytz" ,python-pytz)
497 ("python-django-pipeline" ,python-django-pipeline)))
499 '(;; TODO Tests currently fail due to issues with the configuration for
503 (modify-phases %standard-phases
505 (lambda* (#:key tests? #:allow-other-keys)
508 (with-directory-excursion "testing"
509 (invoke "python" "runtests.py"))))))))
511 "https://niwinz.github.io/django-jinja/latest/")
512 (synopsis "Simple jinja2 templating backend for Django")
514 "This package provides a templating backend for Django, using Jinja2. It
515 provides certain advantages over the builtin Jinja2 backend in Django, for
516 example, explicit calls to callables from templates and better performance.")
517 (license license:bsd-3)))
519 (define-public python-django-jsonfield
521 (name "python-django-jsonfield")
525 (uri (pypi-uri "jsonfield" version))
528 "19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy"))))
529 (build-system python-build-system)
532 (modify-phases %standard-phases
533 (add-before 'check 'fix-tests
535 (substitute* "jsonfield/tests.py"
536 (("django.forms.util") "django.forms.utils")))))))
538 `(("python-django" ,python-django)))
539 (home-page "https://github.com/bradjasper/django-jsonfield")
540 (synopsis "Store validated JSON in your model")
542 "Django-jsonfield is a reusable Django field that allows you to store
543 validated JSON in your model. It silently takes care of serialization. To
544 use, simply add the field to one of your models.")
545 (license license:expat)))
547 (define-public python2-django-jsonfield
548 (package-with-python2 python-django-jsonfield))
550 (define-public python-dj-database-url
552 (name "python-dj-database-url")
556 (uri (pypi-uri "dj-database-url" version))
559 "024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6"))))
560 (build-system python-build-system)
561 (home-page "https://github.com/kennethreitz/dj-database-url")
562 (synopsis "Use Database URLs in your Django Application")
564 "This simple Django utility allows you to utilize the 12factor inspired
565 DATABASE_URL environment variable to configure your Django application.
567 The dj_database_url.config method returns a Django database connection
568 dictionary, populated with all the data specified in your URL. There is also a
569 conn_max_age argument to easily enable Django’s connection pool.")
570 (license license:bsd-2)))
572 (define-public python2-dj-database-url
573 (package-with-python2 python-dj-database-url))
575 (define-public python-django-bulk-update
577 (name "python-django-bulk-update")
581 (uri (pypi-uri "django-bulk-update" version))
584 "0mbng9m7swfc0dnidipbzlxfhlfjrv755dlnha5s4m9mgdxb1fhc"))))
585 (build-system python-build-system)
587 ;; tests don't support django 1.10, but the module seems to work.
590 `(("six" ,python-six)
591 ("jsonfield" ,python-django-jsonfield)
592 ("python-dj-database-url" ,python-dj-database-url)))
594 `(("python-django" ,python-django)))
595 (home-page "https://github.com/aykut/django-bulk-update")
596 (synopsis "Simple bulk update over Django ORM or with helper function")
598 "Simple bulk update over Django ORM or with helper function. This
599 project aims to bulk update given objects using one query over Django ORM.")
600 (license license:expat)))
602 (define-public python2-django-bulk-update
603 (package-with-python2 python-django-bulk-update))
605 (define-public python-django-contact-form
607 (name "python-django-contact-form")
611 (uri (pypi-uri "django-contact-form" version))
614 "0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17"))))
615 (build-system python-build-system)
618 (modify-phases %standard-phases
621 ;; the next version will need "make test"
622 (invoke "flake8" "contact_form")
623 (invoke "coverage" "run" "contact_form/runtests.py")
624 (invoke "coverage" "report" "-m" "--fail-under" "0"))))))
626 `(("python-coverage" ,python-coverage)
627 ("python-flake8" ,python-flake8)))
629 `(("python-django" ,python-django)))
630 (home-page "https://github.com/ubernostrum/django-contact-form")
631 (synopsis "Contact form for Django")
633 "This application provides simple, extensible contact-form functionality
635 (license license:bsd-3)))
637 (define-public python2-django-contact-form
638 (package-with-python2 python-django-contact-form))
640 (define-public python-django-contrib-comments
642 (name "python-django-contrib-comments")
646 (uri (pypi-uri "django-contrib-comments" version))
649 "0bxsgw8jrkhg6r5s0z6ksfi4w8yknaqb1s9acmxd9pm3pnsnp5kx"))))
650 (build-system python-build-system)
652 `(("python-django" ,python-django)))
653 (home-page "https://github.com/django/django-contrib-comments")
654 (synopsis "Comments framework")
656 "Django used to include a comments framework; since Django 1.6 it's been
657 separated to a separate project. This is that project. This framework can be
658 used to attach comments to any model, so you can use it for comments on blog
659 entries, photos, book chapters, or anything else.")
660 (license license:bsd-3)))
662 (define-public python2-django-contrib-comments
663 (package-with-python2 python-django-contrib-comments))
665 (define-public python-django-overextends
667 (name "python-django-overextends")
671 (uri (pypi-uri "django-overextends" version))
674 "0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm"))))
675 (build-system python-build-system)
678 (modify-phases %standard-phases
680 (lambda _ (invoke "./test_project/manage.py" "test"))))))
682 `(("python-django" ,python-django)))
684 `(("sphinx-me" ,python-sphinx-me)))
685 (home-page "https://github.com/stephenmcd/django-overextends")
686 (synopsis "Circular template inheritance")
688 "A Django reusable app providing the overextends template tag, a drop-in
689 replacement for Django's extends tag, which allows you to use circular template
690 inheritance. The primary use-case for overextends is to simultaneously
691 override and extend templates from other reusable apps, in your own Django
693 (license license:bsd-2)))
695 (define-public python2-django-overextends
696 (package-with-python2 python-django-overextends))
698 (define-public python-django-pipeline
700 (name "python-django-pipeline")
705 (uri (pypi-uri "django-pipeline" version))
708 "1a207y71r7za033ira0qmh2yrgp5rq0l04gw2fg9b8jri7sslrzg"))))
709 (build-system python-build-system)
712 (modify-phases %standard-phases
713 (add-after 'unpack 'patch-source
715 (substitute* "tests/tests/test_compiler.py"
716 (("\\/usr\\/bin\\/env")
719 (lambda*(#:key tests? #:allow-other-keys)
724 (string-append (getcwd) ":"
725 (getenv "PYTHONPATH")))
726 (setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
727 (invoke "django-admin" "test" "tests"))))))))
729 `(("python-django" ,python-django)
730 ("python-slimit" ,python-slimit)
731 ("python-jsmin" ,python-jsmin)))
733 "https://github.com/jazzband/django-pipeline")
734 (synopsis "Asset packaging library for Django")
736 "Pipeline is an asset packaging library for Django, providing both CSS
737 and JavaScript concatenation and compression, built-in JavaScript template
738 support, and optional data-URI image and font embedding.")
739 (license license:expat)))
741 (define-public python-django-redis
743 (name "python-django-redis")
747 (uri (pypi-uri "django-redis" version))
750 "1rxcwnv9ik0swkwvfqdi9i9baw6n8if5pj6q63fjh4p9chw3j2xg"))))
751 (build-system python-build-system)
754 (modify-phases %standard-phases
757 (invoke "redis-server" "--daemonize" "yes")
758 (with-directory-excursion "tests"
759 (invoke "python" "runtests.py")))))))
761 `(("python-fakeredis" ,python-fakeredis)
762 ("python-hiredis" ,python-hiredis)
763 ("python-mock" ,python-mock)
764 ("python-msgpack" ,python-msgpack)
767 `(("python-django" ,python-django)
768 ("python-redis" ,python-redis)))
769 (home-page "https://github.com/niwibe/django-redis")
770 (synopsis "Full featured redis cache backend for Django")
772 "Full featured redis cache backend for Django.")
773 (license license:bsd-3)))
775 (define-public python2-django-redis
776 (package-with-python2 python-django-redis))
778 (define-public python-django-rq
780 (name "python-django-rq")
784 (uri (pypi-uri "django-rq" version))
787 "1ips1ikv5qhgwb58ssn496vgqg9qv6jinwmwbrg9l3s75fskd1l5"))))
788 (build-system python-build-system)
791 (modify-phases %standard-phases
794 (invoke "redis-server" "--daemonize" "yes")
795 (invoke "django-admin.py" "test" "django_rq"
796 "--settings=django_rq.tests.settings"
797 "--pythonpath="))))))
799 `(("python-mock" ,python-mock)
802 `(("python-django" ,python-django)
803 ("python-rq" ,python-rq)))
804 (home-page "https://github.com/ui/django-rq")
805 (synopsis "Django integration with RQ")
807 "Django integration with RQ, a Redis based Python queuing library.
808 Django-RQ is a simple app that allows you to configure your queues in django's
809 settings.py and easily use them in your project.")
810 (license license:expat)))
812 (define-public python2-django-rq
813 (package-with-python2 python-django-rq))
815 (define-public python-django-sortedm2m
817 (name "python-django-sortedm2m")
821 (uri (pypi-uri "django-sortedm2m" version))
824 "0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi"))))
825 (build-system python-build-system)
830 `(("python-django" ,python-django)))
831 (home-page "https://github.com/gregmuellegger/django-sortedm2m")
832 (synopsis "Drop-in replacement for django's own ManyToManyField")
834 "Sortedm2m is a drop-in replacement for django's own ManyToManyField.
835 The provided SortedManyToManyField behaves like the original one but remembers
836 the order of added relations.")
837 (license license:bsd-3)))
839 (define-public python2-django-sortedm2m
840 (package-with-python2 python-django-sortedm2m))
842 (define-public python-django-appconf
844 (name "python-django-appconf")
848 (uri (pypi-uri "django-appconf" version))
851 "1qw0p9qh78bvkgi38ba58djwn0rd5j1lrkg2c2wk5wb7snj3rw9m"))))
852 (build-system python-build-system)
854 `(("python-django" ,python-django)
855 ("python-six" ,python-six)))
856 (home-page "https://github.com/django-compressor/django-appconf")
857 (synopsis "Handle configuration defaults of packaged Django apps")
859 "This app precedes Django's own AppConfig classes that act as \"objects
860 [to] store metadata for an application\" inside Django's app loading mechanism.
861 In other words, they solve a related but different use case than
862 django-appconf and can't easily be used as a replacement. The similarity in
863 name is purely coincidental.")
864 (license license:bsd-3)))
866 (define-public python2-django-appconf
867 (package-with-python2 python-django-appconf))
869 (define-public python-django-statici18n
871 (name "python-django-statici18n")
875 (uri (pypi-uri "django-statici18n" version))
878 "0alcf4g1nv69njhq5k3qw4mfl2k6dc18bik5nk0g1mnp3m8zyz7k"))))
879 (build-system python-build-system)
881 `(("python-django" ,python-django)
882 ("django-appconf" ,python-django-appconf)))
883 (home-page "https://github.com/zyegfryed/django-statici18n")
884 (synopsis "Generate JavaScript catalog to static files")
886 "A Django app that provides helper for generating JavaScript catalog to
888 (license license:bsd-3)))
890 (define-public python2-django-statici18n
891 (package-with-python2 python-django-statici18n))
893 (define-public pootle
900 (uri (pypi-uri "Pootle" version ".tar.bz2"))
903 "1ng8igq0alsqzasgxdh3fb23581anyzp121h9041pwdzzv98kn4m"))))
904 (build-system python-build-system)
906 `(; pootle supports only python2.
908 ;; tests are not run and fail with "pytest_pootle/data/po/.tmp: No such
909 ;; file or directory". If we create this directory,
910 ;; pytest_pootle/data/po/terminology.po is missing.
913 (modify-phases %standard-phases
914 (add-before 'build 'fix-requirements
916 (substitute* "Pootle.egg-info/requires.txt"
919 (substitute* "requirements/tests.txt"
920 (("==3.0.6") ">=3.0.6"))
921 (substitute* "requirements/base.txt"
923 (("2.0.0") "2.1.0")))))))
925 `(("django-allauth" ,python2-django-allauth)
926 ("django-assets" ,python2-django-assets)
927 ("django-bulk-update" ,python2-django-bulk-update)
928 ("django-contact-form" ,python2-django-contact-form)
929 ("django-contrib-comments" ,python2-django-contrib-comments)
930 ("django-overextends" ,python2-django-overextends)
931 ("django-redis" ,python2-django-redis)
932 ("django-rq" ,python2-django-rq)
933 ("django-sortedm2m" ,python2-django-sortedm2m)
934 ("django-statici18n" ,python2-django-statici18n)
935 ("babel" ,python2-babel)
936 ("cssmin" ,python2-cssmin)
937 ("diff-match-patch" ,python2-diff-match-patch)
938 ("dirsync" ,python2-dirsync)
939 ("elasticsearch" ,python2-elasticsearch)
940 ("jsonfield" ,python2-django-jsonfield)
941 ("lxml" ,python2-lxml)
942 ("dateutil" ,python2-dateutil)
943 ("levenshtein" ,python2-levenshtein)
944 ("mysqlclient" ,python2-mysqlclient)
945 ("psycopg2" ,python2-psycopg2)
946 ("pytz" ,python2-pytz)
948 ("scandir" ,python2-scandir)
949 ("stemming" ,python2-stemming)
950 ("translate-toolkit" ,python2-translate-toolkit)))
952 `(("python2-pytest" ,python2-pytest)
953 ("python2-pytest-django" ,python2-pytest-django)
954 ("python2-pytest-catchlog" ,python2-pytest-catchlog)
955 ("python2-pytest-cov" ,python2-pytest-cov)
956 ("python2-factory-boy" ,python2-factory-boy)))
957 (home-page "https://pootle.translatehouse.org/")
958 (synopsis "Community localization server")
960 "Pootle is an online translation and localization tool. It works to
961 lower the barrier of entry, providing tools to enable teams to work towards
962 higher quality while welcoming newcomers.")
963 (license license:gpl3+)))
965 (define-public python-django-tagging
967 (name "python-django-tagging")
972 (uri (pypi-uri "django-tagging" version))
975 "0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1"))))
976 (build-system python-build-system)
977 (home-page "https://github.com/Fantomas42/django-tagging")
978 (synopsis "Generic tagging application for Django")
979 (description "This package provides a generic tagging application for
980 Django projects, which allows association of a number of tags with any
981 @code{Model} instance and makes retrieval of tags simple.")
982 (license license:bsd-3)))
984 (define-public python2-django-tagging
985 (package-with-python2 python-django-tagging))
987 (define-public python-djangorestframework
989 (name "python-djangorestframework")
994 (uri (pypi-uri "djangorestframework" version))
997 "11qv117gqwswxjljs7wafxg1hyzzlx3qrviwlk9hw41bsbl997lz"))))
998 (build-system python-build-system)
1000 '(;; No included tests
1003 `(("python-django" ,python-django)))
1004 (home-page "https://www.django-rest-framework.org")
1005 (synopsis "Toolkit for building Web APIs with Django")
1007 "The Django REST framework is for building Web APIs with Django. It
1008 provides features like a web browseable API and authentication policies.")
1009 (license license:bsd-2)))
1011 (define-public python-django-crispy-forms
1013 (name "python-django-crispy-forms")
1018 (uri (pypi-uri "django-crispy-forms" version))
1021 "0pv7y648i8iz7mf64gkjizpbx5d01ap2s4vqqa30n38if6wvlljr"))))
1022 (build-system python-build-system)
1024 '(;; No included tests
1027 `(("python-django" ,python-django)))
1029 "http://github.com/maraujop/django-crispy-forms")
1030 (synopsis "Tool to control Django forms without custom templates")
1032 "@code{django-crispy-forms} lets you easily build, customize and reuse
1033 forms using your favorite CSS framework, without writing template code.")
1034 (license license:expat)))
1036 (define-public python-django-override-storage
1038 (name "python-django-override-storage")
1043 (uri (pypi-uri "django-override-storage" version))
1045 (base32 "022arq94lxnlyykn8wvfnkykhi2dldnsn93pa2i41na551i0wpiv"))))
1046 (build-system python-build-system)
1048 `(("python-django" ,python-django)))
1050 "https://github.com/danifus/django-override-storage")
1051 (synopsis "Django test helpers to manage file storage side effects")
1053 "This project provides tools to help reduce the side effects of using
1054 FileFields during tests.")
1055 (license license:expat)))