2016-08-22 11:31:36 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2021-03-22 07:19:27 +00:00
|
|
|
|
;;; Copyright © 2016, 2019, 2020, 2021 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 11:05:45 +00:00
|
|
|
|
;;; Copyright © 2017 Nikita <nikita@n0.is>
|
2019-03-14 19:56:55 +00:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
|
2017-12-18 18:26:33 +00:00
|
|
|
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
2018-03-28 22:55:43 +00:00
|
|
|
|
;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
|
2019-04-27 16:32:07 +00:00
|
|
|
|
;;; Copyright © 2019 Sam <smbaines8@gmail.com>
|
2023-09-16 06:10:26 +00:00
|
|
|
|
;;; Copyright © 2020, 2021, 2022, 2023 Marius Bakke <marius@gnu.org>
|
2021-01-23 05:22:44 +00:00
|
|
|
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
2021-12-02 20:48:05 +00:00
|
|
|
|
;;; Copyright © 2021 Luis Felipe López Acevedo <luis.felipe.la@protonmail.com>
|
2022-02-27 16:25:16 +00:00
|
|
|
|
;;; Copyright © 2022 Pradana Aumars <paumars@courrier.dev>
|
2016-08-22 11:31:36 +00: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 16:32:07 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2022-01-20 22:40:25 +00:00
|
|
|
|
#:use-module (guix gexp)
|
2023-09-16 06:10:26 +00:00
|
|
|
|
#:use-module (guix build-system pyproject)
|
2016-08-22 11:31:36 +00:00
|
|
|
|
#:use-module (guix build-system python)
|
2021-12-17 16:05:58 +00:00
|
|
|
|
#:use-module (guix deprecation)
|
2023-09-12 14:05:00 +00:00
|
|
|
|
#:use-module (guix search-paths)
|
2016-08-22 11:31:36 +00:00
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
|
#:use-module (gnu packages base)
|
2021-10-13 01:27:33 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
2017-04-23 14:54:53 +00: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 20:42:23 +00:00
|
|
|
|
#:use-module (gnu packages check)
|
2021-09-11 21:51:16 +00:00
|
|
|
|
#:use-module (gnu packages finance)
|
2020-07-21 09:29:56 +00:00
|
|
|
|
#:use-module (gnu packages geo)
|
2020-09-01 13:13:50 +00:00
|
|
|
|
#:use-module (gnu packages openldap)
|
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 22:24:11 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2022-01-20 22:40:25 +00:00
|
|
|
|
#:use-module (gnu packages python-build)
|
2022-09-01 13:18:39 +00:00
|
|
|
|
#:use-module (gnu packages python-check)
|
2020-07-23 09:25:11 +00: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 10:58:44 +00: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 13:21:30 +00: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 20:56:54 +00:00
|
|
|
|
#:use-module (gnu packages sphinx)
|
2020-01-15 19:19:26 +00:00
|
|
|
|
#:use-module (gnu packages time)
|
|
|
|
|
#:use-module (gnu packages xml))
|
2016-08-22 11:31:36 +00:00
|
|
|
|
|
2023-09-09 13:14:33 +00:00
|
|
|
|
(define-public python-django-4.2
|
2016-08-22 11:31:36 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "python-django")
|
2023-09-09 13:14:33 +00:00
|
|
|
|
(version "4.2.5")
|
2016-08-22 11:31:36 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-09-09 13:14:33 +00:00
|
|
|
|
"1ha6c5j3pizbsfzw37r52lvdz8z5lblq4iwa99mpkdzz92aiqp2y"))))
|
2016-08-22 11:31:36 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-08-31 22:20:28 +00:00
|
|
|
|
'(#:phases
|
2016-08-22 11:31:36 +00:00
|
|
|
|
(modify-phases %standard-phases
|
2020-08-31 22:20:28 +00:00
|
|
|
|
(add-before 'check 'pre-check
|
2016-08-22 11:31:36 +00:00
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; The test-suite tests timezone-dependent functions, thus tzdata
|
|
|
|
|
;; needs to be available.
|
|
|
|
|
(setenv "TZDIR"
|
2021-07-16 13:25:42 +00:00
|
|
|
|
(search-input-directory inputs "share/zoneinfo"))
|
2020-08-31 22:20:28 +00: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"
|
2021-01-23 05:19:29 +00:00
|
|
|
|
all)))))
|
2020-08-31 22:20:28 +00:00
|
|
|
|
(replace 'check
|
2021-05-05 19:21:03 +00:00
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(if tests?
|
|
|
|
|
(with-directory-excursion "tests"
|
2021-07-31 11:45:21 +00:00
|
|
|
|
;; Tests expect PYTHONPATH to contain the root directory.
|
|
|
|
|
(setenv "PYTHONPATH" "..")
|
2021-05-05 19:21:03 +00:00
|
|
|
|
(invoke "python" "runtests.py"
|
|
|
|
|
;; By default tests run in parallel, which may cause
|
|
|
|
|
;; various race conditions. Run sequentially for
|
|
|
|
|
;; consistent results.
|
|
|
|
|
"--parallel=1"))
|
2021-05-05 20:43:08 +00:00
|
|
|
|
(format #t "test suite not run~%"))))
|
|
|
|
|
;; XXX: The 'wrap' phase adds native inputs as runtime dependencies,
|
|
|
|
|
;; see <https://bugs.gnu.org/25235>. The django-admin script typically
|
|
|
|
|
;; runs in an environment that has Django and its dependencies on
|
|
|
|
|
;; PYTHONPATH, so just disable the wrapper to reduce the size from
|
|
|
|
|
;; ~710 MiB to ~203 MiB.
|
|
|
|
|
(delete 'wrap))))
|
2016-08-22 11:31:36 +00:00
|
|
|
|
;; TODO: Install extras/django_bash_completion.
|
2016-09-15 20:07:29 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list tzdata-for-tests
|
|
|
|
|
;; Remaining packages are test requirements taken from
|
|
|
|
|
;; tests/requirements/py3.txt
|
|
|
|
|
python-docutils
|
|
|
|
|
;; optional for tests: ("python-geoip2" ,python-geoip2)
|
|
|
|
|
;; optional for tests: ("python-memcached" ,python-memcached)
|
|
|
|
|
python-numpy
|
|
|
|
|
python-pillow
|
|
|
|
|
python-pyyaml
|
|
|
|
|
;; optional for tests: ("python-selenium" ,python-selenium)
|
|
|
|
|
python-tblib))
|
2018-02-24 19:13:58 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-asgiref
|
|
|
|
|
python-sqlparse
|
|
|
|
|
;; Optional dependencies.
|
|
|
|
|
python-argon2-cffi
|
|
|
|
|
python-bcrypt
|
|
|
|
|
;; This input is not strictly required, but in practice many Django
|
|
|
|
|
;; libraries need it for test suites and similar.
|
|
|
|
|
python-jinja2))
|
2022-01-20 17:45:47 +00:00
|
|
|
|
(native-search-paths
|
|
|
|
|
;; Set TZDIR when 'tzdata' is available so that timezone functionality
|
|
|
|
|
;; works (mostly) out of the box in containerized environments.
|
|
|
|
|
;; Note: This search path actually belongs to 'glibc'.
|
2023-09-12 14:05:00 +00:00
|
|
|
|
(list $TZDIR))
|
2020-03-20 23:05:03 +00:00
|
|
|
|
(home-page "https://www.djangoproject.com/")
|
2016-08-22 11:31:36 +00: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)
|
gnu: Remove python2 versions of Django packages.
Python 2 is EOL and not supported by current versions of Django.
* gnu/packages/django.scm (python-django, python-django-tagging)[properties]:
Remove PYTHON2-VARIANT.
* gnu/packages/django.scm (python2-django, python2-django-simple-math-captcha,
python2-pytest-django, python2-django-filter, python2-django-allauth,
python2-django-gravatar2, python2-django-assets, python2-django-jsonfield,
python2-dj-database-url, python2-django-bulk-update,
python2-django-contact-form, python2-django-contrib-comments,
python2-django-overextends, python2-django-redis, python2-django-rq,
python2-django-sortedm2m, python2-django-appconf, python2-django-statici18n,
python2-django-tagging): Remove variables.
2020-09-11 15:22:48 +00:00
|
|
|
|
(properties `((cpe-name . "django")))))
|
2016-08-22 11:31:37 +00:00
|
|
|
|
|
2021-12-17 13:26:27 +00:00
|
|
|
|
(define-public python-django-3.2
|
|
|
|
|
(package
|
2023-09-09 13:14:33 +00:00
|
|
|
|
(inherit python-django-4.2)
|
2023-09-09 13:14:09 +00:00
|
|
|
|
(version "3.2.21")
|
2021-12-17 13:26:27 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-09-09 13:14:09 +00:00
|
|
|
|
"0g3zm2glh76g31q06g6fwkwvkrphjj3mnap5sgk1hx3v9r44rpm5"))))
|
2022-01-20 17:45:47 +00:00
|
|
|
|
(native-search-paths '()) ;no need for TZDIR
|
2021-12-17 13:26:27 +00:00
|
|
|
|
(propagated-inputs
|
2023-09-09 13:14:33 +00:00
|
|
|
|
(modify-inputs (package-propagated-inputs python-django-4.2)
|
2021-12-17 13:26:27 +00:00
|
|
|
|
;; Django 4.0 deprecated pytz in favor of Pythons built-in zoneinfo.
|
|
|
|
|
(append python-pytz)))))
|
|
|
|
|
|
2022-02-27 16:25:16 +00:00
|
|
|
|
;; archivebox requires django>=3.1.3,<3.2
|
|
|
|
|
(define-public python-django-3.1.14
|
|
|
|
|
(package
|
|
|
|
|
(inherit python-django-3.2)
|
|
|
|
|
(version "3.1.14")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0ix3v2wlnplv78zxjrlw8z3hiap2d5mxvk0ny2fc65526shsb93j"))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(modify-inputs (package-propagated-inputs python-django-3.2)
|
|
|
|
|
;; Django 4.0 deprecated pytz in favor of Pythons built-in zoneinfo.
|
|
|
|
|
(append python-pytz)))))
|
|
|
|
|
|
2021-12-17 13:26:27 +00:00
|
|
|
|
;; Use 3.2 LTS as the default until packages gain support for 4.x.
|
|
|
|
|
(define-public python-django python-django-3.2)
|
|
|
|
|
|
2023-09-16 06:34:09 +00:00
|
|
|
|
(define-public python-django-cache-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-cache-url")
|
|
|
|
|
(version "3.4.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-cache-url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0dpx2wmcclmd3jkprdljz3makq12vd0sjv3xnvlj5vk1lg7glb7g"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list python-django))
|
|
|
|
|
(home-page "https://github.com/epicserve/django-cache-url")
|
|
|
|
|
(synopsis "Configure Django cache settings from URLs")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a facility for configuring Django cache settings
|
|
|
|
|
with a @var{CACHE_URL} environment variable.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2023-09-16 08:34:41 +00:00
|
|
|
|
(define-public python-django-configurations
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-configurations")
|
|
|
|
|
(version "2.4.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-configurations" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"11chll26iqqy5chyx62hya20cadk10nm2la7sch7pril70a5rhm6"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
(list #:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
;; Taken from tox.ini.
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings.main")
|
|
|
|
|
(setenv "DJANGO_CONFIGURATION" "Test")
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append ".:" (getenv "GUIX_PYTHONPATH")))
|
|
|
|
|
(invoke "django-cadmin" "test" "-v2")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list python-django))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list python-dj-database-url
|
|
|
|
|
python-dj-email-url
|
|
|
|
|
python-dj-search-url
|
|
|
|
|
python-django-cache-url
|
|
|
|
|
python-setuptools-scm))
|
|
|
|
|
(home-page "https://django-configurations.readthedocs.io/")
|
|
|
|
|
(synopsis "Helper module for organizing Django settings")
|
|
|
|
|
(description
|
|
|
|
|
"@code{django-configurations} helps you organize the configuration of
|
|
|
|
|
your Django project by providing glue code to bridge between Django'smodule
|
|
|
|
|
based settings system and programming patterns like mixins, facades, factories
|
|
|
|
|
and adapters that are useful for non-trivial configuration scenarios.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2019-04-27 16:32:07 +00:00
|
|
|
|
(define-public python-django-extensions
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-extensions")
|
2020-09-01 10:02:22 +00:00
|
|
|
|
(version "3.0.6")
|
2019-04-27 16:32:07 +00: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 20:53:28 +00:00
|
|
|
|
(url "https://github.com/django-extensions/django-extensions")
|
2019-04-27 16:32:07 +00:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (string-append name "-" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:02:22 +00:00
|
|
|
|
"0sra6hazqvspxd1pnx5cj7gia1rkaz3hn06ib4wd0frc167f5afy"))))
|
2019-04-27 16:32:07 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 10:02:22 +00:00
|
|
|
|
'(#:tests? #f)) ;XXX: requires a Postgres or MySQL database
|
2019-04-27 16:32:07 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-six python-vobject python-werkzeug python-dateutil
|
|
|
|
|
python-django))
|
2019-04-27 16:32:07 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-mock
|
|
|
|
|
python-factory-boy
|
|
|
|
|
python-tox
|
|
|
|
|
python-pytest
|
|
|
|
|
python-pytest-cov
|
|
|
|
|
python-pytest-django
|
|
|
|
|
python-shortuuid))
|
2019-04-27 16:32:07 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2021-09-11 21:51:16 +00:00
|
|
|
|
(define-public python-django-localflavor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-localflavor")
|
|
|
|
|
(version "3.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-localflavor" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0i1s0ijfd9rv2cp5x174jcyjpwn7fyg7s1wpbvlwm96bpdvs6bxc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append ".:"
|
2021-11-21 22:35:44 +00:00
|
|
|
|
(getenv "GUIX_PYTHONPATH")))
|
2021-09-11 21:51:16 +00:00
|
|
|
|
(invoke "invoke" "test")))))))
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-coverage python-invoke python-pytest-django which))
|
2021-09-11 21:51:16 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-stdnum))
|
2021-09-11 21:51:16 +00:00
|
|
|
|
(home-page "https://django-localflavor.readthedocs.io/en/latest/")
|
|
|
|
|
(synopsis "Country-specific Django helpers")
|
|
|
|
|
(description "Django-LocalFlavor is a collection of assorted pieces of code
|
|
|
|
|
that are useful for particular countries or cultures.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2016-08-22 11:31:37 +00:00
|
|
|
|
(define-public python-django-simple-math-captcha
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-simple-math-captcha")
|
2020-09-01 09:30:23 +00:00
|
|
|
|
(version "1.0.9")
|
|
|
|
|
(home-page "https://github.com/alsoicode/django-simple-math-captcha")
|
2016-08-22 11:31:37 +00:00
|
|
|
|
(source (origin
|
2020-09-01 09:30:23 +00: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 11:31:37 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 09:30:23 +00:00
|
|
|
|
"0fhy9k8haqa1296v0qpg1b5w7y3pyw9qi9z9laj5ijry1gk35qaw"))))
|
2016-08-22 11:31:37 +00:00
|
|
|
|
(build-system python-build-system)
|
2016-12-14 11:40:13 +00:00
|
|
|
|
(arguments
|
2020-09-01 09:30:23 +00: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
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-mock))
|
gnu: Django packages no longer propagate Django.
This makes them easier to use with different versions of Django.
(python-django-classy-tags, python-django-debug-toolbar-alchemy,
python-django-jinja, python-django-bulk-update,
python-djangorestframework)[propagated-inputs]: Remove PYTHON-DJANGO.
(python-django-contrib-comments)[propagated-inputs]: Likewise. Add
PYTHON-SIX.
[native-inputs]: Add PYTHON-DJANGO.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-assets, python-django-picklefield,
python-django-contact-form), python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-django-sekizai,
python-django-crispy-forms, python-django-override-storage,
python-django-auth-ldap, python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Move PYTHON-DJANGO ...
[native-inputs]: ... here.
2020-09-12 00:10:11 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-six))
|
2016-08-22 11:31:37 +00: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)))
|
|
|
|
|
|
2020-07-21 09:33:55 +00:00
|
|
|
|
(define-public python-django-classy-tags
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-classy-tags")
|
2020-09-01 09:51:56 +00:00
|
|
|
|
(version "2.0.0")
|
2020-07-21 09:33:55 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-classy-tags" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 09:51:56 +00:00
|
|
|
|
"1javam3zqi3y3j0r490mm61v48yh75jaha99gb7lsxkaz6yri7fm"))))
|
2020-07-21 09:33:55 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 09:51:56 +00:00
|
|
|
|
;; FIXME: How to make the test templates available to Django?
|
|
|
|
|
(arguments '(#:tests? #f))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2020-07-21 09:33:55 +00: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 14:57:41 +00:00
|
|
|
|
(define-public python-django-taggit
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-taggit")
|
2020-09-01 10:03:41 +00:00
|
|
|
|
(version "1.3.0")
|
2019-04-28 14:57:41 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-taggit" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:03:41 +00:00
|
|
|
|
"0bbkabbs77z229ps0800gxfhf75yagp4x4j5jzfysbac3zvkp0sa"))))
|
2019-04-28 14:57:41 +00: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
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-isort))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-pytest python-mock))
|
2019-04-28 14:57:41 +00:00
|
|
|
|
(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 23:47:50 +00: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
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-pillow))
|
2020-03-19 23:47:50 +00:00
|
|
|
|
(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 14:57:41 +00:00
|
|
|
|
|
2016-09-11 18:30:55 +00:00
|
|
|
|
(define-public python-pytest-django
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-django")
|
2023-09-16 08:39:36 +00:00
|
|
|
|
(version "4.5.2")
|
2016-09-11 18:30:55 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-09-16 08:39:36 +00:00
|
|
|
|
"1hp61jbnnhnjxzdrz9ni08lzrv8q7iiycnnxvcwnkhxpkdsny1yr"))))
|
2016-09-11 18:30:55 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2021-08-28 18:53:42 +00:00
|
|
|
|
;; The test suite is disabled because there are many test failures (see:
|
|
|
|
|
;; https://github.com/pytest-dev/pytest-django/issues/943).
|
|
|
|
|
`(#:tests? #f
|
|
|
|
|
#:phases
|
2016-09-11 18:30:55 +00:00
|
|
|
|
(modify-phases %standard-phases
|
2020-09-01 09:27:48 +00:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
|
|
|
|
(if tests?
|
2021-01-23 05:22:44 +00:00
|
|
|
|
(begin
|
|
|
|
|
(setenv "PYTEST_DJANGO_TEST_RUNNER" "pytest")
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE"
|
|
|
|
|
"pytest_django_test.settings_sqlite_file")
|
|
|
|
|
(invoke "python" "-m" "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 18:30:55 +00:00
|
|
|
|
(native-inputs
|
2023-09-16 08:39:36 +00:00
|
|
|
|
(list python-setuptools-scm))
|
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 11:33:43 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-pytest))
|
2020-01-18 21:46:05 +00:00
|
|
|
|
(home-page "https://pytest-django.readthedocs.org/")
|
2016-09-11 18:30:55 +00: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)))
|
|
|
|
|
|
2020-07-21 09:29:56 +00:00
|
|
|
|
(define-public python-django-haystack
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-haystack")
|
2021-12-02 23:34:20 +00:00
|
|
|
|
(version "3.1.1")
|
2020-07-21 09:29:56 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-haystack" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-02 23:34:20 +00:00
|
|
|
|
"10kaa5641cakpra2x3jqgys085gdkjcyns26plfyrmfpjmmpa1bd"))))
|
2020-07-21 09:29:56 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'loosen-verion-restrictions
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
2021-12-02 23:34:20 +00:00
|
|
|
|
(("geopy.*") "geopy\",\n"))))
|
2020-07-21 09:29:56 +00:00
|
|
|
|
(add-before 'check 'set-gdal-lib-path
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(setenv "GDAL_LIBRARY_PATH"
|
|
|
|
|
(string-append (assoc-ref inputs "gdal")
|
2021-11-30 23:45:04 +00:00
|
|
|
|
"/lib"))))
|
|
|
|
|
;; Importing this module requires setting up a Django project.
|
|
|
|
|
(delete 'sanity-check))
|
2020-07-21 09:29:56 +00:00
|
|
|
|
#:tests? #f)) ; OSError: libgdal.so.27: cannot open shared object file
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2020-07-21 09:29:56 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list gdal
|
|
|
|
|
python-coverage
|
|
|
|
|
python-dateutil
|
|
|
|
|
python-geopy
|
|
|
|
|
python-mock
|
|
|
|
|
python-nose
|
|
|
|
|
python-requests
|
|
|
|
|
python-setuptools-scm
|
|
|
|
|
python-pysolr
|
|
|
|
|
python-whoosh))
|
gnu: Use HTTPS package home pages wherever possible.
* gnu/packages/accessibility.scm (florence)[home-page]: Use HTTPS.
* gnu/packages/admin.scm (netcat, nmon)[home-page]: Likewise.
* gnu/packages/algebra.scm (mpfrcx, cm, flint, fftw, r-dtt)[home-page]:
Likewise.
* gnu/packages/apr.scm (apr, apr-util)[home-page]: Likewise.
* gnu/packages/aspell.scm (aspell-dict-it)[home-page]: Likewise.
* gnu/packages/astronomy.scm (casacore, sextractor, libnova)
(xplanet)[home-page]: Likewise.
* gnu/packages/audio.scm (libtimidity, alsa-modular-synth, azr3, tao)
(freepats, rakarrack, liblo, libshout-idjc, timidity++, libsbsms)
(libmodplug, libxmp, xmp, sox, drc, gsm, gnaural)
(streamripper)[home-page]: Likewise.
* gnu/packages/authentication.scm (pamtester)[home-page]: Likewise.
* gnu/packages/backup.scm (grsync)[home-page]: Likewise.
* gnu/packages/bioconductor.scm (r-nmf, r-edger, r-limma)
(r-plgem)[home-page]: Likewise.
* gnu/packages/bioinformatics.scm (python-biom-format, bowtie, bowtie1)
(bwa, crossmap, java-htsjdk, java-htsjdk-latest, java-picard)
(java-picard-2.10.3, kaiju, proteinortho, rsem, rseqc, seek, samtools)
(snap-aligner, subread, stringtie, r-centipede, prinseq, emboss, phylip)
(libsbml)[home-page]: Likewise.
* gnu/packages/build-tools.scm (tup)[home-page]: Likewise.
* gnu/packages/cdrom.scm (libcddb, cdrdao, cdrtools)
(cd-discid)[home-page]: Likewise.
* gnu/packages/check.scm (cunit, python-nose)
(python-pyhamcrest)[home-page]: Likewise.
* gnu/packages/chemistry.scm (gromacs)[home-page]: Likewise.
* gnu/packages/chez.scm (chez-fmt)[home-page]: Likewise.
* gnu/packages/code.scm (lcov, uncrustify, cscope)[home-page]: Likewise.
* gnu/packages/compression.scm (p7zip)[home-page]: Likewise.
* gnu/packages/cran.scm (r-emdist, r-proj4, r-zoo, r-ggalluvial)
(r-orgmassspecr, r-polychrome, r-partykit, r-rcpp, r-ff, r-emdbook)
(r-fitdistrplus, r-linprog, r-geometry, r-dtw, r-fst, r-rjags)
(r-intergraph, r-qualv, r-labelled, r-survey, r-coin, r-fmsb, r-tm)
(r-corpcor, r-rmpfr, r-spatialextremes, r-longitudinal, r-genenet)
(r-bayesm, r-seqinr, r-mpm, r-text2vec, r-rgdal, r-seewave, r-hdrcde)
(r-shapes, r-anytime, r-stm, r-d3network, r-tam, r-directlabels)
(r-spatstat-utils, r-spatstat-sparse, r-spatstat-data, r-spatstat-geom)
(r-spatstat-core, r-spatstat-linnet, r-spatstat-random, r-spatstat)
(r-rcpptoml, r-mlecens, r-seurat, r-mlearning, r-zooimage)[home-page]:
Likewise.
* gnu/packages/crates-io.scm (rust-nickel-0.11, rust-thrift-0.13)
(rust-trust-dns-https-0.20, rust-trust-dns-native-tls-0.20)
(rust-trust-dns-openssl-0.20, rust-trust-dns-proto-0.20)
(rust-trust-dns-resolver-0.20, rust-trust-dns-rustls-0.20)
(rust-uint-0.9, rust-yaml-rust-0.4)[home-page]: Likewise.
* gnu/packages/crypto.scm (libdecaf, ccrypt)[home-page]: Likewise.
* gnu/packages/curl.scm (curlpp)[home-page]: Likewise.
* gnu/packages/databases.scm (python-pylibmc, unixodbc, wiredtiger)
(libpqxx, mdbtools, virtuoso-ose, libdbi, libdbi-drivers)
(soci)[home-page]: Likewise.
* gnu/packages/debian.scm (apt-mirror)[home-page]: Likewise.
* gnu/packages/debug.scm (remake)[home-page]: Likewise.
* gnu/packages/disk.scm (sdparm, idle3-tools, duc)[home-page]: Likewise.
* gnu/packages/django.scm (python-django-haystack)[home-page]: Likewise.
* gnu/packages/djvu.scm (djvulibre, djview)[home-page]: Likewise.
* gnu/packages/dns.scm (dnsmasq)[home-page]: Likewise.
* gnu/packages/docbook.scm (dblatex, docbook2x)[home-page]: Likewise.
* gnu/packages/documentation.scm (scrollkeeper)[home-page]: Likewise.
* gnu/packages/ebook.scm (liblinebreak)[home-page]: Likewise.
* gnu/packages/electronics.scm (xoscope)[home-page]: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-bbdb, emacs-caps-lock, emacs-djvu)
(emacs-pabbrev, emacs-twittering-mode, emacs-filladapt, emacs-rudel)
(emacs-stream, emacspeak, emacs-cc-mode, emacs-eldoc, emacs-jsonrpc)
(emacs-gtk-look, emacs-xclip, emacs-slime-volleyball, emacs-minimap)
(emacs-auto-dictionary-mode, emacs-persist, emacs-shell-command+)
(emacs-map, emacs-xref, emacs-dictionary)[home-page]: Likewise.
* gnu/packages/embedded.scm (sdcc)[home-page]: Likewise.
* gnu/packages/engineering.scm (asco, libngspice, libspnav)
(openctm)[home-page]: Likewise.
* gnu/packages/erlang.scm (erlang-erlware-commons)[home-page]: Likewise.
* gnu/packages/file-systems.scm (jfsutils, curlftpfs)[home-page]:
Likewise.
* gnu/packages/finance.scm (gbonds)[home-page]: Likewise.
* gnu/packages/flashing-tools.scm (dfu-util, srecord)[home-page]:
Likewise.
* gnu/packages/fltk.scm (ntk)[home-page]: Likewise.
* gnu/packages/fonts.scm (font-terminus, font-tex-gyre)
(font-comic-neue)[home-page]: Likewise.
* gnu/packages/fontutils.scm (ttf2pt1, potrace, libspiro)[home-page]:
Likewise.
* gnu/packages/fpga.scm (icestorm, gtkwave, gtkwave)
(python-myhdl)[home-page]: Likewise.
* gnu/packages/freedesktop.scm (libatasmart)[home-page]: Likewise.
* gnu/packages/ftp.scm (weex)[home-page]: Likewise.
* gnu/packages/game-development.scm (dds, python-tmx, sfxr, quesoglc)
(eureka, plib)[home-page]: Likewise.
* gnu/packages/games.scm (abe, alex4, armagetronad, barony)
(foobillard++, golly, ltris, pipewalker, prboom-plus, trigger-rally)
(cmatrix, pinball, pioneers, tennix, chromium-bsu, freeciv, kiki)
(quakespasm, frotz, frotz-dumb-terminal, frotz-sdl, btanks)
(flare-engine, chessx, barrage, cgoban, passage)[home-page]: Likewise.
* gnu/packages/geo.scm (python-geopandas, saga)[home-page]: Likewise.
* gnu/packages/gl.scm (freeglut, gl2ps)[home-page]: Likewise.
* gnu/packages/gnome.scm (cogl, clutter-gtk, clutter-gst, bluefish)
(workrave)[home-page]: Likewise.
* gnu/packages/gnustep.scm (wmnd, wmfire, wmfire)[home-page]: Likewise.
* gnu/packages/graph.scm (mscgen)[home-page]: Likewise.
* gnu/packages/graphics.scm (assimp, alembic, ctl, agg)
(opencsg)[home-page]: Likewise.
* gnu/packages/graphviz.scm (gts)[home-page]: Likewise.
* gnu/packages/gtk.scm (gtkspell3)[home-page]: Likewise.
* gnu/packages/guile-xyz.scm (guile-irregex)[home-page]: Likewise.
* gnu/packages/haskell-apps.scm (cpphs)[home-page]: Likewise.
* gnu/packages/haskell-check.scm (ghc-hunit)[home-page]: Likewise.
* gnu/packages/haskell-web.scm (ghc-http-client-restricted)
(ghc-blaze-html, ghc-happstack-server, ghc-sourcemap)[home-page]:
Likewise.
* gnu/packages/haskell-xyz.scm (ghc-assoc, ghc-cairo, ghc-cborg)
(ghc-csv, ghc-glob, ghc-gtk2hs-buildtools, ghc-hmatrix-gsl-stats)
(ghc-intervalmap, ghc-lens-family-core, ghc-managed, ghc-mountpoints)
(ghc-network-multicast, ghc-optional-args, ghc-regex, ghc-spoon)
(ghc-transformers, ghc-turtle, ghc-utf8-light, ghc-wizards)
(ghc-template-haskell, ghc-boot-th, ghc-binary-orphans)
(ghc-postgresql-simple)[home-page]: Likewise.
* gnu/packages/hexedit.scm (ht, bvi)[home-page]: Likewise.
* gnu/packages/hunspell.scm (hunspell-dict-hu)[home-page]: Likewise.
* gnu/packages/image-processing.scm (mia)[home-page]: Likewise.
* gnu/packages/image-viewers.scm (geeqie, gpicview, luminance-hdr)
(qiv)[home-page]: Likewise.
* gnu/packages/image.scm (libuemf, devil, steghide, optipng, niftilib)
(sng, mtpaint)[home-page]: Likewise.
* gnu/packages/java-xml.scm (java-simple-xml, java-jaxp)
(java-apache-xml-commons-resolver)[home-page]: Likewise.
* gnu/packages/java.scm (java-cisd-base, java-cisd-args4j)
(java-hamcrest-core, java-jsr305, java-eclipse-osgi)
(java-eclipse-equinox-common, java-eclipse-core-jobs)
(java-eclipse-equinox-registry, java-eclipse-equinox-app)
(java-eclipse-equinox-preferences, java-eclipse-core-contenttype)
(java-eclipse-text, java-treelayout, java-aopalliance, java-jeromq)
(java-cdi-api)[home-page]: Likewise.
* gnu/packages/jemalloc.scm (jemalloc-4.5.0)[home-page]: Likewise.
* gnu/packages/julia-xyz.scm (julia-recipespipeline)[home-page]:
Likewise.
* gnu/packages/kde-internet.scm (kget)[home-page]: Likewise.
* gnu/packages/kde-systemtools.scm (dolphin-plugins)
(konsole)[home-page]: Likewise.
* gnu/packages/kodi.scm (fstrcmp)[home-page]: Likewise.
* gnu/packages/language.scm (hime, libchewing)[home-page]: Likewise.
* gnu/packages/lego.scm (nqc)[home-page]: Likewise.
* gnu/packages/lesstif.scm (lesstif)[home-page]: Likewise.
* gnu/packages/libcanberra.scm (libcanberra)[home-page]: Likewise.
* gnu/packages/libdaemon.scm (libdaemon)[home-page]: Likewise.
* gnu/packages/libffi.scm (libffi)[home-page]: Likewise.
* gnu/packages/libreoffice.scm (libwpd, libwpg, libwps)[home-page]:
Likewise.
* gnu/packages/libusb.scm (libmtp, gmtp)[home-page]: Likewise.
* gnu/packages/linux.scm (e2fsprogs, extundelete, lsscsi, net-tools)
(kbd, sysfsutils, cpuid, libpfm4)[home-page]: Likewise.
* gnu/packages/lisp-check.scm (sbcl-ptester, sbcl-xlunit)[home-page]:
Likewise.
* gnu/packages/lisp-xyz.scm (sbcl-html-encode, sbcl-py-configparser)
(sbcl-cl-utilities, sbcl-series, sbcl-uffi, sbcl-clsql, sbcl-sycamore)
(sbcl-osicat, sbcl-hu.dwim.common, sbcl-caveman, sbcl-trivial-shell)
(sbcl-trivial-benchmark, sbcl-screamer, sbcl-smug)[home-page]: Likewise.
* gnu/packages/lisp.scm (lush2)[home-page]: Likewise.
* gnu/packages/logging.scm (log4cpp)[home-page]: Likewise.
* gnu/packages/lua.scm (lua-ldoc)[home-page]: Likewise.
* gnu/packages/machine-learning.scm (mcl, openfst, rxcpp)[home-page]:
Likewise.
* gnu/packages/mail.scm (muchsync, procmail, sendmail)
(opensmtpd-filter-dkimsign, crm114)[home-page]: Likewise.
* gnu/packages/man.scm (libpipeline, man-db)[home-page]: Likewise.
* gnu/packages/maths.scm (lapack, scalapack, hdf-eos5, itpp, gmsh)
(metamath, p4est, armadillo, suitesparse, atlas, lpsolve, wcalc, why3)
(frama-c)[home-page]: Likewise.
* gnu/packages/mcrypt.scm (mcrypt, libmcrypt, libmhash)[home-page]:
Likewise.
* gnu/packages/minetest.scm (minetest-advtrains)[home-page]: Likewise.
* gnu/packages/monitoring.scm (python-whisper, python-carbon)
(hostscope)[home-page]: Likewise.
* gnu/packages/mp3.scm (id3lib, libmp3splt, mp3splt, mpg321)
(lame)[home-page]: Likewise.
* gnu/packages/multiprecision.scm (mpc)[home-page]: Likewise.
* gnu/packages/music.scm (aria-maestosa, lingot, setbfree, bristol)
(portmidi, python-pyportmidi, zynaddsubfx, yoshimi, aj-snapshot)
(schismtracker, midicsv, midicsv, qmidiarp, qmidiroute, dssi, tap-lv2)
(shiru-lv2)[home-page]: Likewise.
* gnu/packages/ncurses.scm (stfl)[home-page]: Likewise.
* gnu/packages/networking.scm (lksctp-tools, mbuffer, ifstatus, bird)
(tunctl, traceroute)[home-page]: Likewise.
* gnu/packages/node-xyz.scm (node-mersenne)[home-page]: Likewise.
* gnu/packages/ntp.scm (openntpd)[home-page]: Likewise.
* gnu/packages/ocaml.scm (opam, hevea, ocaml-menhir, ocaml-piqilib)
(ocaml-graph, cubicle)[home-page]: Likewise.
* gnu/packages/opencl.scm (python-pyopencl)[home-page]: Likewise.
* gnu/packages/package-management.scm (xstow, modules)[home-page]:
Likewise.
* gnu/packages/parallel.scm (xjobs)[home-page]: Likewise.
* gnu/packages/pdf.scm (podofo, qpdf, xournal, impressive)[home-page]:
Likewise.
* gnu/packages/perl.scm (perl-math-vecstat, perltidy)[home-page]:
Likewise.
* gnu/packages/photo.scm (libpano13, enblend-enfuse, hugin)[home-page]:
Likewise.
* gnu/packages/plan9.scm (drawterm)[home-page]: Likewise.
* gnu/packages/plotutils.scm (guile-charting, ploticus)[home-page]:
Likewise.
* gnu/packages/popt.scm (argtable, popt)[home-page]: Likewise.
* gnu/packages/profiling.scm (otf2)[home-page]: Likewise.
* gnu/packages/pulseaudio.scm (pulseaudio)[home-page]: Likewise.
* gnu/packages/python-check.scm (python-mypy)[home-page]: Likewise.
* gnu/packages/python-web.scm (python-cssutils)
(python-translationstring)[home-page]: Likewise.
* gnu/packages/python-xyz.scm (python-diskcache, python-doxyqml)
(python-docutils, python-pexpect, python-importlib-resources)
(python-simplegeneric, python-urwid, python-xlrd, python-xlwt)
(python-pyasn1, python-pythondialog, python-tftpy, python-random2)
(python-arcp, python-pyopengl, python-sortedcollections)
(python-sortedcontainers, python-yapsy, python-pydispatcher)
(python-posix-ipc)[home-page]: Likewise.
* gnu/packages/qt.scm (qwt, libqglviewer, signond)[home-page]: Likewise.
* gnu/packages/radio.scm (unixcw, gnuais)[home-page]: Likewise.
* gnu/packages/raspberry-pi.scm (bcm2835)[home-page]: Likewise.
* gnu/packages/rdf.scm (clucene, rasqal, redland)[home-page]: Likewise.
* gnu/packages/regex.scm (tre)[home-page]: Likewise.
* gnu/packages/rsync.scm (librsync)[home-page]: Likewise.
* gnu/packages/ruby.scm (ruby-packnga, ruby-nokogiri, ruby-oj, ruby-ox)
(ruby-sinatra, ruby-citrus, ruby-cbor, ruby-roda)[home-page]: Likewise.
* gnu/packages/scheme.scm (scheme48, tinyscheme)[home-page]: Likewise.
* gnu/packages/screen.scm (dtach)[home-page]: Likewise.
* gnu/packages/scsi.scm (sg3-utils)[home-page]: Likewise.
* gnu/packages/sdl.scm (libmikmod, sdl-pango)[home-page]: Likewise.
* gnu/packages/shellutils.scm (hstr, rig)[home-page]: Likewise.
* gnu/packages/simulation.scm (python-dolfin-adjoint)[home-page]:
Likewise.
* gnu/packages/smalltalk.scm (smalltalk)[home-page]: Likewise.
* gnu/packages/speech.scm (espeak)[home-page]: Likewise.
* gnu/packages/stalonetray.scm (stalonetray)[home-page]: Likewise.
* gnu/packages/statistics.scm (jags, r-mass, r-class, r-lattice)
(r-matrix, r-nnet, r-spatial, r-bit, r-bit64, r-digest, r-xtable)
(python-statsmodels, r-ade4, r-latticeextra, r-rcurl, r-xml, r-mvtnorm)
(r-robustbase, r-minqa, r-fdrtool, java-jdistlib, xlispstat)[home-page]:
Likewise.
* gnu/packages/swig.scm (swig)[home-page]: Likewise.
* gnu/packages/task-management.scm (wtime)[home-page]: Likewise.
* gnu/packages/tcl.scm (itcl, tclxml, tclx)[home-page]: Likewise.
* gnu/packages/terminals.scm (libtermkey, mlterm, libvterm)
(libvterm)[home-page]: Likewise.
* gnu/packages/tex.scm (texlive-lm, texlive-lm-math, texlive-cs)
(texlive-csplain, biber, texmaker)[home-page]: Likewise.
* gnu/packages/text-editors.scm (joe)[home-page]: Likewise.
* gnu/packages/textutils.scm (drm-tools, docx2txt)[home-page]: Likewise.
* gnu/packages/tv.scm (tvtime)[home-page]: Likewise.
* gnu/packages/unicode.scm (libunibreak)[home-page]: Likewise.
* gnu/packages/upnp.scm (libupnp)[home-page]: Likewise.
* gnu/packages/version-control.scm (cvs)[home-page]: Likewise.
* gnu/packages/video.scm (transcode, libquicktime, mjpegtools, aalib)
(liba52, libmpeg2, x265, libdv, dvdauthor, aegisub, pitivi, gavl)
(dvdbackup, guvcview, video-contact-sheet)[home-page]: Likewise.
* gnu/packages/virtualization.scm (bochs)[home-page]: Likewise.
* gnu/packages/w3m.scm (w3m)[home-page]: Likewise.
* gnu/packages/web.scm (qjson, libquvi-scripts, libquvi, quvi)
(tidy-html, htmlcxx)[home-page]: Likewise.
* gnu/packages/wm.scm (evilwm, menumaker)[home-page]: Likewise.
* gnu/packages/wv.scm (wv)[home-page]: Likewise.
* gnu/packages/wxwidgets.scm (wxsvg)[home-page]: Likewise.
* gnu/packages/xdisorg.scm (mtdev, xsel)[home-page]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[home-page]: Likewise.
* gnu/packages/xml.scm (openjade, python-pyxb, xmlstarlet, xmlrpc-c)
(opensp)[home-page]: Likewise.
* gnu/packages/xorg.scm (xf86-video-qxl)[home-page]: Likewise.
2023-02-12 00:00:00 +00:00
|
|
|
|
(home-page "https://haystacksearch.org/")
|
2020-07-21 09:29:56 +00:00
|
|
|
|
(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 18:31:44 +00:00
|
|
|
|
(define-public python-django-filter
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-filter")
|
2020-09-01 10:09:31 +00:00
|
|
|
|
(version "2.3.0")
|
2016-09-11 18:31:44 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-filter" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:09:31 +00:00
|
|
|
|
"1bz5qzdk9pk4a2lp2yacrdnqmkv24vxnz4k3lykrnpc3b7bkvrhi"))))
|
2016-09-11 18:31:44 +00:00
|
|
|
|
(build-system python-build-system)
|
2016-12-14 11:43:36 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-01-14 09:34:10 +00:00
|
|
|
|
(invoke "python" "runtests.py"))))))
|
2016-10-27 19:18:30 +00:00
|
|
|
|
(native-inputs
|
2021-12-17 16:05:58 +00:00
|
|
|
|
(list python-django python-django-rest-framework
|
2021-12-13 16:18:24 +00:00
|
|
|
|
python-django-crispy-forms python-mock))
|
2016-09-11 18:31:44 +00: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)))
|
|
|
|
|
|
2017-02-15 10:09:24 +00:00
|
|
|
|
(define-public python-django-allauth
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-allauth")
|
2020-09-01 10:10:27 +00:00
|
|
|
|
(version "0.42.0")
|
2017-02-15 10:09:24 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-allauth" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:10:27 +00:00
|
|
|
|
"0c0x8izvrnjhrr48w6pwsfk9ddbi6yfxg7v3hh5dm1vz1d0hjwpi"))))
|
2017-02-15 10:09:24 +00:00
|
|
|
|
(build-system python-build-system)
|
2017-10-06 06:39:35 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "test_settings")
|
2020-07-21 09:42:20 +00:00
|
|
|
|
(invoke "django-admin" "test" "allauth.tests"
|
|
|
|
|
"--pythonpath=."))))))
|
2017-02-15 10:09:24 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-openid python-requests python-requests-oauthlib))
|
2017-02-15 10:09:24 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-mock))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2017-02-15 10:09:24 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2018-10-27 16:43:27 +00:00
|
|
|
|
(define-public python-django-debug-toolbar
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-debug-toolbar")
|
2021-05-05 19:49:36 +00:00
|
|
|
|
(version "3.2.1")
|
2018-10-27 16:43:27 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2019-11-26 18:25:10 +00: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 20:53:28 +00:00
|
|
|
|
(url "https://github.com/jazzband/django-debug-toolbar")
|
2019-11-26 18:25:10 +00:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-10-27 16:43:27 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-05-05 19:49:36 +00:00
|
|
|
|
"1m1j2sx7q0blma0miswj3c8hrfi5q4y5cq2b816v8gagy89xgc57"))))
|
2018-10-27 16:43:27 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-sqlparse python-django))
|
2018-10-27 16:43:27 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django-jinja python-html5lib))
|
2018-10-27 16:43:27 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2020-09-01 15:38:12 +00:00
|
|
|
|
(define-public python-django-debug-toolbar-alchemy
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-debug-toolbar-alchemy")
|
|
|
|
|
(version "0.1.5")
|
|
|
|
|
(home-page "https://github.com/miki725/django-debug-toolbar-alchemy")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-debug-toolbar-alchemy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1kmpzghnsc247bc1dl22s4y62k9ijgy1pjms227018h5a4frsa5b"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ;XXX: 'make check' does "echo TODO"
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-django-debug-toolbar python-jsonplus
|
|
|
|
|
python-six python-sqlalchemy))
|
2020-09-01 15:38:12 +00:00
|
|
|
|
(synopsis "Django Debug Toolbar panel for SQLAlchemy")
|
|
|
|
|
(description
|
|
|
|
|
"This package completely mimics the default Django Debug Toolbar SQL
|
|
|
|
|
panel (internally it is actually subclassed), but instead of displaying
|
|
|
|
|
queries done via the Django ORM, SQLAlchemy generated queries are displayed.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-02-15 10:09:25 +00:00
|
|
|
|
(define-public python-django-gravatar2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-gravatar2")
|
2020-09-01 10:35:16 +00:00
|
|
|
|
(version "1.4.4")
|
2017-02-15 10:09:25 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-gravatar2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:35:16 +00:00
|
|
|
|
"1vn921fb6jjx7rf5dzhy66rkb71nwmh9ydd0xs9ys72icw4jh4y8"))))
|
2017-02-15 10:09:25 +00:00
|
|
|
|
(build-system python-build-system)
|
2018-03-04 13:25:32 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(;; TODO: The django project for the tests is missing from the release.
|
|
|
|
|
#:tests? #f))
|
2017-02-15 10:09:25 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2017-02-15 10:09:25 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2017-04-22 16:16:07 +00:00
|
|
|
|
(define-public python-django-assets
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-assets")
|
2020-09-01 10:57:23 +00:00
|
|
|
|
(version "2.0")
|
2017-04-22 16:16:07 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-assets" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:57:23 +00:00
|
|
|
|
"0fc6i77faxxv1gjlp06lv3kw64b5bhdiypaygfxh5djddgk83fwa"))))
|
2017-04-22 16:16:07 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-nose))
|
gnu: Django packages no longer propagate Django.
This makes them easier to use with different versions of Django.
(python-django-classy-tags, python-django-debug-toolbar-alchemy,
python-django-jinja, python-django-bulk-update,
python-djangorestframework)[propagated-inputs]: Remove PYTHON-DJANGO.
(python-django-contrib-comments)[propagated-inputs]: Likewise. Add
PYTHON-SIX.
[native-inputs]: Add PYTHON-DJANGO.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-assets, python-django-picklefield,
python-django-contact-form), python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-django-sekizai,
python-django-crispy-forms, python-django-override-storage,
python-django-auth-ldap, python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Move PYTHON-DJANGO ...
[native-inputs]: ... here.
2020-09-12 00:10:11 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-webassets))
|
2017-04-22 16:16:07 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2018-10-27 16:43:08 +00:00
|
|
|
|
(define-public python-django-jinja
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-jinja")
|
2021-11-30 23:46:32 +00:00
|
|
|
|
(version "2.9.1")
|
2018-10-27 16:43:08 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2019-11-26 18:27:24 +00: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 20:53:28 +00:00
|
|
|
|
(url "https://github.com/niwinz/django-jinja")
|
2019-11-26 18:27:24 +00:00
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-10-27 16:43:08 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-11-30 23:46:32 +00:00
|
|
|
|
"0p9pkn6jjzagpnvcrl9c2vjqamkms7ymvyhhmaqqqhrlv89qnzp7"))))
|
2018-10-27 16:43:08 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-jinja2 python-pytz python-django-pipeline))
|
2018-10-27 16:43:08 +00:00
|
|
|
|
(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 16:28:37 +00:00
|
|
|
|
(define-public python-dj-database-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dj-database-url")
|
2023-09-16 06:23:46 +00:00
|
|
|
|
(version "2.1.0")
|
2017-04-22 16:28:37 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "dj-database-url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-09-16 06:23:46 +00:00
|
|
|
|
"0pqkifl5zradgsznjpk6g6zp64gnsxdav7x3knf56vh8w7pjq17j"))))
|
2017-04-22 16:28:37 +00:00
|
|
|
|
(build-system python-build-system)
|
2023-09-16 06:23:46 +00:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list python-django python-typing-extensions))
|
2017-04-22 16:28:37 +00:00
|
|
|
|
(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.")
|
2023-09-16 06:23:46 +00:00
|
|
|
|
(license license:bsd-3)))
|
2017-04-22 16:28:37 +00:00
|
|
|
|
|
2023-09-16 06:10:26 +00:00
|
|
|
|
(define-public python-dj-email-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dj-email-url")
|
|
|
|
|
(version "1.0.6")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "dj-email-url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"16k91rvd9889xxrrf84a3zb0jpinizhfqdmafn54zxa8kqrf7zsm"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
(home-page "https://github.com/migonzalvar/dj-email-url")
|
|
|
|
|
(synopsis "Configure email settings from URLs")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a facility for configuring Django email backend
|
|
|
|
|
settings from URLs.")
|
|
|
|
|
(license (list license:bsd-2 ;source code
|
|
|
|
|
license:cc-by4.0 ;documentation
|
|
|
|
|
license:cc0)))) ;configuration and data
|
|
|
|
|
|
2023-09-16 06:28:52 +00:00
|
|
|
|
(define-public python-dj-search-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dj-search-url")
|
|
|
|
|
(version "0.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "dj-search-url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0h7vshhglym6af2pplkyivk6y0g0ncq0xpdzi88kq2sha9c1lka2"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
(home-page "https://github.com/dstufft/dj-search-url")
|
|
|
|
|
(synopsis "Configure Haystack search from URLs")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a facility for configuring Django Haystack
|
|
|
|
|
applications with a @var{SEARCH_URL} variable.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
2020-07-21 09:24:49 +00:00
|
|
|
|
(define-public python-django-picklefield
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-picklefield")
|
2023-09-09 12:39:41 +00:00
|
|
|
|
(version "3.1.0")
|
2020-09-01 11:12:48 +00:00
|
|
|
|
(home-page "https://github.com/gintas/django-picklefield")
|
|
|
|
|
;; Use a git checkout because the PyPI release lacks tests.
|
2020-07-21 09:24:49 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2020-09-01 11:12:48 +00: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 09:24:49 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-09-09 12:39:41 +00:00
|
|
|
|
"00d8sm6cnkv5bxbs2a3qrm4g69nlaa1wari7mc697df8q91v6r0n"))))
|
2020-07-21 09:24:49 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 11:12:48 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "python" "-m" "django" "test" "-v2"
|
|
|
|
|
"--settings=tests.settings"))))))
|
2023-09-09 12:39:41 +00:00
|
|
|
|
(propagated-inputs (list python-django))
|
2020-07-21 09:24:49 +00:00
|
|
|
|
(synopsis "Pickled object field for Django")
|
|
|
|
|
(description "Pickled object field for Django")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2017-04-23 11:31:08 +00:00
|
|
|
|
(define-public python-django-bulk-update
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-bulk-update")
|
2020-09-01 11:17:46 +00:00
|
|
|
|
(version "2.2.0")
|
2017-04-23 11:31:08 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-bulk-update" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 11:17:46 +00:00
|
|
|
|
"0dxkmrm3skyw82i0qa8vklxw1ma1y308kh9w2hcnvhpacn5cxdss"))))
|
2017-04-23 11:31:08 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 11:17:46 +00:00
|
|
|
|
;; XXX: Tests require a Postgres database.
|
2017-04-23 11:31:08 +00:00
|
|
|
|
`(#:tests? #f))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2017-04-23 11:31:08 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2017-04-22 16:51:24 +00:00
|
|
|
|
(define-public python-django-contact-form
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-contact-form")
|
2021-11-30 23:47:16 +00:00
|
|
|
|
(version "1.9")
|
2017-04-22 16:51:24 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-contact-form" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-11-30 23:47:16 +00:00
|
|
|
|
"1my9hkrylckp5vfqg9b0kncrdlxjnwxll56sdciqn4v19i4wbq1y"))))
|
2017-04-22 16:51:24 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2020-09-01 11:25:51 +00:00
|
|
|
|
(invoke "coverage" "run" "--source" "contact_form"
|
|
|
|
|
"runtests.py"))))))
|
2017-04-22 16:51:24 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-coverage))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2017-04-22 16:51:24 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2017-04-22 17:01:33 +00:00
|
|
|
|
(define-public python-django-contrib-comments
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-contrib-comments")
|
2020-09-01 11:27:09 +00:00
|
|
|
|
(version "1.9.2")
|
2017-04-22 17:01:33 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-contrib-comments" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 11:27:09 +00:00
|
|
|
|
"0ccdiv784a5vnpfal36km4dyg12340rwhpr0riyy0k89wfnjn8yi"))))
|
2017-04-22 17:01:33 +00:00
|
|
|
|
(build-system python-build-system)
|
gnu: Django packages no longer propagate Django.
This makes them easier to use with different versions of Django.
(python-django-classy-tags, python-django-debug-toolbar-alchemy,
python-django-jinja, python-django-bulk-update,
python-djangorestframework)[propagated-inputs]: Remove PYTHON-DJANGO.
(python-django-contrib-comments)[propagated-inputs]: Likewise. Add
PYTHON-SIX.
[native-inputs]: Add PYTHON-DJANGO.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-assets, python-django-picklefield,
python-django-contact-form), python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-django-sekizai,
python-django-crispy-forms, python-django-override-storage,
python-django-auth-ldap, python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Move PYTHON-DJANGO ...
[native-inputs]: ... here.
2020-09-12 00:10:11 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-six))
|
2017-04-22 17:01:33 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2023-09-16 08:47:56 +00:00
|
|
|
|
(define-public python-django-ninja
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-ninja")
|
|
|
|
|
(version "0.22.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django_ninja" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0b19w7nvw7c3z19dbza49m24c3384j59w2xcr5l6jshxazkvsgli"))))
|
|
|
|
|
(build-system pyproject-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; FIXME: How to configure this test properly?
|
|
|
|
|
(list #:test-flags #~'("-k" "not test_improperly_configured")))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list python-django python-pydantic))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list python-flit-core
|
|
|
|
|
python-psycopg2
|
|
|
|
|
python-pytest
|
|
|
|
|
python-pytest-asyncio
|
|
|
|
|
python-pytest-django))
|
|
|
|
|
(home-page "https://django-ninja.rest-framework.com")
|
|
|
|
|
(synopsis "REST framework for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Django Ninja is a web framework for building APIs with Django
|
|
|
|
|
and Python type hints. It is designed to be fast and easy to use thanks
|
|
|
|
|
to asyncio and Pydantic.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
2018-10-27 16:43:39 +00:00
|
|
|
|
(define-public python-django-pipeline
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-pipeline")
|
2023-05-06 17:56:21 +00:00
|
|
|
|
(version "2.1.0")
|
2018-10-27 16:43:39 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-pipeline" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-05-06 17:56:21 +00:00
|
|
|
|
"194j8xihx5yr1yfrssdy6nxmx8yc999pz2ai9lg83l7izmbcx9in"))))
|
2018-10-27 16:43:39 +00: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)
|
2021-01-23 05:25:24 +00:00
|
|
|
|
(when tests?
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tests.settings")
|
2021-11-30 23:50:51 +00:00
|
|
|
|
(invoke "django-admin" "test" "tests"
|
|
|
|
|
"--pythonpath=.")))))))
|
2023-05-06 17:56:21 +00:00
|
|
|
|
(native-inputs
|
|
|
|
|
(list python-django
|
|
|
|
|
python-setuptools-scm
|
|
|
|
|
python-css-html-js-minify
|
2021-12-13 16:18:24 +00:00
|
|
|
|
python-jsmin))
|
2018-10-27 16:43:39 +00:00
|
|
|
|
(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 14:54:53 +00:00
|
|
|
|
(define-public python-django-redis
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-redis")
|
2020-09-01 11:30:05 +00:00
|
|
|
|
(version "4.12.1")
|
2017-04-23 14:54:53 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-redis" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 11:30:05 +00:00
|
|
|
|
"0qvsm8yjchl0d3i7g20wba6px9lb5gv8kp3fcnr6hr0y0b3qjr9h"))))
|
2017-04-23 14:54:53 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-03-04 20:09:12 +00:00
|
|
|
|
(invoke "redis-server" "--daemonize" "yes")
|
|
|
|
|
(with-directory-excursion "tests"
|
|
|
|
|
(invoke "python" "runtests.py")))))))
|
2017-04-23 14:54:53 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-fakeredis python-hiredis python-mock python-msgpack
|
|
|
|
|
redis))
|
2017-04-23 14:54:53 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-redis))
|
2017-04-23 14:54:53 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2017-04-22 17:14:03 +00:00
|
|
|
|
(define-public python-django-rq
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-rq")
|
2023-03-20 12:28:50 +00:00
|
|
|
|
(version "2.7.0")
|
2017-04-22 17:14:03 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-rq" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2023-03-20 12:28:50 +00:00
|
|
|
|
"0aw0fi0lg80qgdp9fhjbnlhvfh2p09rgy1nj6hxpyhi37kihni2h"))))
|
2017-04-22 17:14:03 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2019-03-04 20:14:28 +00:00
|
|
|
|
(invoke "redis-server" "--daemonize" "yes")
|
2023-03-20 12:28:50 +00:00
|
|
|
|
(invoke "django-admin" "test" "django_rq"
|
2019-03-04 20:14:28 +00:00
|
|
|
|
"--settings=django_rq.tests.settings"
|
2020-07-21 10:53:42 +00:00
|
|
|
|
"--pythonpath=."))))))
|
2017-04-22 17:14:03 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django-redis python-mock python-rq-scheduler redis))
|
2017-04-22 17:14:03 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-rq))
|
2017-04-22 17:14:03 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2020-07-21 09:27:28 +00:00
|
|
|
|
(define-public python-django-q
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-q")
|
2020-11-20 22:41:27 +00:00
|
|
|
|
(version "1.3.4")
|
2020-07-21 09:27:28 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-q" version))
|
|
|
|
|
(sha256
|
2020-11-20 22:41:27 +00:00
|
|
|
|
(base32 "03z1pf6wlf47i7afr79a8fiiidfk1vq19yaqnv0m4qdny7f58gaj"))))
|
2020-07-21 09:27:28 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 12:25:26 +00:00
|
|
|
|
;; FIXME: Tests require disque, Redis, MongoDB, Docker.
|
|
|
|
|
(arguments '(#:tests? #f))
|
2020-07-21 09:27:28 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-arrow python-blessed python-django
|
|
|
|
|
python-django-picklefield))
|
2020-07-21 09:27:28 +00:00
|
|
|
|
(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 17:18:02 +00:00
|
|
|
|
(define-public python-django-sortedm2m
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-sortedm2m")
|
2020-09-01 12:32:03 +00:00
|
|
|
|
(version "3.0.2")
|
2017-04-22 17:18:02 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-sortedm2m" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 12:32:03 +00:00
|
|
|
|
"0z0yymmrr2l5cznqbzwziw624df0qsiflvbpqwrpan52nww3dk4a"))))
|
2017-04-22 17:18:02 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-01 12:32:03 +00:00
|
|
|
|
`(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2021-11-30 23:47:58 +00:00
|
|
|
|
(invoke "django-admin"
|
|
|
|
|
"test" "--settings=test_project.settings"
|
|
|
|
|
"--pythonpath=."))))))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2020-09-01 12:32:03 +00:00
|
|
|
|
(home-page "https://github.com/jazzband/django-sortedm2m")
|
2017-04-22 17:18:02 +00: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)))
|
|
|
|
|
|
2017-04-22 17:18:46 +00:00
|
|
|
|
(define-public python-django-appconf
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-appconf")
|
2020-09-01 12:35:18 +00:00
|
|
|
|
(version "1.0.4")
|
2017-04-22 17:18:46 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-appconf" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 12:35:18 +00:00
|
|
|
|
"101k8nkc7xlffpjdi2qbrp9pc4v8hzvmkzi12qp7vms39asxwn5y"))))
|
2017-04-22 17:18:46 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 12:35:18 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tests.test_settings")
|
2021-11-30 23:52:26 +00:00
|
|
|
|
(invoke "django-admin" "test" "--pythonpath=."))))))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2017-04-22 17:18:46 +00: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)))
|
|
|
|
|
|
2017-04-22 17:19:19 +00:00
|
|
|
|
(define-public python-django-statici18n
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-statici18n")
|
2021-05-22 17:17:49 +00:00
|
|
|
|
(version "2.1.0")
|
2020-09-01 12:42:16 +00:00
|
|
|
|
(home-page "https://github.com/zyegfryed/django-statici18n")
|
2017-04-22 17:19:19 +00:00
|
|
|
|
(source (origin
|
2020-09-01 12:42:16 +00: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 17:19:19 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-05-22 17:17:49 +00:00
|
|
|
|
"0x0xvfqd40is2ks43d65awgqkx3wk10lvdim15scvbjhkh301b6v"))))
|
2017-04-22 17:19:19 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 12:42:16 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
2021-01-23 05:31:20 +00:00
|
|
|
|
(setenv "PYTHONPATH" "./tests/test_project")
|
2020-09-01 12:42:16 +00:00
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "project.settings")
|
|
|
|
|
(invoke "pytest" "-vv"))))))
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-pytest python-pytest-django))
|
2017-04-22 17:19:19 +00:00
|
|
|
|
(propagated-inputs
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("django-appconf" ,python-django-appconf)))
|
2017-04-22 17:19:19 +00:00
|
|
|
|
(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)))
|
|
|
|
|
|
2017-12-18 18:26:33 +00:00
|
|
|
|
(define-public python-django-tagging
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-tagging")
|
2020-07-21 11:23:04 +00:00
|
|
|
|
(version "0.5.0")
|
2017-12-18 18:26:33 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-tagging" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-07-21 11:23:04 +00:00
|
|
|
|
"13afxx30chssclxzd9gqnvwm9qyrdpnlbs6iswdfa18phfj8zmi8"))))
|
2017-12-18 18:26:33 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-07-21 11:17:25 +00:00
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE" "tagging.tests.settings")
|
|
|
|
|
(invoke "django-admin" "test" "--pythonpath=."))))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2017-12-18 18:26:33 +00: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.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
2021-12-17 16:05:58 +00:00
|
|
|
|
(define-public python-django-rest-framework
|
2018-03-04 13:23:05 +00:00
|
|
|
|
(package
|
2021-12-17 16:05:58 +00:00
|
|
|
|
(name "python-django-rest-framework")
|
2021-12-17 15:58:42 +00:00
|
|
|
|
(version "3.13.1")
|
2018-03-04 13:23:05 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2021-05-07 11:41:52 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/encode/django-rest-framework")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-03-04 13:23:05 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-17 15:58:42 +00:00
|
|
|
|
"11wfb156yin6mlgcdzfmi267jsq1cld131mxgd13aqsrj06zlray"))))
|
2018-03-04 13:23:05 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2021-05-07 11:41:52 +00:00
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
2021-12-17 15:58:42 +00:00
|
|
|
|
(lambda* (#:key tests? inputs #:allow-other-keys)
|
2021-05-07 11:41:52 +00:00
|
|
|
|
(if tests?
|
2022-01-20 17:45:47 +00:00
|
|
|
|
(invoke "python" "runtests.py")
|
2021-05-07 11:41:52 +00:00
|
|
|
|
(format #t "test suite not run~%")))))))
|
|
|
|
|
(native-inputs
|
2021-12-17 15:58:42 +00:00
|
|
|
|
(list python-pytest python-pytest-django tzdata-for-tests))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-17 15:58:42 +00:00
|
|
|
|
(list python-django python-pytz))
|
2018-03-04 13:23:05 +00:00
|
|
|
|
(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
|
gnu: Fix typoes in package descriptions.
* gnu/packages/audio.scm (caps-plugins-lv2)[synopsis]: Fix typo.
* gnu/packages/bioconductor.scm (r-karyoploter, r-anota, r-gcrma)
(r-bigmemoryextras)[description]: Likewise.
* gnu/packages/cran.scm (r-geometry)[synopsis]: Likewise.
(r-stringdist, r-patchwork, r-depth, r-tea)[description]: Likewise.
* gnu/packages/crates-io.scm (rust-assert-fs-0.11, rust-notify-4)
(rust-tokio-fs-0.1)[synopsis, description]: Likewise.
(rust-blas-sys-0.7)[description]: Likewise.
(rust-fs-extra-1.1, rust-xattr-0.2)[synopsis]: Likewise.
* gnu/packages/databases.scm (perl-mysql-config)[description]: Likewise.
* gnu/packages/disk.scm (hddtemp)[description]: Likewise.
* gnu/packages/django.scm (python-djangorestframework)[description]:
Likewise.
* gnu/packages/documentation.scm (doc++)[description]: Likewise.
* gnu/packages/emacs-xyz.scm (emacs-kakoune, emacs-pyim-basedict, eless)
(emacs-scpaste)[description]: Likewise.
* gnu/packages/file-systems.scm (dbxfs)[description]: Likewise.
* gnu/packages/finance.scm (python-stdnum)[description]: Likewise.
* gnu/packages/fontutils.scm (woff2)[description]: Likewise.
* gnu/packages/games.scm (openttd-opengfx)[description]: Likewise.
* gnu/packages/gnome-xyz.scm (gnome-shell-extension-topicons-redux)
[description]: Likewise.
* gnu/packages/gnome.scm (libgrss)[description]: Likewise.
* gnu/packages/golang.scm (go-github-com-mitchellh-reflectwalk)
[description]: Likewise.
(go-github-com-go-git-go-billy)[synopsis, description]: Likewise.
* gnu/packages/haskell-check.scm (ghc-inspection-testing)[description]:
Likewise.
* gnu/packages/haskell-web.scm (ghc-yesod-form)[description]: Likewise.
* gnu/packages/haskell-xyz.scm (ghc-hex)[description]: Likewise.
* gnu/packages/hyperledger.scm (hyperledger-iroha-ed25519)[description]:
Likewise.
* gnu/packages/java.scm (java-mail)[synopsis]: Likewise.
(java-native-access-platform)[description]: Likewise.
* gnu/packages/kde-frameworks.scm (kactivities-stats)[description]:
Likewise.
* gnu/packages/kde-utils.scm (krusader)[description]: Likewise.
* gnu/packages/language.scm (praat)[description]: Likewise.
* gnu/packages/linux.scm (light)[description]: Likewise.
* gnu/packages/lisp-xyz.scm (sbcl-hu.dwim.defclass-star)[description]:
Likewise.
* gnu/packages/mail.scm (dovecot-trees, sieve-connect)[description]:
Likewise.
* gnu/packages/ocaml.scm (ocaml-opam-file-format, ocaml-cppo)
(ocaml4.07-ppx-variants-conv)[description]: Likewise.
* gnu/packages/perl.scm (perl-convert-binhex)[description]: Likewise.
* gnu/packages/python-crypto.scm (python-ecdsa)[description]: Likewise.
* gnu/packages/python-web.scm (python-html5lib)[synopsis, description]:
Likewise.
(python-venusian)[synopsis]: Likewise.
* gnu/packages/python-xyz.scm (python-readlike, python-gssapi)
(python-flufl-i18n)[description]: Likewise.
(python-pox, python-watchdog, python-xattr)[synopsis, description]:
Likewise.
* gnu/packages/ruby.scm (ruby-sorcerer)[description]: Likewise.
* gnu/packages/rust-apps.scm (watchexec)[description]: Likewise.
* gnu/packages/rust.scm (mrustc)[synopsis]: Likewise.
* gnu/packages/shells.scm (s-shell)[description]: Likewise.
* gnu/packages/ssh.scm (sshpass)[description]: Likewise.
* gnu/packages/terminals.scm (beep)[description]: Likewise.
* gnu/packages/web.scm (perl-lwp-useragent-cached)[description]:
Likewise.
* gnu/packages/wv.scm (wv)[description]: Likewise.
2020-09-22 19:31:52 +00:00
|
|
|
|
provides features like a Web-browsable API and authentication policies.")
|
2018-03-04 13:23:05 +00:00
|
|
|
|
(license license:bsd-2)))
|
2018-03-04 13:23:15 +00:00
|
|
|
|
|
2021-12-17 16:05:58 +00:00
|
|
|
|
(define-public python-djangorestframework
|
|
|
|
|
(deprecated-package "python-djangorestframework" python-django-rest-framework))
|
|
|
|
|
|
2020-07-21 11:27:36 +00:00
|
|
|
|
(define-public python-django-sekizai
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-sekizai")
|
2020-09-01 12:44:06 +00:00
|
|
|
|
(version "2.0.0")
|
2020-07-21 11:27:36 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-sekizai" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 12:44:06 +00:00
|
|
|
|
"0vrkli625b5s1wldri3dyrfvqbxg7zxy2pg0rpjixw3b1ndz0ag8"))))
|
2020-07-21 11:27:36 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; Tests not included with release.
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-django-classy-tags python-six))
|
2020-07-21 11:27:36 +00:00
|
|
|
|
(home-page "https://github.com/divio/django-sekizai")
|
|
|
|
|
(synopsis "Template blocks for Django projects")
|
2020-10-29 02:50:24 +00:00
|
|
|
|
(description "Sekizai means blocks in Japanese, and that is what this app
|
2020-07-21 11:27:36 +00:00
|
|
|
|
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 13:23:15 +00:00
|
|
|
|
(define-public python-django-crispy-forms
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-crispy-forms")
|
2020-09-01 10:07:26 +00:00
|
|
|
|
(version "1.9.2")
|
2018-03-04 13:23:15 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-crispy-forms" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-01 10:07:26 +00:00
|
|
|
|
"0fxlf233f49hjax786p4r650rd0ilvhnpyvw8hv1d1aqnkxy1wgj"))))
|
2018-03-04 13:23:15 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; No included tests
|
|
|
|
|
#:tests? #f))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2018-03-04 13:23:15 +00:00
|
|
|
|
(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 22:55:43 +00:00
|
|
|
|
|
2020-07-21 11:30:59 +00:00
|
|
|
|
(define-public python-django-compressor
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-compressor")
|
2021-05-23 09:16:41 +00:00
|
|
|
|
(version "2.4.1")
|
2020-07-21 11:30:59 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django_compressor" version))
|
|
|
|
|
(sha256
|
2021-05-23 09:16:41 +00:00
|
|
|
|
(base32 "1q0m0hfg7sqmj5km924g4dgy3nx51aszzsprlp6gsin10mv0fn1k"))))
|
2020-07-21 11:30:59 +00:00
|
|
|
|
(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
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django-appconf python-rcssmin python-rjsmin))
|
2020-07-21 11:30:59 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-beautifulsoup4 python-brotli python-csscompressor
|
|
|
|
|
python-django-sekizai python-mock))
|
2020-07-21 11:30:59 +00:00
|
|
|
|
(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 22:55:43 +00:00
|
|
|
|
(define-public python-django-override-storage
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-override-storage")
|
2020-09-01 12:49:18 +00:00
|
|
|
|
(version "0.3.0")
|
|
|
|
|
(home-page "https://github.com/danifus/django-override-storage")
|
2018-03-28 22:55:43 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
2020-09-01 12:49:18 +00:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url home-page)
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-03-28 22:55:43 +00:00
|
|
|
|
(sha256
|
2020-09-01 12:49:18 +00:00
|
|
|
|
(base32 "081kzfk7mmybhihvc92d3hsdg0r2k20ydq88fs1fgd348sq1ax51"))))
|
2018-03-28 22:55:43 +00:00
|
|
|
|
(build-system python-build-system)
|
2020-09-01 12:49:18 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(invoke "python" "runtests.py"))))))
|
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-mock))
|
gnu: Django packages propagate Django, after all.
This reverts commit d7922f488b658b1adb5aff09f04a9bed0221aee1. Mainly to
placate the new 'sanity-check' phase, and because --with-input and friends
makes it easy to override.
* gnu/packages/django.scm (python-django-extensions,
python-django-simple-math-captcha, python-django-taggit,
python-easy-thumbnails, python-django-haystack, python-django-allauth,
python-django-debug-toolbar, python-django-debug-toolbar-alchemy,
python-django-assets, python-django-jinja, python-django-picklefield,
python-django-bulk-update, python-django-contact-form,
python-django-contrib-comments, python-django-pipeline, python-django-redis,
python-django-rq, python-django-q, python-django-sortedm2m,
python-django-appconf, python-django-statici18n, python-djangorestframework,
python-django-sekizai, python-django-crispy-forms,
python-django-override-storage, python-django-auth-ldap,
python-django-logging-json, python-django-netfields,
python-django-url-filter)[propagated-inputs]: Add PYTHON-DJANGO.
[native-inputs]: Remove it.
2021-11-30 22:58:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django))
|
2018-03-28 22:55:43 +00:00
|
|
|
|
(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)))
|
2020-09-01 13:13:50 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-django-auth-ldap
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-auth-ldap")
|
2022-06-21 01:33:22 +00:00
|
|
|
|
(version "4.1.0")
|
2020-09-01 13:13:50 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-auth-ldap" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-06-21 01:33:22 +00:00
|
|
|
|
"0jd9jms9qpa92fk5n7gqcxjk3zs6ay79r73ann7cw1vqn79lkxvp"))))
|
2020-09-01 13:13:50 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2022-01-20 22:40:25 +00:00
|
|
|
|
(list #:phases
|
|
|
|
|
#~(modify-phases %standard-phases
|
|
|
|
|
(replace 'build
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Set file modification times to the early 80's because
|
|
|
|
|
;; the Zip format does not support earlier timestamps.
|
|
|
|
|
(setenv "SOURCE_DATE_EPOCH"
|
|
|
|
|
(number->string (* 10 366 24 60 60)))
|
|
|
|
|
(invoke "python" "-m" "build" "--wheel"
|
|
|
|
|
"--no-isolation" ".")))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(setenv "SLAPD" (search-input-file inputs "/libexec/slapd"))
|
|
|
|
|
(setenv "SCHEMA"
|
|
|
|
|
(search-input-directory inputs "etc/openldap/schema"))
|
|
|
|
|
(invoke "python" "-m" "django" "test"
|
|
|
|
|
"--settings" "tests.settings")))
|
|
|
|
|
(replace 'install
|
|
|
|
|
(lambda _
|
|
|
|
|
(let ((whl (car (find-files "dist" "\\.whl$"))))
|
|
|
|
|
(invoke "pip" "--no-cache-dir" "--no-input"
|
|
|
|
|
"install" "--no-deps" "--prefix" #$output whl)))))))
|
2020-09-01 13:13:50 +00:00
|
|
|
|
(native-inputs
|
2022-07-13 18:46:56 +00:00
|
|
|
|
(list openldap python-wheel python-setuptools-scm python-toml
|
2022-01-20 22:40:25 +00:00
|
|
|
|
|
|
|
|
|
;; These can be removed after <https://bugs.gnu.org/46848>.
|
|
|
|
|
python-pypa-build python-pip))
|
2020-09-01 13:13:50 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-ldap))
|
2020-09-01 13:13:50 +00:00
|
|
|
|
(home-page "https://github.com/django-auth-ldap/django-auth-ldap")
|
|
|
|
|
(synopsis "Django LDAP authentication backend")
|
|
|
|
|
(description
|
2020-10-29 02:40:05 +00:00
|
|
|
|
"This package provides an LDAP authentication backend for Django.")
|
2020-09-01 13:13:50 +00:00
|
|
|
|
(license license:bsd-2)))
|
2020-09-01 13:18:51 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-django-logging-json
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-logging-json")
|
|
|
|
|
(version "1.15")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-logging-json" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"06041a8icazzp73kg93c7k1ska12wvkq7fpcad0l0sm1qnxx5yx7"))))
|
|
|
|
|
(build-system python-build-system)
|
2021-11-30 23:53:09 +00:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ;no tests
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
;; Importing this module requires a Django project.
|
|
|
|
|
(delete 'sanity-check))))
|
2020-09-01 13:18:51 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-certifi python-django python-elasticsearch python-six))
|
2020-09-01 13:18:51 +00:00
|
|
|
|
(home-page "https://github.com/cipriantarta/django-logging")
|
|
|
|
|
(synopsis "Log requests/responses in various formats")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides a Django library that logs request, response,
|
|
|
|
|
and exception details in a JSON document. It can also send logs directly
|
|
|
|
|
to ElasticSearch.")
|
|
|
|
|
(license license:bsd-2)))
|
2020-09-01 13:23:53 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-django-netfields
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-netfields")
|
2022-06-21 01:33:43 +00:00
|
|
|
|
(version "1.3.0")
|
2020-09-01 13:23:53 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-netfields" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-06-21 01:33:43 +00:00
|
|
|
|
"122d0db1f420cwzrd7hynfbnnpqkjj2ridym5mrnj0l736nin5rr"))))
|
2020-09-01 13:23:53 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ;XXX: Requires a running PostgreSQL server
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-django python-netaddr python-psycopg2 python-six))
|
2020-09-01 13:23:53 +00:00
|
|
|
|
(home-page "https://github.com/jimfunk/django-postgresql-netfields")
|
|
|
|
|
(synopsis "PostgreSQL netfields implementation for Django")
|
|
|
|
|
(description
|
|
|
|
|
"This package provides mappings for the PostgreSQL @code{INET} and
|
|
|
|
|
@code{CIDR} fields for use in Django projects.")
|
|
|
|
|
(license license:bsd-3)))
|
2020-09-01 16:05:41 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-django-url-filter
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-url-filter")
|
|
|
|
|
(version "0.3.15")
|
|
|
|
|
(home-page "https://github.com/miki725/django-url-filter")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference (url home-page) (commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2022-01-20 15:13:57 +00:00
|
|
|
|
"0r4zhqhs8y6cnplwyvcb0zpijizw1ifnszs38n4w8138657f9026"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Patch for Django 4.0 compatibility, taken from upstream pull
|
|
|
|
|
;; request: https://github.com/miki725/django-url-filter/pull/103
|
|
|
|
|
'(substitute* "url_filter/validators.py"
|
|
|
|
|
((" ungettext_lazy")
|
|
|
|
|
" ngettext_lazy")))))
|
2020-09-01 16:05:41 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ;FIXME: Django raises "Apps aren't loaded yet"!?
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
2021-11-30 23:55:00 +00:00
|
|
|
|
(add-after 'unpack 'loosen-requirements
|
2020-09-01 16:05:41 +00:00
|
|
|
|
(lambda _
|
|
|
|
|
;; Do not depend on compatibility package for old
|
|
|
|
|
;; Python versions.
|
|
|
|
|
(substitute* "requirements.txt"
|
2021-01-23 05:35:14 +00:00
|
|
|
|
(("enum-compat") ""))))
|
2020-09-01 16:05:41 +00:00
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(if tests?
|
|
|
|
|
(begin
|
|
|
|
|
(setenv "DJANGO_SETTINGS_MODULE"
|
|
|
|
|
"test_project.settings")
|
|
|
|
|
(invoke "pytest" "-vv" "--doctest-modules"
|
|
|
|
|
"tests/" "url_filter/"))
|
|
|
|
|
(format #t "test suite not run~%")))))))
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-cached-property python-django python-six))
|
2020-09-01 16:05:41 +00:00
|
|
|
|
(synopsis "Filter data via human-friendly URLs")
|
|
|
|
|
(description
|
|
|
|
|
"The main goal of Django URL Filter is to provide an easy URL interface
|
|
|
|
|
for filtering data. It allows the user to safely filter by model attributes
|
2020-10-31 00:03:18 +00:00
|
|
|
|
and also specify the lookup type for each filter (very much like
|
2020-09-01 16:05:41 +00:00
|
|
|
|
Django's filtering system in ORM).")
|
|
|
|
|
(license license:expat)))
|
2021-12-02 20:48:05 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-django-svg-image-form-field
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-svg-image-form-field")
|
|
|
|
|
(version "1.0.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/artrey/django-svg-image-form-field")
|
|
|
|
|
(commit (string-append version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "131m545khn8l20j4x2bvlvz36dlbnhj9pc98i2dw72s3bw8pgws0"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-defusedxml python-django python-pillow))
|
2021-12-02 20:48:05 +00:00
|
|
|
|
(home-page "https://github.com/artrey/django-svg-image-form-field")
|
|
|
|
|
(synopsis "Form field to validate SVG and other images")
|
|
|
|
|
(description "This form field allows users to provide SVG images for
|
|
|
|
|
models that use Django's standard @code{ImageField}, in addition to the
|
|
|
|
|
image files already supported by it.")
|
|
|
|
|
(license license:expat)))
|
2022-07-13 16:23:02 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-django-cleanup
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-cleanup")
|
|
|
|
|
(version "6.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/un1t/django-cleanup")
|
|
|
|
|
(commit (string-append version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0c1nghn1bnlq0a4d3sy3s363ksqsnxksixbimdy3cc6a0vk4sjps"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-tests-settings
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; django-cleanup optionally integrates with
|
|
|
|
|
;; sorl-thumbnail, which is not available in Guix yet, so
|
|
|
|
|
;; this patch comments it out to avoid import failures in
|
|
|
|
|
;; test settings.
|
|
|
|
|
(substitute* "django_cleanup/testapp/settings.py"
|
|
|
|
|
(("'sorl\\.thumbnail',") "# 'sorl.thumbnail',"))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
;; Add CWD to PYTHONPATH so that the tests can find the
|
|
|
|
|
;; testapp package in the source.
|
|
|
|
|
(setenv "PYTHONPATH" (getcwd))
|
|
|
|
|
(invoke "pytest")))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
(list ;; python-django-sorl-thumbnail ; TODO: Add to Guix.
|
|
|
|
|
python-easy-thumbnails
|
|
|
|
|
python-pillow
|
|
|
|
|
python-pytest
|
|
|
|
|
python-pytest-cov
|
|
|
|
|
python-pytest-django
|
|
|
|
|
python-pytest-xdist))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
(list python-django))
|
|
|
|
|
(home-page "https://github.com/un1t/django-cleanup")
|
|
|
|
|
(synopsis "Automatically deletes unused media files")
|
|
|
|
|
(description "This application automatically deletes user-uploaded
|
|
|
|
|
files when a model is modified or deleted. It works for FileField,
|
|
|
|
|
ImageField and their subclasses. Files set as default values for any
|
|
|
|
|
FileField are not deleted.")
|
|
|
|
|
(license license:expat)))
|