2016-08-22 07:31:36 -04:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2020-07-21 05:24:49 -04:00
|
|
|
|
;;; Copyright © 2016, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
mailmap: Update entries for Nikita.
* .mailmap: change email and name for Nikita.
* Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish,
gnu/packages/accessibility.scm, gnu/packages/admin.scm,
gnu/packages/audio.scm, gnu/packages/autotools.scm, gnu/packages/cdrom.scm,
gnu/packages/check.scm, gnu/packages/cinnamon.scm,
gnu/packages/compression.scm, gnu/packages/crypto.scm,
gnu/packages/databases.scm, gnu/packages/django.scm, gnu/packages/dns.scm,
gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm,
gnu/packages/enlightenment.scm, gnu/packages/erlang.scm,
gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/forth.scm,
gnu/packages/fvwm.scm, gnu/packages/games.scm, gnu/packages/gl.scm,
gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm,
gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm,
gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm,
gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.scm,
gnu/packages/haskell.scm, gnu/packages/image-viewers.scm,
gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/language.scm,
gnu/packages/libcanberra.scm, gnu/packages/linux.scm,
gnu/packages/lisp-xyz.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm,
gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm,
gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm,
gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm,
gnu/packages/ncurses.scm, gnu/packages/networking.scm,
gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm,
gnu/packages/perl-check.scm, gnu/packages/perl.scm,
gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm, gnu/packages/python-xyz.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm,
gnu/packages/rust.scm, gnu/packages/scheme.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm,
gnu/packages/telephony.scm, gnu/packages/text-editors.scm,
gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm,
gnu/packages/tor.scm, gnu/packages/version-control.scm,
gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm,
gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm,
gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm,
gnu/services/desktop.scm, gnu/services/version-control.scm,
gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm: Likewise.
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2020-05-11 07:05:45 -04:00
|
|
|
|
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
2019-03-14 15:56:55 -04:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-12-18 13:26:33 -05:00
|
|
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
2018-03-28 18:55:43 -04:00
|
|
|
|
;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
|
2019-04-27 12:32:07 -04:00
|
|
|
|
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
|
2020-08-31 18:20:28 -04:00
|
|
|
|
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
|
2016-08-22 07:31:36 -04:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages django)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2019-04-27 12:32:07 -04:00
|
|
|
|
#:use-module (guix git-download)
|
2016-08-22 07:31:36 -04:00
|
|
|
|
#:use-module (guix build-system python)
|
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
|
#:use-module (gnu packages base)
|
2017-04-23 10:54:53 -04:00
|
|
|
|
#:use-module (gnu packages databases)
|
gnu: Move testing packages from python.scm to check.scm.
* gnu/packages/python.scm (python-behave-web-api, python2-behave-web-api,
python-mock, python2-mock, python-mock-2, python-nose, python2-nose,
python-nose2, python2-nose2, python-unittest2, python2-unittest2,
python-pytest, python2-pytest, python-pytest-3.0, python2-pytest-3.0,
python-pytest-cov, python2-pytest-cov, python-pytest-runner,
python2-pytest-runner, python-pytest-mock, python2-pytest-mock,
python-pytest-xdist, python2-pytest-xdist, python-scripttest,
python2-scripttest, python-testtools, python2-testtools, python-testscenarios,
python2-testscenarios, python-testresources, python2-testresources,
python-subunit, python2-subunit, python-fixtures, python2-fixtures,
python-testrepository, python2-testrepository, python-coverage,
python2-coverage, python-cov-core, python2-cov-core, python-testpath,
python2-testpath, python-testlib, python2-testlib, python-pytest-cache,
python2-pytest-cache, python-pytest-localserver, python-pytest-xprocess,
python-pytest-subtesthack, python2-pytest-subtesthack, python-hypothesis,
python2-hypothesis, python-lit, python2-lit, python-pytest-pep8,
python2-pytest-pep8, python-pytest-flakes, python2-pytest-flakes,
python2-coverage-test-runner, python-pylint, python2-pylint,
python-paramunittest, python2-python-paramunittest, python-pytest-warnings,
python2-pytest-warnings, python-pytest-capturelog, python2-pytest-capturelog,
python-pytest-catchlog, python2-pytest-catchlog, python-nosexcover,
python2-nosexcover, python-discover, python2-discover, behave, python-rednose,
python2-rednose, python-nose-randomly, python2-nose-randomly,
python-nose-timer, python2-nose-timer): Move from here...
* gnu/packages/check.scm: ...to here.
* gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/backup.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm,
gnu/packages/dav.scm,
gnu/packages/django.scm,
gnu/packages/freedesktop.scm,
gnu/packages/haskell.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/ldc.scm,
gnu/packages/libffi.scm,
gnu/packages/mail.scm,
gnu/packages/mpd.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm: Adjust accordingly.
2017-11-17 15:42:23 -05:00
|
|
|
|
#:use-module (gnu packages check)
|
2020-07-21 05:29:56 -04:00
|
|
|
|
#:use-module (gnu packages geo)
|
gnu: Move web packages from python to python-web.
This is in part to address <https://bugs.gnu.org/27284>.
* gnu/packages/python.scm (python-httplib2, python2-httplib2)
(python-sockjs-tornado, python2-sockjs-tornado)
(python-flask-babel, python2-flask-babel)
(python-html5lib, python2-html5lib)
(python-html5lib-0.9, python2-html5lib-0.9)
(python-html5-parser, python2-html5-parser)
(python-webencodings, python2-webencodings)
(python-openid, python2-openid, python-cssutils, python2-cssutils)
(python-cssselect, python2-cssutils)
(python-openid-cla, python2-openid-cla)
(python-openid-teams, python2-openid-teams)
(python-tornado, python2-tornado)
(python-tornado-http-auth, python-terminado, python2-terminado)
(python-webob, python2-webob, python-zope-event, python2-zope-event)
(python-zope-interface, python2-zope-interface)
(python-zope-exceptions, python2-zope-exceptions)
(python-zope-testing, python2-zope-testing)
(python-zope-testrunner, python2-zope-testrunner)
(python-zope-i18nmessageid, python2-zope-i18nmessageid)
(python-zope-schema, python2-zope-schema)
(python-zope-configuration, python2-zope-configuration)
(python-zope-proxy, python2-zope-proxy)
(python-zope-location, python2-zope-location)
(python-zope-security, python2-zope-security)
(python-zope-component, python2-zope-component)
(python-ndg-httpsclient, python2-ndg-httpsclient)
(python-websocket-client, python2-websocket-client)
(python-requests-toolbelt, python2-requests-toolbelt)
(python-rauth, python2-rauth, python-urllib3, python2-urllib3)
(awscli, python-wsgiproxy2, python2-wsgiproxy2)
(python-pastedeploy, python2-pastedeploy)
(python-webtest, python2-webtest, python-flask, python2-flask)
(python-flast-wtf, python2-flask-wtf)
(python-flask-multistatic, python2-flask-multistatic)
(python-cookies, python2-cookies)
(python-responses, python2-responses)
(python-geventhttpclient, python2-geventhttpclient)
(python-requests-oauthlib, python2-requests-oauthlib)
(python-url, python2-url, python-cachecontrol, python2-cachecontrol)
(python-betamax, python2-betamax)
(python-betamax-matchers, python2-betamax-matchers)
(python-s3transfer, python2-s3transfer)
(python-flask-restful, python-flask-basicauth)
(python-flask-sqlalchemy, python-flask-restplus)
(python-flask-restful-swagger, python-htmlmin, python2-htmlmin)
(python-flask-htmlmin, python2-flask-htmlmin)
(python-flask-login, python2-flask-login)
(python-oauth2client, python-flask-oidc)
(python-webassets, python-cssmin, python2-cssmin)
(python-elasticsearch, python2-elasticsearch)
(python-flask-script, python2-flask-script)
(python-flask-migrate, python2-flask-migrate)
(python-genshi, python2-genshi)
(python-flask-principal, python2-flask-principal)
(python-flask-httpauth, python2-flask-httpauth)
(python-uritemplate, python2-uritemplate): Move to...
* gnu/packages/python-web.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/admin.scm, gnu/packages/backup.scm,
gnu/packages/dav.scm, gnu/packages/django.scm,
gnu/packages/docker.scm, gnu/packages/ebook.scm,
gnu/packages/logging.scm, gnu/packages/mail.scm,
gnu/packages/music.scm, gnu/packages/openstack.scm,
gnu/packages/package-management.scm, gnu/packages/rdf.scm,
gnu/packages/tls.scm, gnu/packages/tor.scm,
gnu/packages/tryton.scm, gnu/packages/version-control.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm: Adjust accordingly.
2017-11-13 17:24:11 -05:00
|
|
|
|
#:use-module (gnu packages python)
|
2020-07-21 07:30:59 -04:00
|
|
|
|
#:use-module (gnu packages python-compression)
|
2020-07-23 05:25:11 -04:00
|
|
|
|
#:use-module (gnu packages python-crypto)
|
gnu: Move date/time packages from python.scm to time.scm.
* gnu/packages/python.scm (python-pytz, python2-pytz, python-dateutil,
python2-dateutil, python-parsedatetime, python2-parsedatetime,
python-tzlocal, python-isodate, python2-isodate, python-iso8601,
python2-iso8601, python-monotonic, python2-monotonic, python-pyrfc3339,
python2-pyrfc3339, python-arrow, python2-arrow, python-aniso8601,
python2-aniso8601): Move from here...
* gnu/packages/time.scm: ...to here.
* gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/django.scm,
gnu/packages/ebook.scm,
gnu/packages/gnome.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/mail.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/rdf.scm,
gnu/packages/statistics.scm,
gnu/packages/tls.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm: Adjust accordingly.
2017-11-18 05:58:44 -05:00
|
|
|
|
#:use-module (gnu packages python-web)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 08:21:30 -05:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
gnu: Move Sphinx and friends to (gnu packages sphinx).
* gnu/packages/python-xyz.scm (python-sphinxcontrib-websupport,
python2-sphinxcontrib-websupport, python-sphinx, python2-sphinx,
python-sphinx-gallery, python2-sphinx-gallery, python-sphinx-rtd-theme,
python2-sphinx-rtd-theme, python-guzzle-sphinx-theme,
python2-guzzle-sphinx-theme, python-sphinxcontrib-newsfeed,
python-sphinxcontrib-programoutput, python2-sphinxcontrib-programoutput,
python-sphinx-repoze-interface, python2-sphinx-repoze-interface,
python-sphinx-cloud-sptheme, python2-sphinx-cloud-sptheme,
python-sphinx-alabaster-theme, python2-sphinx-alabaster-theme,
python-sphinx-me, python-sphinxcontrib-svg2pdfconverter): Move to ...
(gnu):
* gnu/packages/sphinx.scm: ... here. New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
* gnu/packages/admin.scm, gnu/packages/bioinformatics.scm,
gnu/packages/calendar.scm, gnu/packages/cluster.scm,
gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/disk.scm,
gnu/packages/django.scm, gnu/packages/elf.scm, gnu/packages/emacs-xyz.scm,
gnu/packages/emulators.scm, gnu/packages/finance.scm, gnu/packages/image.scm,
gnu/packages/libffi.scm, gnu/packages/mail.scm, gnu/packages/mpd.scm,
gnu/packages/openstack.scm, gnu/packages/pdf.scm, gnu/packages/python-web.scm,
gnu/packages/search.scm, gnu/packages/statistics.scm,
gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm,
gnu/packages/tls.scm, gnu/packages/web.scm: Adjust module imports.
2019-05-12 16:56:54 -04:00
|
|
|
|
#:use-module (gnu packages sphinx)
|
2020-01-15 14:19:26 -05:00
|
|
|
|
#:use-module (gnu packages time)
|
|
|
|
|
#:use-module (gnu packages xml))
|
2016-08-22 07:31:36 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django")
|
2020-08-31 18:20:28 -04:00
|
|
|
|
(version "3.1.1")
|
2016-08-22 07:31:36 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-08-31 18:20:28 -04:00
|
|
|
|
"0bzwy58hrxbsh7szak1yfh7qvvfnpdpi8ay1x7d3pvbkm1f15j2r"))))
|
2016-08-22 07:31:36 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-08-31 18:20:28 -04:00
|
|
|
|
'(#:phases
|
2016-08-22 07:31:36 -04:00
|
|
|
|
(modify-phases %standard-phases
|
2020-08-31 18:20:28 -04:00
|
|
|
|
(add-before 'check 'pre-check
|
2016-08-22 07:31:36 -04:00
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; The test-suite tests timezone-dependent functions, thus tzdata
|
|
|
|
|
;; needs to be available.
|
|
|
|
|
(setenv "TZDIR"
|
|
|
|
|
(string-append (assoc-ref inputs "tzdata")
|
|
|
|
|
"/share/zoneinfo"))
|
2020-08-31 18:20:28 -04:00
|
|
|
|
|
|
|
|
|
;; Disable test for incorrect timezone: it only raises the
|
|
|
|
|
;; expected error when /usr/share/zoneinfo exists, even though
|
|
|
|
|
;; the machinery gracefully falls back to TZDIR. According to
|
|
|
|
|
;; django/conf/__init__.py, lack of /usr/share/zoneinfo is
|
|
|
|
|
;; harmless, so just ignore this test.
|
|
|
|
|
(substitute* "tests/settings_tests/tests.py"
|
|
|
|
|
((".*def test_incorrect_timezone.*" all)
|
|
|
|
|
(string-append " @unittest.skipIf(True, 'Disabled by Guix')\n"
|
|
|
|
|
all)))
|
|
|
|
|
|
|
|
|
|
;; Preserve the PYTHONPATH created by Guix when running the tests.
|
2018-02-24 14:13:58 -05:00
|
|
|
|
(substitute* "tests/admin_scripts/tests.py"
|
|
|
|
|
(("python_path = \\[")
|
|
|
|
|
(string-append "python_path = ['"
|
2020-08-31 18:20:28 -04:00
|
|
|
|
(string-join
|
|
|
|
|
(string-split (getenv "PYTHONPATH") #\:)
|
|
|
|
|
"','")
|
2018-02-24 14:13:58 -05:00
|
|
|
|
"', ")))
|
2020-08-31 18:20:28 -04:00
|
|
|
|
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(with-directory-excursion "tests"
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append "..:" (getenv "PYTHONPATH")))
|
|
|
|
|
(invoke "python" "runtests.py"
|
|
|
|
|
;; By default tests run in parallel, which may cause
|
|
|
|
|
;; various race conditions. Run sequentially for
|
|
|
|
|
;; consistent results.
|
|
|
|
|
"--parallel=1")))))))
|
2016-08-22 07:31:36 -04:00
|
|
|
|
;; TODO: Install extras/django_bash_completion.
|
2016-09-15 16:07:29 -04:00
|
|
|
|
(native-inputs
|
2018-03-16 11:50:14 -04:00
|
|
|
|
`(("tzdata" ,tzdata-for-tests)
|
2016-09-15 16:07:29 -04:00
|
|
|
|
;; Remaining packages are test requirements taken from
|
|
|
|
|
;; tests/requirements/py3.txt
|
2016-08-22 07:31:36 -04:00
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
;; optional for tests: ("python-geoip2" ,python-geoip2)
|
|
|
|
|
("python-jinja2" ,python-jinja2) ; >= 2.7
|
|
|
|
|
;; optional for tests: ("python-memcached" ,python-memcached)
|
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
|
("python-pillow" ,python-pillow)
|
|
|
|
|
("python-pyyaml" ,python-pyyaml)
|
|
|
|
|
;; optional for tests: ("python-selenium" ,python-selenium)
|
|
|
|
|
("python-tblib" ,python-tblib)))
|
2018-02-24 14:13:58 -05:00
|
|
|
|
(propagated-inputs
|
2020-07-23 05:25:11 -04:00
|
|
|
|
`(("python-argon2-cffi" ,python-argon2-cffi)
|
2020-08-31 18:20:28 -04:00
|
|
|
|
("python-asgiref" ,python-asgiref)
|
2020-07-23 05:25:11 -04:00
|
|
|
|
("python-bcrypt" ,python-bcrypt)
|
2020-08-31 20:32:02 -04:00
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
|
|
|
|
|
;; This input is not strictly required, but in practice many Django
|
|
|
|
|
;; libraries need it for test suites and similar.
|
|
|
|
|
("python-sqlparse" ,python-sqlparse)))
|
2020-03-20 19:05:03 -04:00
|
|
|
|
(home-page "https://www.djangoproject.com/")
|
2016-08-22 07:31:36 -04:00
|
|
|
|
(synopsis "High-level Python Web framework")
|
|
|
|
|
(description
|
|
|
|
|
"Django is a high-level Python Web framework that encourages rapid
|
|
|
|
|
development and clean, pragmatic design. It provides many tools for building
|
|
|
|
|
any Web site. Django focuses on automating as much as possible and adhering
|
|
|
|
|
to the @dfn{don't repeat yourself} (DRY) principle.")
|
|
|
|
|
(license license:bsd-3)
|
2017-04-04 12:30:52 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-django))
|
|
|
|
|
(cpe-name . "django")))))
|
2016-08-22 07:31:36 -04:00
|
|
|
|
|
|
|
|
|
(define-public python2-django
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-django))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
2016-09-15 16:07:29 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; Test requirements for Python 2 taken from
|
|
|
|
|
;; tests/requirements/py3.txt: enum34 and mock.
|
2016-08-22 07:31:36 -04:00
|
|
|
|
("python2-enum34" ,python2-enum34)
|
|
|
|
|
("python2-mock" ,python2-mock)
|
|
|
|
|
;; When adding memcached mind: for Python 2 memcached <= 1.53 is
|
|
|
|
|
;; required.
|
2016-09-22 15:04:05 -04:00
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-22 07:31:37 -04:00
|
|
|
|
|
2020-08-31 18:20:28 -04:00
|
|
|
|
(define-public python-django-2.2
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-django)
|
|
|
|
|
(version "2.2.16")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1535g2r322cl4x52fb0dmzlbg23539j2wx6027j54p22xvjlbkv2"))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; XXX: In 2.2 and 3.0, selenium is required for the test suite.
|
|
|
|
|
("python-selenium" ,python-selenium)
|
|
|
|
|
,@(package-native-inputs python-django)))))
|
|
|
|
|
|
2019-04-27 12:32:07 -04:00
|
|
|
|
(define-public python-django-extensions
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-extensions")
|
2020-09-01 06:02:22 -04:00
|
|
|
|
(version "3.0.6")
|
2019-04-27 12:32:07 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
;; Fetch from the git repository, so that the tests can be run.
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/django-extensions/django-extensions")
|
2019-04-27 12:32:07 -04:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (string-append name "-" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:02:22 -04:00
|
|
|
|
"0sra6hazqvspxd1pnx5cj7gia1rkaz3hn06ib4wd0frc167f5afy"))))
|
2019-04-27 12:32:07 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 06:02:22 -04:00
|
|
|
|
'(#:tests? #f)) ;XXX: requires a Postgres or MySQL database
|
2019-04-27 12:32:07 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-six" ,python-six)
|
|
|
|
|
("python-vobject" ,python-vobject)
|
|
|
|
|
("python-werkzeug" ,python-werkzeug)
|
|
|
|
|
("python-dateutil" ,python-dateutil)
|
|
|
|
|
("python-django" ,python-django)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)
|
|
|
|
|
("python-factory-boy" ,python-factory-boy)
|
|
|
|
|
("python-tox" ,python-tox)
|
|
|
|
|
("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-cov" ,python-pytest-cov)
|
|
|
|
|
("python-pytest-django" ,python-pytest-django)
|
|
|
|
|
("python-shortuuid" , python-shortuuid)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/django-extensions/django-extensions")
|
|
|
|
|
(synopsis "Custom management extensions for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Django-extensions extends Django providing, for example, management
|
|
|
|
|
commands, additional database fields and admin extensions.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2016-08-22 07:31:37 -04:00
|
|
|
|
(define-public python-django-simple-math-captcha
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-simple-math-captcha")
|
2020-09-01 05:30:23 -04:00
|
|
|
|
(version "1.0.9")
|
|
|
|
|
(home-page "https://github.com/alsoicode/django-simple-math-captcha")
|
2016-08-22 07:31:37 -04:00
|
|
|
|
(source (origin
|
2020-09-01 05:30:23 -04:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2016-08-22 07:31:37 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 05:30:23 -04:00
|
|
|
|
"0fhy9k8haqa1296v0qpg1b5w7y3pyw9qi9z9laj5ijry1gk35qaw"))))
|
2016-08-22 07:31:37 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-12-14 06:40:13 -05:00
|
|
|
|
(arguments
|
2020-09-01 05:30:23 -04:00
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-six-imports
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Django no longer bundles six, adjust the imports
|
|
|
|
|
;; accordingly. The six dependency can likely be
|
|
|
|
|
;; removed in the next version.
|
|
|
|
|
(substitute* (find-files "." "\\.py$")
|
|
|
|
|
(("from django\\.utils import six")
|
|
|
|
|
"import six"))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "python" "runtests.py"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)))
|
2016-08-22 07:31:37 -04:00
|
|
|
|
(propagated-inputs
|
2020-09-01 05:30:23 -04:00
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-six" ,python-six)))
|
2016-08-22 07:31:37 -04:00
|
|
|
|
(synopsis "Easy-to-use math field/widget captcha for Django forms")
|
|
|
|
|
(description
|
|
|
|
|
"A multi-value-field that presents a human answerable question,
|
|
|
|
|
with no settings.py configuration necessary, but instead can be configured
|
|
|
|
|
with arguments to the field constructor.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-simple-math-captcha
|
|
|
|
|
(package-with-python2 python-django-simple-math-captcha))
|
2016-09-11 14:30:55 -04:00
|
|
|
|
|
2020-07-21 05:33:55 -04:00
|
|
|
|
(define-public python-django-classy-tags
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-classy-tags")
|
2020-09-01 05:51:56 -04:00
|
|
|
|
(version "2.0.0")
|
2020-07-21 05:33:55 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-classy-tags" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 05:51:56 -04:00
|
|
|
|
"1javam3zqi3y3j0r490mm61v48yh75jaha99gb7lsxkaz6yri7fm"))))
|
2020-07-21 05:33:55 -04:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 05:51:56 -04:00
|
|
|
|
;; FIXME: How to make the test templates available to Django?
|
|
|
|
|
(arguments '(#:tests? #f))
|
2020-07-21 05:33:55 -04:00
|
|
|
|
(propagated-inputs
|
2020-09-01 05:51:56 -04:00
|
|
|
|
`(("python-django" ,python-django)))
|
2020-07-21 05:33:55 -04:00
|
|
|
|
(home-page "https://github.com/divio/django-classy-tags")
|
|
|
|
|
(synopsis "Class based template tags for Django")
|
|
|
|
|
(description
|
|
|
|
|
"@code{django-classy-tags} is an approach at making writing template tags
|
|
|
|
|
in Django easier, shorter and more fun. It provides an extensible argument
|
|
|
|
|
parser which reduces most of the boiler plate code you usually have to write
|
|
|
|
|
when coding custom template tags.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2019-04-28 10:57:41 -04:00
|
|
|
|
(define-public python-django-taggit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-taggit")
|
2020-09-01 06:03:41 -04:00
|
|
|
|
(version "1.3.0")
|
2019-04-28 10:57:41 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-taggit" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:03:41 -04:00
|
|
|
|
"0bbkabbs77z229ps0800gxfhf75yagp4x4j5jzfysbac3zvkp0sa"))))
|
2019-04-28 10:57:41 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "python3" "-m" "django" "test" "--settings=tests.settings"))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-isort" ,python-isort)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/jazzband/django-taggit")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Reusable Django application for simple tagging")
|
|
|
|
|
(description
|
|
|
|
|
"Django-taggit is a reusable Django application for simple tagging.")
|
|
|
|
|
(license license:bsd-3)))
|
2020-03-19 19:47:50 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-easy-thumbnails
|
|
|
|
|
(package
|
|
|
|
|
(name "python-easy-thumbnails")
|
|
|
|
|
(version "2.7")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "easy-thumbnails" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"14gzp5cv24z0qhxb7f7k7v9jgzpaj4n8yhjq83ynpx8183fs1rz4"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-pillow" ,python-pillow)))
|
|
|
|
|
(home-page "https://github.com/SmileyChris/easy-thumbnails")
|
|
|
|
|
(synopsis "Easy thumbnails for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Easy thumbnails is a Django plugin to dynamically create thumbnails
|
|
|
|
|
based on source images. Multiple thumbnails can be created from a single
|
|
|
|
|
source image, using different options to control parameters like the image
|
|
|
|
|
size and quality.")
|
|
|
|
|
(license license:bsd-3)))
|
2019-04-28 10:57:41 -04:00
|
|
|
|
|
2016-09-11 14:30:55 -04:00
|
|
|
|
(define-public python-pytest-django
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-django")
|
2020-09-01 05:27:48 -04:00
|
|
|
|
(version "3.10.0")
|
2016-09-11 14:30:55 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 05:27:48 -04:00
|
|
|
|
"19nvqsb7b9kz3ikpb50m8ppf7mfhzrapdxsqd5hhd1pdfz8dprjd"))))
|
2016-09-11 14:30:55 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 05:27:48 -04:00
|
|
|
|
`(#:phases
|
2016-09-11 14:30:55 -04:00
|
|
|
|
(modify-phases %standard-phases
|
2020-09-01 05:27:48 -04:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
|
|
|
|
(if tests?
|
|
|
|
|
(begin
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append ".:" ;for pytest_django_test
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(setenv "PYTEST_DJANGO_TEST_RUNNER" "pytest")
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE"
|
|
|
|
|
"pytest_django_test.settings_sqlite_file")
|
|
|
|
|
(invoke "pytest" "-vv" "-k"
|
|
|
|
|
;; FIXME: these tests fail to locate Django templates ...
|
|
|
|
|
(string-append "not test_django_not_loaded_without_settings"
|
|
|
|
|
" and not test_settings"
|
|
|
|
|
;; ... and this does not discover
|
|
|
|
|
;; 'pytest_django_test'.
|
|
|
|
|
" and not test_urls_cache_is_cleared")))
|
|
|
|
|
(format #t "test suite not run~%"))
|
2016-09-11 14:30:55 -04:00
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2016-10-27 15:27:31 -04:00
|
|
|
|
`(("python-django" ,python-django)
|
2020-09-01 05:27:48 -04:00
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)
|
|
|
|
|
|
|
|
|
|
;; For tests.
|
|
|
|
|
("python-pytest-xdist" ,python-pytest-xdist)))
|
gnu: Fix python inputs, part 1: all inputs become propagated-inputs.
This patch contains the changes where all [inputs] are changed to
[propagated-inputs]
* gnu/packages/python.scm (python-passlib, python-paramiko, python-ccm,
python-babel, python-keyring python-pandas, python-tzlocal,
python-parse-type, python-nose2, python-pytest, python-pytest-mock,
python-pytest-xdist, python-scripttest, python-testtools, python-pytest-cov,
python-testscenarios, python-pbr-0.11, python-oauthlib, python-jinja2,
python-sphinx, python-tzlocal, python-bugz, python2-pytest-mock, behave,
pelican, sqlalchemy-utils, python-pygridtools, python-urwidtrees,
python-tornado, python2-tornado, python-debian, python-execnet,
python-pytest-cache, pytest-localserver, python-clint, python-rply,
python-hy, python-rauth, python-rsa, python-celery, python-vobject, s3cmd,
python-prompt-toolkit, ptpython, python-requests-oauthlib, python-stem,
python-binaryornot, python2-binaryornot, python-nltk, python-pymongo,
python-schematics, python-url, python2-url, python-freezegun,
python-glances, python-graphql-core, python-graphql-relay, python-graphene,
python-nautilus, python-s3transfer): All [inputs] become
[propagated-inputs].
* gnu/packages/bioinformatics.scm (python-biopython): Likewise.
* gnu/packages/django.scm (pytest-django): Likewise.
* gnu/packages/mail.scm (python-mailmanclient): Likewise.
* gnu/packages/password-utils.scm (python-bcrypt): Likewise.
* gnu/packages/propbuf.scm (python-protobuf): Likewise.
* gnu/packages/rdf.scm (python-rdflib): Likewise.
SQACH all become propagated
2016-10-13 07:33:43 -04:00
|
|
|
|
(propagated-inputs
|
2017-11-19 09:01:00 -05:00
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
2020-01-18 16:46:05 -05:00
|
|
|
|
(home-page "https://pytest-django.readthedocs.org/")
|
2016-09-11 14:30:55 -04:00
|
|
|
|
(synopsis "Django plugin for py.test")
|
|
|
|
|
(description "Pytest-django is a plugin for py.test that provides a set of
|
|
|
|
|
useful tools for testing Django applications and projects.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-django
|
gnu: Remove python-setuptools and python2-setuptools from inputs (part 4a)
This patch contains the changes for all modules beside python.scm where
setuptools are used in an inherited package and removing this input also
removes the need for inheriting the package. This is the case if adding
setuptools in the inherited package was the only change.
Change this to not inherit and remove the new needless call to
"strip-python2-variant (if applicable).
* gnu/packages/bioinformatics.scm (python-biopython, python2-biopython,
python-twobitreader, python2-twobitreader,
python-plastid, python2-plastid,
python2-pybigwig,
python2-screed,
sra-tools): No longer "inherit" Python 2 packages
inheriting from a Python 3 package if the sole reason for inheriting was
adding python-setuptools respective python2-setuptools to [inputs],
[native-inputs] or [propagated-inputs]. Remove now needless [properties]
"python2-variant" where applicable.
* gnu/packages/django.scm (python-pytest-django, python2-pytest-django,
python-django-filter, python2-django-filter): Likewise.
* gnu/packages/gnupg.scm (python2-pygpgme): Likewise.
* gnu/packages/mail.scm (python-mailmanclient, python2-mailmanclient):
Likewise.
* gnu/packages/mpd.scm (python-msp, python2-mpd2): Likewise.
* gnu/packages/music.scm (python-pylast, python2-pylast): Likewise.
* gnu/packages/openstack.scm (python-requests-mock, python2-requests-mock,
python2-git-review): Likewise.
* gnu/packages/password-utils.scm (python2-bcrypt): Likewise.
* gnu/packages/protobuf.scm (python-protobuf, python2-protobuf): Likewise.
* gnu/packages/statistics.scm (python-patsy, python2-patsy): Likewise.
* gnu/packages/web.scm (python2-feedparser): Likewise.
2016-09-28 07:57:21 -04:00
|
|
|
|
(package-with-python2 python-pytest-django))
|
2016-09-11 14:31:44 -04:00
|
|
|
|
|
2020-07-21 05:29:56 -04:00
|
|
|
|
(define-public python-django-haystack
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-haystack")
|
|
|
|
|
(version "2.8.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-haystack" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1302fqsrx8w474xk5cmnmg3hjqfprlxnjg9qlg86arsr4v4vqm4b"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'loosen-verion-restrictions
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("geopy.*") "geopy',\n"))
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'check 'set-gdal-lib-path
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(setenv "GDAL_LIBRARY_PATH"
|
|
|
|
|
(string-append (assoc-ref inputs "gdal")
|
|
|
|
|
"/lib"))
|
|
|
|
|
#t)))
|
|
|
|
|
#:tests? #f)) ; OSError: libgdal.so.27: cannot open shared object file
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("gdal" ,gdal)
|
|
|
|
|
("python-coverage" ,python-coverage)
|
|
|
|
|
("python-dateutil" ,python-dateutil)
|
|
|
|
|
("python-geopy" ,python-geopy)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-nose" ,python-nose)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-setuptools-scm" ,python-setuptools-scm)
|
|
|
|
|
("python-pysolr" ,python-pysolr)
|
|
|
|
|
("python-whoosh" ,python-whoosh)))
|
|
|
|
|
(home-page "http://haystacksearch.org/")
|
|
|
|
|
(synopsis "Pluggable search for Django")
|
|
|
|
|
(description "Haystack provides modular search for Django. It features a
|
|
|
|
|
unified, familiar API that allows you to plug in different search backends
|
|
|
|
|
(such as Solr, Elasticsearch, Whoosh, Xapian, etc.) without having to modify
|
|
|
|
|
your code.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2016-09-11 14:31:44 -04:00
|
|
|
|
(define-public python-django-filter
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-filter")
|
2020-09-01 06:09:31 -04:00
|
|
|
|
(version "2.3.0")
|
2016-09-11 14:31:44 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-filter" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:09:31 -04:00
|
|
|
|
"1bz5qzdk9pk4a2lp2yacrdnqmkv24vxnz4k3lykrnpc3b7bkvrhi"))))
|
2016-09-11 14:31:44 -04:00
|
|
|
|
(build-system python-build-system)
|
2016-12-14 06:43:36 -05:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-01-14 04:34:10 -05:00
|
|
|
|
(invoke "python" "runtests.py"))))))
|
2016-10-27 15:18:30 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
2018-03-04 08:23:38 -05:00
|
|
|
|
("python-djangorestframework" ,python-djangorestframework)
|
2018-03-16 11:50:14 -04:00
|
|
|
|
("python-django-crispy-forms" ,python-django-crispy-forms)
|
2016-10-27 15:18:30 -04:00
|
|
|
|
("python-mock" ,python-mock)))
|
2016-09-11 14:31:44 -04:00
|
|
|
|
(home-page "https://django-filter.readthedocs.io/en/latest/")
|
|
|
|
|
(synopsis "Reusable Django application to filter querysets dynamically")
|
|
|
|
|
(description
|
|
|
|
|
"Django-filter is a generic, reusable application to alleviate writing
|
|
|
|
|
some of the more mundane bits of view code. Specifically, it allows users to
|
|
|
|
|
filter down a queryset based on a model’s fields, displaying the form to let
|
|
|
|
|
them do this.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-filter
|
gnu: Remove python-setuptools and python2-setuptools from inputs (part 4a)
This patch contains the changes for all modules beside python.scm where
setuptools are used in an inherited package and removing this input also
removes the need for inheriting the package. This is the case if adding
setuptools in the inherited package was the only change.
Change this to not inherit and remove the new needless call to
"strip-python2-variant (if applicable).
* gnu/packages/bioinformatics.scm (python-biopython, python2-biopython,
python-twobitreader, python2-twobitreader,
python-plastid, python2-plastid,
python2-pybigwig,
python2-screed,
sra-tools): No longer "inherit" Python 2 packages
inheriting from a Python 3 package if the sole reason for inheriting was
adding python-setuptools respective python2-setuptools to [inputs],
[native-inputs] or [propagated-inputs]. Remove now needless [properties]
"python2-variant" where applicable.
* gnu/packages/django.scm (python-pytest-django, python2-pytest-django,
python-django-filter, python2-django-filter): Likewise.
* gnu/packages/gnupg.scm (python2-pygpgme): Likewise.
* gnu/packages/mail.scm (python-mailmanclient, python2-mailmanclient):
Likewise.
* gnu/packages/mpd.scm (python-msp, python2-mpd2): Likewise.
* gnu/packages/music.scm (python-pylast, python2-pylast): Likewise.
* gnu/packages/openstack.scm (python-requests-mock, python2-requests-mock,
python2-git-review): Likewise.
* gnu/packages/password-utils.scm (python2-bcrypt): Likewise.
* gnu/packages/protobuf.scm (python-protobuf, python2-protobuf): Likewise.
* gnu/packages/statistics.scm (python-patsy, python2-patsy): Likewise.
* gnu/packages/web.scm (python2-feedparser): Likewise.
2016-09-28 07:57:21 -04:00
|
|
|
|
(package-with-python2 python-django-filter))
|
2017-02-15 05:09:24 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-django-allauth
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-allauth")
|
2020-09-01 06:10:27 -04:00
|
|
|
|
(version "0.42.0")
|
2017-02-15 05:09:24 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-allauth" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:10:27 -04:00
|
|
|
|
"0c0x8izvrnjhrr48w6pwsfk9ddbi6yfxg7v3hh5dm1vz1d0hjwpi"))))
|
2017-02-15 05:09:24 -05:00
|
|
|
|
(build-system python-build-system)
|
2017-10-06 02:39:35 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "test_settings")
|
2020-07-21 05:42:20 -04:00
|
|
|
|
(invoke "django-admin" "test" "allauth.tests"
|
|
|
|
|
"--pythonpath=."))))))
|
2017-02-15 05:09:24 -05:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-openid" ,python-openid)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-requests-oauthlib" ,python-requests-oauthlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/pennersr/django-allauth")
|
|
|
|
|
(synopsis "Set of Django applications addressing authentication")
|
|
|
|
|
(description
|
|
|
|
|
"Integrated set of Django applications addressing authentication,
|
|
|
|
|
registration, account management as well as 3rd party (social)
|
|
|
|
|
account authentication.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-allauth
|
|
|
|
|
(package-with-python2 python-django-allauth))
|
2017-02-15 05:09:25 -05:00
|
|
|
|
|
2018-10-27 12:43:27 -04:00
|
|
|
|
(define-public python-django-debug-toolbar
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-debug-toolbar")
|
2020-09-01 06:33:39 -04:00
|
|
|
|
(version "2.2")
|
2018-10-27 12:43:27 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2019-11-26 13:25:10 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/jazzband/django-debug-toolbar")
|
2019-11-26 13:25:10 -05:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-10-27 12:43:27 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:33:39 -04:00
|
|
|
|
"14069rlgjd5g724iaglai0nc636g9km4ba56r4j3k84chibqzn03"))))
|
2018-10-27 12:43:27 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-sqlparse" ,python-sqlparse)
|
|
|
|
|
("python-django" ,python-django)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-django-jinja" ,python-django-jinja)
|
|
|
|
|
("python-html5lib" ,python-html5lib)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "make" "test"))))))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/jazzband/django-debug-toolbar")
|
|
|
|
|
(synopsis "Toolbar to help with developing Django applications")
|
|
|
|
|
(description
|
|
|
|
|
"A configurable set of panels that display information about the current
|
|
|
|
|
request and response as a toolbar on the rendered page.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2017-02-15 05:09:25 -05:00
|
|
|
|
(define-public python-django-gravatar2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-gravatar2")
|
2020-09-01 06:35:16 -04:00
|
|
|
|
(version "1.4.4")
|
2017-02-15 05:09:25 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-gravatar2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:35:16 -04:00
|
|
|
|
"1vn921fb6jjx7rf5dzhy66rkb71nwmh9ydd0xs9ys72icw4jh4y8"))))
|
2017-02-15 05:09:25 -05:00
|
|
|
|
(build-system python-build-system)
|
2018-03-04 08:25:32 -05:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; TODO: The django project for the tests is missing from the release.
|
|
|
|
|
#:tests? #f))
|
2017-02-15 05:09:25 -05:00
|
|
|
|
(inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/twaddington/django-gravatar")
|
|
|
|
|
(synopsis "Gravatar support for Django, improved version")
|
|
|
|
|
(description
|
|
|
|
|
"Essential Gravatar support for Django. Features helper methods,
|
|
|
|
|
templatetags and a full test suite.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-gravatar2
|
|
|
|
|
(package-with-python2 python-django-gravatar2))
|
2017-04-22 12:16:07 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-assets
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-assets")
|
2020-09-01 06:57:23 -04:00
|
|
|
|
(version "2.0")
|
2017-04-22 12:16:07 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-assets" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:57:23 -04:00
|
|
|
|
"0fc6i77faxxv1gjlp06lv3kw64b5bhdiypaygfxh5djddgk83fwa"))))
|
2017-04-22 12:16:07 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-webassets" ,python-webassets)))
|
|
|
|
|
(home-page "https://github.com/miracle2k/django-assets")
|
|
|
|
|
(synopsis "Asset management for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Asset management for Django, to compress and merge CSS and Javascript
|
|
|
|
|
files. Integrates the webassets library with Django, adding support for
|
|
|
|
|
merging, minifying and compiling CSS and Javascript files.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-assets
|
|
|
|
|
(package-with-python2 python-django-assets))
|
2017-04-22 12:18:30 -04:00
|
|
|
|
|
2018-10-27 12:43:08 -04:00
|
|
|
|
(define-public python-django-jinja
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-jinja")
|
2020-09-01 06:33:07 -04:00
|
|
|
|
(version "2.6.0")
|
2018-10-27 12:43:08 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2019-11-26 13:27:24 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/niwinz/django-jinja")
|
2019-11-26 13:27:24 -05:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-10-27 12:43:08 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:33:07 -04:00
|
|
|
|
"06ldbkfkm6sc0p9sqpjph06gxrqpj78ih3dc2yik2fcba2y5mak1"))))
|
2018-10-27 12:43:08 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-jinja2" ,python-jinja2)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
("python-django-pipeline" ,python-django-pipeline)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; TODO Tests currently fail due to issues with the configuration for
|
|
|
|
|
;; django-pipeline
|
|
|
|
|
#:tests? #f
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(or
|
|
|
|
|
(not tests?)
|
|
|
|
|
(with-directory-excursion "testing"
|
|
|
|
|
(invoke "python" "runtests.py"))))))))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://niwinz.github.io/django-jinja/latest/")
|
|
|
|
|
(synopsis "Simple jinja2 templating backend for Django")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a templating backend for Django, using Jinja2. It
|
|
|
|
|
provides certain advantages over the builtin Jinja2 backend in Django, for
|
|
|
|
|
example, explicit calls to callables from templates and better performance.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2017-04-22 12:18:30 -04:00
|
|
|
|
(define-public python-django-jsonfield
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-jsonfield")
|
|
|
|
|
(version "1.0.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jsonfield" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "jsonfield/tests.py"
|
|
|
|
|
(("django.forms.util") "django.forms.utils")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/bradjasper/django-jsonfield")
|
|
|
|
|
(synopsis "Store validated JSON in your model")
|
|
|
|
|
(description
|
|
|
|
|
"Django-jsonfield is a reusable Django field that allows you to store
|
|
|
|
|
validated JSON in your model. It silently takes care of serialization. To
|
|
|
|
|
use, simply add the field to one of your models.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-jsonfield
|
|
|
|
|
(package-with-python2 python-django-jsonfield))
|
2017-04-22 12:28:37 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-dj-database-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dj-database-url")
|
2020-09-01 07:08:26 -04:00
|
|
|
|
(version "0.5.0")
|
2017-04-22 12:28:37 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "dj-database-url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 07:08:26 -04:00
|
|
|
|
"0qs16g5y3lflxibsl8gwkwap21crhmmv98l60rdq6x1wawgypsja"))))
|
2017-04-22 12:28:37 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/kennethreitz/dj-database-url")
|
|
|
|
|
(synopsis "Use Database URLs in your Django Application")
|
|
|
|
|
(description
|
|
|
|
|
"This simple Django utility allows you to utilize the 12factor inspired
|
|
|
|
|
DATABASE_URL environment variable to configure your Django application.
|
|
|
|
|
|
|
|
|
|
The dj_database_url.config method returns a Django database connection
|
|
|
|
|
dictionary, populated with all the data specified in your URL. There is also a
|
|
|
|
|
conn_max_age argument to easily enable Django’s connection pool.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-dj-database-url
|
|
|
|
|
(package-with-python2 python-dj-database-url))
|
2017-04-23 07:31:08 -04:00
|
|
|
|
|
2020-07-21 05:24:49 -04:00
|
|
|
|
(define-public python-django-picklefield
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-picklefield")
|
2020-09-01 07:12:48 -04:00
|
|
|
|
(version "3.0.1")
|
|
|
|
|
(home-page "https://github.com/gintas/django-picklefield")
|
|
|
|
|
;; Use a git checkout because the PyPI release lacks tests.
|
2020-07-21 05:24:49 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2020-09-01 07:12:48 -04:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2020-07-21 05:24:49 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 07:12:48 -04:00
|
|
|
|
"0ni7bc86k0ra4pc8zv451pzlpkhs1nyil1sq9jdb4m2mib87b5fk"))))
|
2020-07-21 05:24:49 -04:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 07:12:48 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "python" "-m" "django" "test" "-v2"
|
|
|
|
|
"--settings=tests.settings"))))))
|
2020-07-21 05:24:49 -04:00
|
|
|
|
(propagated-inputs `(("python-django" ,python-django)))
|
|
|
|
|
(synopsis "Pickled object field for Django")
|
|
|
|
|
(description "Pickled object field for Django")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-04-23 07:31:08 -04:00
|
|
|
|
(define-public python-django-bulk-update
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-bulk-update")
|
2020-09-01 07:17:46 -04:00
|
|
|
|
(version "2.2.0")
|
2017-04-23 07:31:08 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-bulk-update" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 07:17:46 -04:00
|
|
|
|
"0dxkmrm3skyw82i0qa8vklxw1ma1y308kh9w2hcnvhpacn5cxdss"))))
|
2017-04-23 07:31:08 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 07:17:46 -04:00
|
|
|
|
;; XXX: Tests require a Postgres database.
|
2017-04-23 07:31:08 -04:00
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/aykut/django-bulk-update")
|
|
|
|
|
(synopsis "Simple bulk update over Django ORM or with helper function")
|
|
|
|
|
(description
|
|
|
|
|
"Simple bulk update over Django ORM or with helper function. This
|
|
|
|
|
project aims to bulk update given objects using one query over Django ORM.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-bulk-update
|
|
|
|
|
(package-with-python2 python-django-bulk-update))
|
2017-04-22 12:51:24 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-contact-form
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-contact-form")
|
2020-09-01 07:25:51 -04:00
|
|
|
|
(version "1.8.1")
|
2017-04-22 12:51:24 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-contact-form" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 07:25:51 -04:00
|
|
|
|
"1zv7bcjfrg32gcsq3bclkld79l6mcy2wcvlj81h7q2ppv1wm8vqs"))))
|
2017-04-22 12:51:24 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2020-09-01 07:25:51 -04:00
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append "./build/lib:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(invoke "coverage" "run" "--source" "contact_form"
|
|
|
|
|
"runtests.py"))))))
|
2017-04-22 12:51:24 -04:00
|
|
|
|
(native-inputs
|
2020-09-01 07:25:51 -04:00
|
|
|
|
`(("python-coverage" ,python-coverage)))
|
2017-04-22 12:51:24 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/ubernostrum/django-contact-form")
|
|
|
|
|
(synopsis "Contact form for Django")
|
|
|
|
|
(description
|
|
|
|
|
"This application provides simple, extensible contact-form functionality
|
|
|
|
|
for Django sites.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-contact-form
|
|
|
|
|
(package-with-python2 python-django-contact-form))
|
2017-04-22 13:01:33 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-contrib-comments
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-contrib-comments")
|
2020-09-01 07:27:09 -04:00
|
|
|
|
(version "1.9.2")
|
2017-04-22 13:01:33 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-contrib-comments" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 07:27:09 -04:00
|
|
|
|
"0ccdiv784a5vnpfal36km4dyg12340rwhpr0riyy0k89wfnjn8yi"))))
|
2017-04-22 13:01:33 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/django/django-contrib-comments")
|
|
|
|
|
(synopsis "Comments framework")
|
|
|
|
|
(description
|
|
|
|
|
"Django used to include a comments framework; since Django 1.6 it's been
|
|
|
|
|
separated to a separate project. This is that project. This framework can be
|
|
|
|
|
used to attach comments to any model, so you can use it for comments on blog
|
|
|
|
|
entries, photos, book chapters, or anything else.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-contrib-comments
|
|
|
|
|
(package-with-python2 python-django-contrib-comments))
|
2017-04-22 13:08:11 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-overextends
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-overextends")
|
|
|
|
|
(version "0.4.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-overextends" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
2019-03-26 19:04:07 -04:00
|
|
|
|
(lambda _ (invoke "./test_project/manage.py" "test"))))))
|
2017-04-22 13:08:11 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("sphinx-me" ,python-sphinx-me)))
|
|
|
|
|
(home-page "https://github.com/stephenmcd/django-overextends")
|
|
|
|
|
(synopsis "Circular template inheritance")
|
|
|
|
|
(description
|
|
|
|
|
"A Django reusable app providing the overextends template tag, a drop-in
|
|
|
|
|
replacement for Django's extends tag, which allows you to use circular template
|
|
|
|
|
inheritance. The primary use-case for overextends is to simultaneously
|
|
|
|
|
override and extend templates from other reusable apps, in your own Django
|
|
|
|
|
project.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-overextends
|
|
|
|
|
(package-with-python2 python-django-overextends))
|
2017-04-23 10:54:53 -04:00
|
|
|
|
|
2018-10-27 12:43:39 -04:00
|
|
|
|
(define-public python-django-pipeline
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-pipeline")
|
2020-09-01 06:30:42 -04:00
|
|
|
|
(version "2.0.5")
|
2018-10-27 12:43:39 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-pipeline" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:30:42 -04:00
|
|
|
|
"19vrbd5s12qw4qlg5n8ldv7zz2rs5y2sdid1i7lvgp92m71dayvc"))))
|
2018-10-27 12:43:39 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-source
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "tests/tests/test_compiler.py"
|
|
|
|
|
(("\\/usr\\/bin\\/env")
|
|
|
|
|
(which "env")))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda*(#:key tests? #:allow-other-keys)
|
|
|
|
|
(or
|
|
|
|
|
(not tests?)
|
|
|
|
|
(begin
|
2019-11-23 09:37:15 -05:00
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append (getcwd) ":"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
2018-10-27 12:43:39 -04:00
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
|
|
|
|
|
(invoke "django-admin" "test" "tests"))))))))
|
|
|
|
|
(propagated-inputs
|
2020-09-01 06:30:42 -04:00
|
|
|
|
`(("python-css-html-js-minify" ,python-css-html-js-minify)
|
|
|
|
|
("python-django" ,python-django)
|
2018-10-27 12:43:39 -04:00
|
|
|
|
("python-slimit" ,python-slimit)
|
|
|
|
|
("python-jsmin" ,python-jsmin)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/jazzband/django-pipeline")
|
|
|
|
|
(synopsis "Asset packaging library for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Pipeline is an asset packaging library for Django, providing both CSS
|
|
|
|
|
and JavaScript concatenation and compression, built-in JavaScript template
|
|
|
|
|
support, and optional data-URI image and font embedding.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-04-23 10:54:53 -04:00
|
|
|
|
(define-public python-django-redis
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-redis")
|
2020-09-01 07:30:05 -04:00
|
|
|
|
(version "4.12.1")
|
2017-04-23 10:54:53 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-redis" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 07:30:05 -04:00
|
|
|
|
"0qvsm8yjchl0d3i7g20wba6px9lb5gv8kp3fcnr6hr0y0b3qjr9h"))))
|
2017-04-23 10:54:53 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-03-04 15:09:12 -05:00
|
|
|
|
(invoke "redis-server" "--daemonize" "yes")
|
|
|
|
|
(with-directory-excursion "tests"
|
|
|
|
|
(invoke "python" "runtests.py")))))))
|
2017-04-23 10:54:53 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-fakeredis" ,python-fakeredis)
|
|
|
|
|
("python-hiredis" ,python-hiredis)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-msgpack" ,python-msgpack)
|
|
|
|
|
("redis" ,redis)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-redis" ,python-redis)))
|
|
|
|
|
(home-page "https://github.com/niwibe/django-redis")
|
|
|
|
|
(synopsis "Full featured redis cache backend for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Full featured redis cache backend for Django.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-redis
|
|
|
|
|
(package-with-python2 python-django-redis))
|
2017-04-22 13:14:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-rq
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-rq")
|
2020-09-01 08:18:03 -04:00
|
|
|
|
(version "2.3.2")
|
2017-04-22 13:14:03 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-rq" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 08:18:03 -04:00
|
|
|
|
"0lksnjn3q3f7y72bj2yr8870w28a5b6x0vjnd9nhpq2ah6xfz6pf"))))
|
2017-04-22 13:14:03 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-03-04 15:14:28 -05:00
|
|
|
|
(invoke "redis-server" "--daemonize" "yes")
|
|
|
|
|
(invoke "django-admin.py" "test" "django_rq"
|
|
|
|
|
"--settings=django_rq.tests.settings"
|
2020-07-21 06:53:42 -04:00
|
|
|
|
"--pythonpath=."))))))
|
2017-04-22 13:14:03 -04:00
|
|
|
|
(native-inputs
|
2020-09-01 08:18:03 -04:00
|
|
|
|
`(("python-django-redis" ,python-django-redis)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-rq-scheduler" ,python-rq-scheduler)
|
2019-03-04 15:14:28 -05:00
|
|
|
|
("redis" ,redis)))
|
2017-04-22 13:14:03 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-rq" ,python-rq)))
|
|
|
|
|
(home-page "https://github.com/ui/django-rq")
|
|
|
|
|
(synopsis "Django integration with RQ")
|
|
|
|
|
(description
|
|
|
|
|
"Django integration with RQ, a Redis based Python queuing library.
|
|
|
|
|
Django-RQ is a simple app that allows you to configure your queues in django's
|
|
|
|
|
settings.py and easily use them in your project.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-rq
|
|
|
|
|
(package-with-python2 python-django-rq))
|
2017-04-22 13:18:02 -04:00
|
|
|
|
|
2020-07-21 05:27:28 -04:00
|
|
|
|
(define-public python-django-q
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-q")
|
2020-09-01 08:25:26 -04:00
|
|
|
|
(version "1.3.3")
|
2020-07-21 05:27:28 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-q" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 08:25:26 -04:00
|
|
|
|
"1fs29767940akbsn3vdzw2rqnn9v77b0b55bi7fvydny1rk7fw6y"))))
|
2020-07-21 05:27:28 -04:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 08:25:26 -04:00
|
|
|
|
;; FIXME: Tests require disque, Redis, MongoDB, Docker.
|
|
|
|
|
(arguments '(#:tests? #f))
|
2020-07-21 05:27:28 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-arrow" ,python-arrow)
|
|
|
|
|
("python-blessed" ,python-blessed)
|
|
|
|
|
("python-django" ,python-django)
|
|
|
|
|
("python-django-picklefield" ,python-django-picklefield)))
|
|
|
|
|
(home-page "https://django-q.readthedocs.io/")
|
|
|
|
|
(synopsis "Multiprocessing distributed task queue for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Django Q is a native Django task queue, scheduler and worker application
|
|
|
|
|
using Python multiprocessing.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-04-22 13:18:02 -04:00
|
|
|
|
(define-public python-django-sortedm2m
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-sortedm2m")
|
2020-09-01 08:32:03 -04:00
|
|
|
|
(version "3.0.2")
|
2017-04-22 13:18:02 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-sortedm2m" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 08:32:03 -04:00
|
|
|
|
"0z0yymmrr2l5cznqbzwziw624df0qsiflvbpqwrpan52nww3dk4a"))))
|
2017-04-22 13:18:02 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 08:32:03 -04:00
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "PYTHONPATH" (string-append "./test_project:"
|
|
|
|
|
"./build/lib:.:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(invoke "django-admin.py" "test" "--settings=settings"))))))
|
2017-04-22 13:18:02 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
2020-09-01 08:32:03 -04:00
|
|
|
|
(home-page "https://github.com/jazzband/django-sortedm2m")
|
2017-04-22 13:18:02 -04:00
|
|
|
|
(synopsis "Drop-in replacement for django's own ManyToManyField")
|
|
|
|
|
(description
|
|
|
|
|
"Sortedm2m is a drop-in replacement for django's own ManyToManyField.
|
|
|
|
|
The provided SortedManyToManyField behaves like the original one but remembers
|
|
|
|
|
the order of added relations.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-sortedm2m
|
|
|
|
|
(package-with-python2 python-django-sortedm2m))
|
2017-04-22 13:18:46 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-appconf
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-appconf")
|
2020-09-01 08:35:18 -04:00
|
|
|
|
(version "1.0.4")
|
2017-04-22 13:18:46 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-appconf" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 08:35:18 -04:00
|
|
|
|
"101k8nkc7xlffpjdi2qbrp9pc4v8hzvmkzi12qp7vms39asxwn5y"))))
|
2017-04-22 13:18:46 -04:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 08:35:18 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "PYTHONPATH" (string-append ".:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tests.test_settings")
|
|
|
|
|
(invoke "django-admin.py" "test" "-v2"))))))
|
2017-04-22 13:18:46 -04:00
|
|
|
|
(propagated-inputs
|
2020-09-01 08:35:18 -04:00
|
|
|
|
`(("python-django" ,python-django)))
|
2017-04-22 13:18:46 -04:00
|
|
|
|
(home-page "https://github.com/django-compressor/django-appconf")
|
|
|
|
|
(synopsis "Handle configuration defaults of packaged Django apps")
|
|
|
|
|
(description
|
|
|
|
|
"This app precedes Django's own AppConfig classes that act as \"objects
|
|
|
|
|
[to] store metadata for an application\" inside Django's app loading mechanism.
|
|
|
|
|
In other words, they solve a related but different use case than
|
|
|
|
|
django-appconf and can't easily be used as a replacement. The similarity in
|
|
|
|
|
name is purely coincidental.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-appconf
|
|
|
|
|
(package-with-python2 python-django-appconf))
|
2017-04-22 13:19:19 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-django-statici18n
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-statici18n")
|
2020-09-01 08:42:16 -04:00
|
|
|
|
(version "1.9.0")
|
|
|
|
|
(home-page "https://github.com/zyegfryed/django-statici18n")
|
2017-04-22 13:19:19 -04:00
|
|
|
|
(source (origin
|
2020-09-01 08:42:16 -04:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2017-04-22 13:19:19 -04:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 08:42:16 -04:00
|
|
|
|
"1p3myp2im6c87yc05alh91jyahqws5lcw3zzdsj4dh8lx9s9cgpf"))))
|
2017-04-22 13:19:19 -04:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 08:42:16 -04:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append "./tests/test_project:./build/lib:"
|
|
|
|
|
(getenv "PYTHONPATH")))
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "project.settings")
|
|
|
|
|
(invoke "pytest" "-vv"))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-django" ,python-pytest-django)))
|
2017-04-22 13:19:19 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("django-appconf" ,python-django-appconf)))
|
|
|
|
|
(synopsis "Generate JavaScript catalog to static files")
|
|
|
|
|
(description
|
|
|
|
|
"A Django app that provides helper for generating JavaScript catalog to
|
|
|
|
|
static files.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-statici18n
|
|
|
|
|
(package-with-python2 python-django-statici18n))
|
2017-04-22 17:11:07 -04:00
|
|
|
|
|
2017-12-18 13:26:33 -05:00
|
|
|
|
(define-public python-django-tagging
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-tagging")
|
2020-07-21 07:23:04 -04:00
|
|
|
|
(version "0.5.0")
|
2017-12-18 13:26:33 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-tagging" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-07-21 07:23:04 -04:00
|
|
|
|
"13afxx30chssclxzd9gqnvwm9qyrdpnlbs6iswdfa18phfj8zmi8"))))
|
2017-12-18 13:26:33 -05:00
|
|
|
|
(build-system python-build-system)
|
2020-07-21 07:17:25 -04:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tagging.tests.settings")
|
|
|
|
|
(invoke "django-admin" "test" "--pythonpath=."))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
2017-12-18 13:26:33 -05:00
|
|
|
|
(home-page "https://github.com/Fantomas42/django-tagging")
|
|
|
|
|
(synopsis "Generic tagging application for Django")
|
|
|
|
|
(description "This package provides a generic tagging application for
|
|
|
|
|
Django projects, which allows association of a number of tags with any
|
|
|
|
|
@code{Model} instance and makes retrieval of tags simple.")
|
2020-07-21 07:23:04 -04:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-django-tagging))))
|
2017-12-18 13:26:33 -05:00
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-tagging
|
2020-07-21 07:23:04 -04:00
|
|
|
|
(let ((base (package-with-python2
|
|
|
|
|
(strip-python2-variant python-django-tagging))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
|
|
|
|
(version "0.4.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-tagging" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0s7b4v45j783yaxs7rni10k24san0ya77nqz4s7zdf3jhfpk42r1")))))))
|
2018-03-04 08:23:05 -05:00
|
|
|
|
|
|
|
|
|
(define-public python-djangorestframework
|
|
|
|
|
(package
|
|
|
|
|
(name "python-djangorestframework")
|
2020-09-01 06:08:13 -04:00
|
|
|
|
(version "3.11.1")
|
2018-03-04 08:23:05 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "djangorestframework" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:08:13 -04:00
|
|
|
|
"0chbl1d0m1x23mmpdj7y85k3n32lpxrhcdl07ywnylfj9dd2vl3d"))))
|
2018-03-04 08:23:05 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; No included tests
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://www.django-rest-framework.org")
|
|
|
|
|
(synopsis "Toolkit for building Web APIs with Django")
|
|
|
|
|
(description
|
|
|
|
|
"The Django REST framework is for building Web APIs with Django. It
|
|
|
|
|
provides features like a web browseable API and authentication policies.")
|
|
|
|
|
(license license:bsd-2)))
|
2018-03-04 08:23:15 -05:00
|
|
|
|
|
2020-07-21 07:27:36 -04:00
|
|
|
|
(define-public python-django-sekizai
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-sekizai")
|
|
|
|
|
(version "1.1.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-sekizai" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1nc4sv109valdn6azmgm2j01k7khxy2wnji84z63x7fxsikfdxp2"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; Tests not included with release.
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-django-classy-tags" ,python-django-classy-tags)
|
|
|
|
|
("python-six" ,python-six)))
|
|
|
|
|
(home-page "https://github.com/divio/django-sekizai")
|
|
|
|
|
(synopsis "Template blocks for Django projects")
|
|
|
|
|
(description "Sekizai means blocks in Japanese, and thats what this app
|
|
|
|
|
provides. A fresh look at blocks. With @code{django-sekizai} you can define
|
|
|
|
|
placeholders where your blocks get rendered and at different places in your
|
|
|
|
|
templates append to those blocks. This is especially useful for css and
|
|
|
|
|
javascript. Your subtemplates can now define css and javscript files to be
|
|
|
|
|
included, and the css will be nicely put at the top and the javascript to the
|
|
|
|
|
bottom, just like you should. Also sekizai will ignore any duplicate content in
|
|
|
|
|
a single block.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2018-03-04 08:23:15 -05:00
|
|
|
|
(define-public python-django-crispy-forms
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-crispy-forms")
|
2020-09-01 06:07:26 -04:00
|
|
|
|
(version "1.9.2")
|
2018-03-04 08:23:15 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-crispy-forms" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 06:07:26 -04:00
|
|
|
|
"0fxlf233f49hjax786p4r650rd0ilvhnpyvw8hv1d1aqnkxy1wgj"))))
|
2018-03-04 08:23:15 -05:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; No included tests
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page
|
|
|
|
|
"http://github.com/maraujop/django-crispy-forms")
|
|
|
|
|
(synopsis "Tool to control Django forms without custom templates")
|
|
|
|
|
(description
|
|
|
|
|
"@code{django-crispy-forms} lets you easily build, customize and reuse
|
|
|
|
|
forms using your favorite CSS framework, without writing template code.")
|
|
|
|
|
(license license:expat)))
|
2018-03-28 18:55:43 -04:00
|
|
|
|
|
2020-07-21 07:30:59 -04:00
|
|
|
|
(define-public python-django-compressor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-compressor")
|
|
|
|
|
(version "2.4")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django_compressor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kx7bclfa0sxlsz6ka70zr9ra00lks0hmv1kc99wbanx6xhirvfj"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(if tests?
|
|
|
|
|
(begin
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "compressor.test_settings")
|
|
|
|
|
(invoke "django-admin" "test"
|
|
|
|
|
"--pythonpath=."))
|
|
|
|
|
#t))))
|
|
|
|
|
;; Tests fail with beautifulsoup 4.9+
|
|
|
|
|
;; https://github.com/django-compressor/django-compressor/issues/998
|
|
|
|
|
#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django-appconf" ,python-django-appconf)
|
|
|
|
|
("python-rcssmin" ,python-rcssmin)
|
|
|
|
|
("python-rjsmin" ,python-rjsmin)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-beautifulsoup4" ,python-beautifulsoup4)
|
|
|
|
|
("python-brotli" ,python-brotli)
|
|
|
|
|
("python-csscompressor" ,python-csscompressor)
|
|
|
|
|
("python-django-sekizai" ,python-django-sekizai)
|
|
|
|
|
("python-mock" ,python-mock)))
|
|
|
|
|
(home-page "https://django-compressor.readthedocs.io/en/latest/")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Compress linked and inline JavaScript or CSS into single cached files")
|
|
|
|
|
(description
|
|
|
|
|
"Django Compressor combines and compresses linked and inline Javascript or
|
|
|
|
|
CSS in a Django templates into cacheable static files by using the compress
|
|
|
|
|
template tag.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2018-03-28 18:55:43 -04:00
|
|
|
|
(define-public python-django-override-storage
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-override-storage")
|
2019-10-14 17:16:42 -04:00
|
|
|
|
(version "0.1.6")
|
2018-03-28 18:55:43 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-override-storage" version))
|
|
|
|
|
(sha256
|
2019-10-14 17:16:42 -04:00
|
|
|
|
(base32 "022arq94lxnlyykn8wvfnkykhi2dldnsn93pa2i41na551i0wpiv"))))
|
2018-03-28 18:55:43 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/danifus/django-override-storage")
|
|
|
|
|
(synopsis "Django test helpers to manage file storage side effects")
|
|
|
|
|
(description
|
|
|
|
|
"This project provides tools to help reduce the side effects of using
|
|
|
|
|
FileFields during tests.")
|
|
|
|
|
(license license:expat)))
|