* [PATCH 0/2] Python Django Framework
@ 2016-04-12 20:32 Hartmut Goebel
2016-04-12 20:32 ` [PATCH 1/2] gnu: add python-django Hartmut Goebel
2016-04-12 20:32 ` [PATCH 2/2] gnu: add python-django-simple-math-captcha Hartmut Goebel
0 siblings, 2 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-04-12 20:32 UTC (permalink / raw)
To: guix-devel
Hi,
this is my first contribution to Guix.
Thanks to the developers for bringing up the fine software and to the guys at
#guix (esp. davexunit) for the help.
Please let me know if there is something I can enhance for my next
contributions.
Hartmut Goebel (2):
gnu: add python-django
gnu: add python-django-simple-math-captcha
gnu-system.am | 1 +
gnu/packages/django.scm | 83 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+)
create mode 100644 gnu/packages/django.scm
--
2.7.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] gnu: add python-django
2016-04-12 20:32 [PATCH 0/2] Python Django Framework Hartmut Goebel
@ 2016-04-12 20:32 ` Hartmut Goebel
2016-04-15 21:52 ` Ludovic Courtès
2016-04-12 20:32 ` [PATCH 2/2] gnu: add python-django-simple-math-captcha Hartmut Goebel
1 sibling, 1 reply; 7+ messages in thread
From: Hartmut Goebel @ 2016-04-12 20:32 UTC (permalink / raw)
To: guix-devel
* gnu/packages/django.scm: New file.
* gnu-system.am: Add it.
---
gnu-system.am | 1 +
gnu/packages/django.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 61 insertions(+)
create mode 100644 gnu/packages/django.scm
diff --git a/gnu-system.am b/gnu-system.am
index 8822d0b..09acb64 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -90,6 +90,7 @@ GNU_SYSTEM_MODULES = \
gnu/packages/dico.scm \
gnu/packages/dictionaries.scm \
gnu/packages/disk.scm \
+ gnu/packages/django.scm \
gnu/packages/djvu.scm \
gnu/packages/dns.scm \
gnu/packages/docbook.scm \
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
new file mode 100644
index 0000000..c22830e
--- /dev/null
+++ b/gnu/packages/django.scm
@@ -0,0 +1,60 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;;
+;;; 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 python)
+)
+
+
+(define-public python-django
+(package
+ (name "python-django")
+ (version "1.9.5")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "Django" version))
+ (sha256
+ (base32
+ "19kaw9flk9jjz1n7q378waybxnkrrhkq240lby4zaaas62nnfip5"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (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.
+
+Developed and used over the past two years by a fast-moving
+online-news operation, Django was designed from scratch to handle two
+challenges: the intensive deadlines of a newsroom and the stringent
+requirements of experienced Web developers. It has convenient niceties
+for developing content-management systems, but it's an excellent tool
+for building any Web site.
+
+Django focuses on automating as much as possible and adhering to the
+DRY principle.")
+ (license license:bsd-3)))
+
+
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] gnu: add python-django
2016-04-12 20:32 ` [PATCH 1/2] gnu: add python-django Hartmut Goebel
@ 2016-04-15 21:52 ` Ludovic Courtès
2016-04-16 9:13 ` Hartmut Goebel
0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2016-04-15 21:52 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:
> * gnu/packages/django.scm: New file.
> * gnu-system.am: Add it.
Neat!
I fixed a couple of minor issues (formatting, etc.) leading to this
patch:
[-- Attachment #2: 0001-gnu-Add-python-django.patch --]
[-- Type: text/x-patch, Size: 3468 bytes --]
From 0d4ad143f542ffa125923edfcddfff2ca120c7aa Mon Sep 17 00:00:00 2001
From: Hartmut Goebel <h.goebel@crazy-compilers.com>
Date: Tue, 12 Apr 2016 22:32:29 +0200
Subject: [PATCH] gnu: Add python-django.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* gnu/packages/django.scm: New file.
* gnu-system.am: Add it.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu-system.am | 1 +
gnu/packages/django.scm | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 55 insertions(+)
create mode 100644 gnu/packages/django.scm
diff --git a/gnu-system.am b/gnu-system.am
index 0165519..be07a9f 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -91,6 +91,7 @@ GNU_SYSTEM_MODULES = \
gnu/packages/dico.scm \
gnu/packages/dictionaries.scm \
gnu/packages/disk.scm \
+ gnu/packages/django.scm \
gnu/packages/djvu.scm \
gnu/packages/dns.scm \
gnu/packages/docbook.scm \
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
new file mode 100644
index 0000000..890ae37
--- /dev/null
+++ b/gnu/packages/django.scm
@@ -0,0 +1,54 @@
+;;; GNU Guix --- Functional package management for GNU
+;;; Copyright © 2016 Hartmut Goebel <h.goebel@crazy-compilers.com>
+;;;
+;;; 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 python))
+
+(define-public python-django
+ (package
+ (name "python-django")
+ (version "1.9.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "Django" version))
+ (sha256
+ (base32
+ "19kaw9flk9jjz1n7q378waybxnkrrhkq240lby4zaaas62nnfip5"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (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.
+
+Developed and used over the past two years by a fast-moving online-news
+operation, Django was designed from scratch to handle two challenges: the
+intensive deadlines of a newsroom and the stringent requirements of
+experienced Web developers. It has convenient niceties for developing
+content-management systems, but it's an excellent tool for building any Web
+site.
+
+Django focuses on automating as much as possible and adhering to the
+DRY principle.")
+ (license license:bsd-3)))
--
2.7.3
[-- Attachment #3: Type: text/plain, Size: 560 bytes --]
However, the test suite is evidently not run:
--8<---------------cut here---------------start------------->8---
starting phase `check'
running "python setup.py" with command "test" and parameters ()
running test
phase `check' succeeded after 1.0 seconds
--8<---------------cut here---------------end--------------->8---
Could you check what it takes to run it?
Also, based on our discussion on IRC, could you add a “python2-django”
package, using ‘package-with-python2’ (see examples in python.scm)?
Thanks in advance!
Ludo’.
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] gnu: add python-django
2016-04-15 21:52 ` Ludovic Courtès
@ 2016-04-16 9:13 ` Hartmut Goebel
0 siblings, 0 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-04-16 9:13 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
Am 15.04.2016 um 23:52 schrieb Ludovic Courtès:
> Could you check what it takes to run it?
I'll take care of it. Fixing this will take some time, since djangos
test-suite requires 7 python packages which are not yet in guix.
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] gnu: add python-django-simple-math-captcha
2016-04-12 20:32 [PATCH 0/2] Python Django Framework Hartmut Goebel
2016-04-12 20:32 ` [PATCH 1/2] gnu: add python-django Hartmut Goebel
@ 2016-04-12 20:32 ` Hartmut Goebel
1 sibling, 0 replies; 7+ messages in thread
From: Hartmut Goebel @ 2016-04-12 20:32 UTC (permalink / raw)
To: guix-devel
* gnu/packages/django.scm: (python-django-simple-math-captcha) New
function.
---
gnu/packages/django.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index c22830e..12e2bb1 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -58,3 +58,26 @@ DRY principle.")
(license license:bsd-3)))
+(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)
+ (inputs
+ `(("python-django" ,python-django)
+ ("python-setuptools" ,python-setuptools)))
+ (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)))
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 0/2] Django framework
@ 2016-08-22 11:31 Hartmut Goebel
2016-08-22 11:31 ` [PATCH 2/2] gnu: add python-django-simple-math-captcha Hartmut Goebel
0 siblings, 1 reply; 7+ messages in thread
From: Hartmut Goebel @ 2016-08-22 11:31 UTC (permalink / raw)
To: guix-devel
Hi,
these patches add Django, a Python web framework.
I've put this into a file by it's own, since PyPI has a lot of django-related
packages. (We also have a file for rails, which is a ruby framework.)
Hartmut Goebel (1):
gnu: add python-django-simple-math-captcha
gnu: add python-django.
gnu/local.mk | 1 +
gnu/packages/django.scm | 138 +++++++++++++++++++++
.../patches/python-django-fix-testcase.patch | 42 +++++++
3 files changed, 181 insertions(+)
create mode 100644 gnu/packages/django.scm
create mode 100644 gnu/packages/patches/python-django-fix-testcase.patch
--
2.7.4
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] gnu: add python-django-simple-math-captcha
2016-08-22 11:31 [PATCH 0/2] Django framework Hartmut Goebel
@ 2016-08-22 11:31 ` Hartmut Goebel
2016-09-12 13:31 ` Ludovic Courtès
0 siblings, 1 reply; 7+ messages in thread
From: Hartmut Goebel @ 2016-08-22 11:31 UTC (permalink / raw)
To: guix-devel
* gnu/packages/django.scm: (python-django-simple-math-captcha,
python2-django-simple-math-captcha) New variables.
---
gnu/packages/django.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index ec3f25f..7e910da 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -108,3 +108,31 @@ DRY principle.")
("python2-mock" ,python2-mock)
; when adding memcached mind: for Python 2 memcached <= 1.53 is required
,@(package-native-inputs base))))))
+
+(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)
+ (inputs
+ `(("python-django" ,python-django)))
+ (native-inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (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)
+ (properties `((python2-variant . ,(delay python2-django-simple-math-captcha))))))
+
+(define-public python2-django-simple-math-captcha
+ (package-with-python2 (strip-python2-variant python-django-simple-math-captcha)))
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-09-12 13:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 20:32 [PATCH 0/2] Python Django Framework Hartmut Goebel
2016-04-12 20:32 ` [PATCH 1/2] gnu: add python-django Hartmut Goebel
2016-04-15 21:52 ` Ludovic Courtès
2016-04-16 9:13 ` Hartmut Goebel
2016-04-12 20:32 ` [PATCH 2/2] gnu: add python-django-simple-math-captcha Hartmut Goebel
-- strict thread matches above, loose matches on Subject: below --
2016-08-22 11:31 [PATCH 0/2] Django framework Hartmut Goebel
2016-08-22 11:31 ` [PATCH 2/2] gnu: add python-django-simple-math-captcha Hartmut Goebel
2016-09-12 13:31 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).