2016-08-22 13:31:36 +02:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
|
2016-09-11 20:30:55 +02:00
|
|
|
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
2017-02-15 11:09:24 +01:00
|
|
|
|
;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
|
2016-08-22 13:31:36 +02: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)
|
|
|
|
|
#:use-module (guix build-system python)
|
|
|
|
|
#:use-module (gnu packages)
|
|
|
|
|
#:use-module (gnu packages base)
|
2017-04-23 16:54:53 +02:00
|
|
|
|
#:use-module (gnu packages databases)
|
2016-08-22 13:31:36 +02:00
|
|
|
|
#:use-module (gnu packages python))
|
|
|
|
|
|
|
|
|
|
(define-public python-django
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django")
|
2017-04-04 18:00:12 +02:00
|
|
|
|
(version "1.10.7")
|
2016-08-22 13:31:36 +02:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "Django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2017-04-04 18:00:12 +02:00
|
|
|
|
"1f5hnn2dzfr5szk4yc47bs4kk2nmrayjcvgpqi2s4l13pjfpfgar"))))
|
2016-08-22 13:31:36 +02:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'set-tzdir
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; The test-suite tests timezone-dependent functions, thus tzdata
|
|
|
|
|
;; needs to be available.
|
|
|
|
|
(setenv "TZDIR"
|
|
|
|
|
(string-append (assoc-ref inputs "tzdata")
|
|
|
|
|
"/share/zoneinfo"))
|
|
|
|
|
#t))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "PYTHONPATH"
|
|
|
|
|
(string-append ".:" (getenv "PYTHONPATH")))
|
|
|
|
|
(zero? (system* "python" "tests/runtests.py")))))))
|
|
|
|
|
;; TODO: Install extras/django_bash_completion.
|
2016-09-15 22:07:29 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("tzdata", tzdata)
|
|
|
|
|
;; bcrypt and argon2-cffi are extra requirements not yet in guix
|
2016-08-22 13:31:36 +02:00
|
|
|
|
;;("python-argon2-cffi" ,python-argon2-cffi) ; >= 16.1.0
|
|
|
|
|
;;("python-bcrypt" ,python-bcrypt) ; not py-bcrypt!
|
2016-09-15 22:07:29 +02:00
|
|
|
|
;; Remaining packages are test requirements taken from
|
|
|
|
|
;; tests/requirements/py3.txt
|
2016-08-22 13:31:36 +02:00
|
|
|
|
("python-docutils" ,python-docutils)
|
|
|
|
|
;; optional for tests: ("python-geoip2" ,python-geoip2)
|
|
|
|
|
("python-jinja2" ,python-jinja2) ; >= 2.7
|
|
|
|
|
;; optional for tests: ("python-memcached" ,python-memcached)
|
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
|
("python-pillow" ,python-pillow)
|
|
|
|
|
("python-pyyaml" ,python-pyyaml)
|
|
|
|
|
("python-pytz" ,python-pytz)
|
|
|
|
|
;; optional for tests: ("python-selenium" ,python-selenium)
|
|
|
|
|
("python-sqlparse" ,python-sqlparse)
|
|
|
|
|
("python-tblib" ,python-tblib)))
|
|
|
|
|
(home-page "http://www.djangoproject.com/")
|
|
|
|
|
(synopsis "High-level Python Web framework")
|
|
|
|
|
(description
|
|
|
|
|
"Django is a high-level Python Web framework that encourages rapid
|
|
|
|
|
development and clean, pragmatic design. It provides many tools for building
|
|
|
|
|
any Web site. Django focuses on automating as much as possible and adhering
|
|
|
|
|
to the @dfn{don't repeat yourself} (DRY) principle.")
|
|
|
|
|
(license license:bsd-3)
|
2017-04-04 18:30:52 +02:00
|
|
|
|
(properties `((python2-variant . ,(delay python2-django))
|
|
|
|
|
(cpe-name . "django")))))
|
2016-08-22 13:31:36 +02:00
|
|
|
|
|
|
|
|
|
(define-public python2-django
|
|
|
|
|
(let ((base (package-with-python2 (strip-python2-variant python-django))))
|
|
|
|
|
(package
|
|
|
|
|
(inherit base)
|
2016-09-15 22:07:29 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(;; Test requirements for Python 2 taken from
|
|
|
|
|
;; tests/requirements/py3.txt: enum34 and mock.
|
2016-08-22 13:31:36 +02:00
|
|
|
|
("python2-enum34" ,python2-enum34)
|
|
|
|
|
("python2-mock" ,python2-mock)
|
|
|
|
|
;; When adding memcached mind: for Python 2 memcached <= 1.53 is
|
|
|
|
|
;; required.
|
2016-09-22 21:04:05 +02:00
|
|
|
|
,@(package-native-inputs base))))))
|
2016-08-22 13:31:37 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-simple-math-captcha
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-simple-math-captcha")
|
|
|
|
|
(version "1.0.7")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-simple-math-captcha" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0906hms6y6znjhpd0g4wmzv9vcla4brkdpsm4zha9zdj8g5vq2hd"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-12-14 12:40:13 +01:00
|
|
|
|
(arguments
|
|
|
|
|
;; FIXME: Upstream uses a 'runtests.py' script that is not
|
|
|
|
|
;; present in the pypi tarball.
|
|
|
|
|
'(#:tests? #f))
|
2016-08-22 13:31:37 +02:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/alsoicode/django-simple-math-captcha")
|
|
|
|
|
(synopsis "Easy-to-use math field/widget captcha for Django forms")
|
|
|
|
|
(description
|
|
|
|
|
"A multi-value-field that presents a human answerable question,
|
|
|
|
|
with no settings.py configuration necessary, but instead can be configured
|
|
|
|
|
with arguments to the field constructor.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-simple-math-captcha
|
|
|
|
|
(package-with-python2 python-django-simple-math-captcha))
|
2016-09-11 20:30:55 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-pytest-django
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pytest-django")
|
|
|
|
|
(version "2.9.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "pytest-django" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1mmc7zsz3dlhs6sx4sppkj1vgshabi362r1a8b8wpj1qfximpqcb"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2016-12-15 18:19:34 +01:00
|
|
|
|
`(#:tests? #f ; FIXME: How to run tests?
|
|
|
|
|
#:phases
|
2016-09-11 20:30:55 +02:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-setuppy
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("setuptools_scm==1.8.0") "setuptools_scm"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
2016-10-27 21:27:31 +02:00
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-setuptools-scm" ,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 13:33:43 +02:00
|
|
|
|
(propagated-inputs
|
2016-10-23 22:22:34 +02:00
|
|
|
|
`(("python-pytest" ,python-pytest)))
|
2016-09-11 20:30:55 +02:00
|
|
|
|
(home-page "http://pytest-django.readthedocs.org/")
|
|
|
|
|
(synopsis "Django plugin for py.test")
|
|
|
|
|
(description "Pytest-django is a plugin for py.test that provides a set of
|
|
|
|
|
useful tools for testing Django applications and projects.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-pytest-django
|
gnu: Remove python-setuptools and python2-setuptools from inputs (part 4a)
This patch contains the changes for all modules beside python.scm where
setuptools are used in an inherited package and removing this input also
removes the need for inheriting the package. This is the case if adding
setuptools in the inherited package was the only change.
Change this to not inherit and remove the new needless call to
"strip-python2-variant (if applicable).
* gnu/packages/bioinformatics.scm (python-biopython, python2-biopython,
python-twobitreader, python2-twobitreader,
python-plastid, python2-plastid,
python2-pybigwig,
python2-screed,
sra-tools): No longer "inherit" Python 2 packages
inheriting from a Python 3 package if the sole reason for inheriting was
adding python-setuptools respective python2-setuptools to [inputs],
[native-inputs] or [propagated-inputs]. Remove now needless [properties]
"python2-variant" where applicable.
* gnu/packages/django.scm (python-pytest-django, python2-pytest-django,
python-django-filter, python2-django-filter): Likewise.
* gnu/packages/gnupg.scm (python2-pygpgme): Likewise.
* gnu/packages/mail.scm (python-mailmanclient, python2-mailmanclient):
Likewise.
* gnu/packages/mpd.scm (python-msp, python2-mpd2): Likewise.
* gnu/packages/music.scm (python-pylast, python2-pylast): Likewise.
* gnu/packages/openstack.scm (python-requests-mock, python2-requests-mock,
python2-git-review): Likewise.
* gnu/packages/password-utils.scm (python2-bcrypt): Likewise.
* gnu/packages/protobuf.scm (python-protobuf, python2-protobuf): Likewise.
* gnu/packages/statistics.scm (python-patsy, python2-patsy): Likewise.
* gnu/packages/web.scm (python2-feedparser): Likewise.
2016-09-28 13:57:21 +02:00
|
|
|
|
(package-with-python2 python-pytest-django))
|
2016-09-11 20:31:44 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-filter
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-filter")
|
|
|
|
|
(version "0.14.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-filter" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0f78hmk8c903zwfzlsiw7ivgag81ymmb5hi73rzxbhnlg2v0l3fx"))))
|
|
|
|
|
(build-system python-build-system)
|
2016-12-14 12:43:36 +01:00
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "python" "runtests.py")))))))
|
2016-10-27 21:18:30 +02:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-mock" ,python-mock)))
|
2016-09-11 20:31:44 +02:00
|
|
|
|
(home-page "https://django-filter.readthedocs.io/en/latest/")
|
|
|
|
|
(synopsis "Reusable Django application to filter querysets dynamically")
|
|
|
|
|
(description
|
|
|
|
|
"Django-filter is a generic, reusable application to alleviate writing
|
|
|
|
|
some of the more mundane bits of view code. Specifically, it allows users to
|
|
|
|
|
filter down a queryset based on a model’s fields, displaying the form to let
|
|
|
|
|
them do this.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-filter
|
gnu: Remove python-setuptools and python2-setuptools from inputs (part 4a)
This patch contains the changes for all modules beside python.scm where
setuptools are used in an inherited package and removing this input also
removes the need for inheriting the package. This is the case if adding
setuptools in the inherited package was the only change.
Change this to not inherit and remove the new needless call to
"strip-python2-variant (if applicable).
* gnu/packages/bioinformatics.scm (python-biopython, python2-biopython,
python-twobitreader, python2-twobitreader,
python-plastid, python2-plastid,
python2-pybigwig,
python2-screed,
sra-tools): No longer "inherit" Python 2 packages
inheriting from a Python 3 package if the sole reason for inheriting was
adding python-setuptools respective python2-setuptools to [inputs],
[native-inputs] or [propagated-inputs]. Remove now needless [properties]
"python2-variant" where applicable.
* gnu/packages/django.scm (python-pytest-django, python2-pytest-django,
python-django-filter, python2-django-filter): Likewise.
* gnu/packages/gnupg.scm (python2-pygpgme): Likewise.
* gnu/packages/mail.scm (python-mailmanclient, python2-mailmanclient):
Likewise.
* gnu/packages/mpd.scm (python-msp, python2-mpd2): Likewise.
* gnu/packages/music.scm (python-pylast, python2-pylast): Likewise.
* gnu/packages/openstack.scm (python-requests-mock, python2-requests-mock,
python2-git-review): Likewise.
* gnu/packages/password-utils.scm (python2-bcrypt): Likewise.
* gnu/packages/protobuf.scm (python-protobuf, python2-protobuf): Likewise.
* gnu/packages/statistics.scm (python-patsy, python2-patsy): Likewise.
* gnu/packages/web.scm (python2-feedparser): Likewise.
2016-09-28 13:57:21 +02:00
|
|
|
|
(package-with-python2 python-django-filter))
|
2017-02-15 11:09:24 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-django-allauth
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-allauth")
|
|
|
|
|
(version "0.30.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-allauth" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1fslqc5qqb0b66yscvkyjwfv8cnbfx5nlkpnwimyb3pf1nc1w7r3"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-openid" ,python-openid)
|
|
|
|
|
("python-requests" ,python-requests)
|
|
|
|
|
("python-requests-oauthlib" ,python-requests-oauthlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-mock" ,python-mock)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/pennersr/django-allauth")
|
|
|
|
|
(synopsis "Set of Django applications addressing authentication")
|
|
|
|
|
(description
|
|
|
|
|
"Integrated set of Django applications addressing authentication,
|
|
|
|
|
registration, account management as well as 3rd party (social)
|
|
|
|
|
account authentication.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-allauth
|
|
|
|
|
(package-with-python2 python-django-allauth))
|
2017-02-15 11:09:25 +01:00
|
|
|
|
|
|
|
|
|
(define-public python-django-gravatar2
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-gravatar2")
|
|
|
|
|
(version "1.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-gravatar2" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1v4qyj6kms321yw0z2g1kch6b2dskmv6fjd6sfxzwr4xshq9mccl"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/twaddington/django-gravatar")
|
|
|
|
|
(synopsis "Gravatar support for Django, improved version")
|
|
|
|
|
(description
|
|
|
|
|
"Essential Gravatar support for Django. Features helper methods,
|
|
|
|
|
templatetags and a full test suite.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-gravatar2
|
|
|
|
|
(package-with-python2 python-django-gravatar2))
|
2017-04-22 18:16:07 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-assets
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-assets")
|
|
|
|
|
(version "0.12")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-assets" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0y0007fvkn1rdlj2g0y6k1cnkx53kxab3g8i85i0rd58k335p365"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(begin
|
|
|
|
|
;; https://github.com/miracle2k/django-assets/issues/87
|
|
|
|
|
(substitute* "tests/__init__.py"
|
|
|
|
|
(("settings.configure.*")
|
|
|
|
|
(string-append
|
|
|
|
|
"settings.configure(\n"
|
|
|
|
|
"INSTALLED_APPS=['django_assets', "
|
|
|
|
|
"'django.contrib.staticfiles'],\n"
|
|
|
|
|
"TEMPLATES=[{'BACKEND': "
|
|
|
|
|
"'django.template.backends.django.DjangoTemplates'}],\n"
|
|
|
|
|
")\n")))
|
|
|
|
|
;; These tests fail
|
|
|
|
|
(substitute* "tests/test_django.py"
|
|
|
|
|
(("TestLoader") "NoTestLoader"))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-nose" ,python-nose)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-webassets" ,python-webassets)))
|
|
|
|
|
(home-page "https://github.com/miracle2k/django-assets")
|
|
|
|
|
(synopsis "Asset management for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Asset management for Django, to compress and merge CSS and Javascript
|
|
|
|
|
files. Integrates the webassets library with Django, adding support for
|
|
|
|
|
merging, minifying and compiling CSS and Javascript files.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-assets
|
|
|
|
|
(package-with-python2 python-django-assets))
|
2017-04-22 18:18:30 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-jsonfield
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-jsonfield")
|
|
|
|
|
(version "1.0.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "jsonfield" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"19x4lak0hg9c20r7mvf27w7i8r6i4sg2g0ypmlmp2665fnk76zvy"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'fix-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "jsonfield/tests.py"
|
|
|
|
|
(("django.forms.util") "django.forms.utils")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/bradjasper/django-jsonfield")
|
|
|
|
|
(synopsis "Store validated JSON in your model")
|
|
|
|
|
(description
|
|
|
|
|
"Django-jsonfield is a reusable Django field that allows you to store
|
|
|
|
|
validated JSON in your model. It silently takes care of serialization. To
|
|
|
|
|
use, simply add the field to one of your models.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-jsonfield
|
|
|
|
|
(package-with-python2 python-django-jsonfield))
|
2017-04-22 18:28:37 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-dj-database-url
|
|
|
|
|
(package
|
|
|
|
|
(name "python-dj-database-url")
|
|
|
|
|
(version "0.4.2")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "dj-database-url" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"024zbkc5rli4hia9lz9g8kf1zxhb2gwawj5abf67i7gf8n22v0x6"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(home-page "https://github.com/kennethreitz/dj-database-url")
|
|
|
|
|
(synopsis "Use Database URLs in your Django Application")
|
|
|
|
|
(description
|
|
|
|
|
"This simple Django utility allows you to utilize the 12factor inspired
|
|
|
|
|
DATABASE_URL environment variable to configure your Django application.
|
|
|
|
|
|
|
|
|
|
The dj_database_url.config method returns a Django database connection
|
|
|
|
|
dictionary, populated with all the data specified in your URL. There is also a
|
|
|
|
|
conn_max_age argument to easily enable Django’s connection pool.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-dj-database-url
|
|
|
|
|
(package-with-python2 python-dj-database-url))
|
2017-04-23 13:31:08 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-bulk-update
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-bulk-update")
|
|
|
|
|
(version "1.1.10")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-bulk-update" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0mbng9m7swfc0dnidipbzlxfhlfjrv755dlnha5s4m9mgdxb1fhc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; tests don't support django 1.10, but the module seems to work.
|
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("six" ,python-six)
|
|
|
|
|
("jsonfield" ,python-django-jsonfield)
|
|
|
|
|
("python-dj-database-url" ,python-dj-database-url)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/aykut/django-bulk-update")
|
|
|
|
|
(synopsis "Simple bulk update over Django ORM or with helper function")
|
|
|
|
|
(description
|
|
|
|
|
"Simple bulk update over Django ORM or with helper function. This
|
|
|
|
|
project aims to bulk update given objects using one query over Django ORM.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-bulk-update
|
|
|
|
|
(package-with-python2 python-django-bulk-update))
|
2017-04-22 18:51:24 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-contact-form
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-contact-form")
|
|
|
|
|
(version "1.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-contact-form" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0az590y56k5ahv4sixrkn54d3a8ig2q2z9pl6s3m4f533mx2gj17"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
;; the next version will need "make test"
|
|
|
|
|
(and (zero? (system* "flake8" "contact_form"))
|
|
|
|
|
(zero? (system* "coverage" "run" "contact_form/runtests.py"))
|
|
|
|
|
(zero? (system* "coverage" "report" "-m" "--fail-under" "0"))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-coverage" ,python-coverage)
|
|
|
|
|
("python-flake8" ,python-flake8)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/ubernostrum/django-contact-form")
|
|
|
|
|
(synopsis "Contact form for Django")
|
|
|
|
|
(description
|
|
|
|
|
"This application provides simple, extensible contact-form functionality
|
|
|
|
|
for Django sites.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-contact-form
|
|
|
|
|
(package-with-python2 python-django-contact-form))
|
2017-04-22 19:01:33 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-contrib-comments
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-contrib-comments")
|
|
|
|
|
(version "1.8.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-contrib-comments" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0bxsgw8jrkhg6r5s0z6ksfi4w8yknaqb1s9acmxd9pm3pnsnp5kx"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/django/django-contrib-comments")
|
|
|
|
|
(synopsis "Comments framework")
|
|
|
|
|
(description
|
|
|
|
|
"Django used to include a comments framework; since Django 1.6 it's been
|
|
|
|
|
separated to a separate project. This is that project. This framework can be
|
|
|
|
|
used to attach comments to any model, so you can use it for comments on blog
|
|
|
|
|
entries, photos, book chapters, or anything else.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-contrib-comments
|
|
|
|
|
(package-with-python2 python-django-contrib-comments))
|
2017-04-22 19:08:11 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-overextends
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-overextends")
|
|
|
|
|
(version "0.4.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-overextends" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0qc2pcf3i56pmfxh2jw7k3pgljd8xzficmkl2541n7bkcbngqfzm"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(zero? (system* "./test_project/manage.py" "test")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("sphinx-me" ,python-sphinx-me)))
|
|
|
|
|
(home-page "https://github.com/stephenmcd/django-overextends")
|
|
|
|
|
(synopsis "Circular template inheritance")
|
|
|
|
|
(description
|
|
|
|
|
"A Django reusable app providing the overextends template tag, a drop-in
|
|
|
|
|
replacement for Django's extends tag, which allows you to use circular template
|
|
|
|
|
inheritance. The primary use-case for overextends is to simultaneously
|
|
|
|
|
override and extend templates from other reusable apps, in your own Django
|
|
|
|
|
project.")
|
|
|
|
|
(license license:bsd-2)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-overextends
|
|
|
|
|
(package-with-python2 python-django-overextends))
|
2017-04-23 16:54:53 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-redis
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-redis")
|
|
|
|
|
(version "4.7.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-redis" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0yyyxv8n9l9dhs893jsqwg2cxqkkc79g719n9dzzzqgkzialv1c1"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(and (zero? (system* "redis-server" "--daemonize" "yes"))
|
|
|
|
|
(with-directory-excursion "tests"
|
|
|
|
|
(zero? (system* "python" "runtests.py")))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-fakeredis" ,python-fakeredis)
|
|
|
|
|
("python-hiredis" ,python-hiredis)
|
|
|
|
|
("python-mock" ,python-mock)
|
|
|
|
|
("python-msgpack" ,python-msgpack)
|
|
|
|
|
("redis" ,redis)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-redis" ,python-redis)))
|
|
|
|
|
(home-page "https://github.com/niwibe/django-redis")
|
|
|
|
|
(synopsis "Full featured redis cache backend for Django")
|
|
|
|
|
(description
|
|
|
|
|
"Full featured redis cache backend for Django.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-redis
|
|
|
|
|
(package-with-python2 python-django-redis))
|
2017-04-22 19:14:03 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-rq
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-rq")
|
|
|
|
|
(version "0.9.4")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-rq" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"04v8ilfdp10bk31fxgh4cn083gsn5m06342cnpm5d10nd8hc0vky"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda _
|
|
|
|
|
(and (zero? (system* "redis-server" "--daemonize" "yes"))
|
|
|
|
|
(zero? (system* "django-admin.py" "test" "django_rq"
|
|
|
|
|
"--settings=django_rq.test_settings"
|
|
|
|
|
"--pythonpath="))))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("redis" ,redis)))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)
|
|
|
|
|
("python-rq" ,python-rq)))
|
|
|
|
|
(home-page "https://github.com/ui/django-rq")
|
|
|
|
|
(synopsis "Django integration with RQ")
|
|
|
|
|
(description
|
|
|
|
|
"Django integration with RQ, a Redis based Python queuing library.
|
|
|
|
|
Django-RQ is a simple app that allows you to configure your queues in django's
|
|
|
|
|
settings.py and easily use them in your project.")
|
|
|
|
|
(license license:expat)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-rq
|
|
|
|
|
(package-with-python2 python-django-rq))
|
2017-04-22 19:18:02 +02:00
|
|
|
|
|
|
|
|
|
(define-public python-django-sortedm2m
|
|
|
|
|
(package
|
|
|
|
|
(name "python-django-sortedm2m")
|
|
|
|
|
(version "1.3.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "django-sortedm2m" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0axf765i7b3c2s83nlph47asi8s071dhq8l7y382v1pw785s22vi"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
;; no tests.
|
|
|
|
|
`(#:tests? #f))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-django" ,python-django)))
|
|
|
|
|
(home-page "https://github.com/gregmuellegger/django-sortedm2m")
|
|
|
|
|
(synopsis "Drop-in replacement for django's own ManyToManyField")
|
|
|
|
|
(description
|
|
|
|
|
"Sortedm2m is a drop-in replacement for django's own ManyToManyField.
|
|
|
|
|
The provided SortedManyToManyField behaves like the original one but remembers
|
|
|
|
|
the order of added relations.")
|
|
|
|
|
(license license:bsd-3)))
|
|
|
|
|
|
|
|
|
|
(define-public python2-django-sortedm2m
|
|
|
|
|
(package-with-python2 python-django-sortedm2m))
|