Subject: bug#29742: closed (Re: [bug#29742] [PATCH] gnu: Add mod-wsgi.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 17 Dec 2017 20:57:03 +0000

Your bug report

#29742: [PATCH] gnu: Add mod-wsgi.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
29742: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29742
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#29742] [PATCH] gnu: Add mod-wsgi.
From: Christopher Baines <[email-masked]>
To: Ludovic Courtès <[email-masked]>
Cc: [email-masked]
Date: Sun, 17 Dec 2017 20:56:12 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès <[email-masked]> writes:

> Christopher Baines <[email-masked]> skribis:
>
>> * gnu/packages/web.scm (mod-wsgi): New variable.
>
> [...]
>
>> +    (arguments
>> +     '(#:tests? #f ;; TODO: Can't figure out if there are tests
>
> That’s OK at a first stab at least.  :-)
>
>> +    (synopsis "Apache module for applications using the Python WSGI
>> +specification")
>
> s/Apache/Apache httpd/
>
> and maybe “for …” → “for Python WSGI applications”
>
>> +    (description
>> +     "The mod_wsgi module for the Apache @acronym{HTTP, HyperText Transfer
>> +Protocol} Server adds support for running applications that support the Python
>
> I’d just write “for Apache httpd”.
>
> Otherwise LGTM, thanks!

Great, I've made these changes and pushed. Thanks for reviewing :)

Subject: [PATCH] gnu: Add mod-wsgi.
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Sat, 16 Dec 2017 20:29:11 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/web.scm (mod-wsgi): New variable.
---
 gnu/packages/web.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index eb0436cb3..9cda0f3e0 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -145,6 +145,37 @@ and its related documentation.")
     (license l:asl2.0)
     (home-page "https://httpd.apache.org/")))
 
+(define-public mod-wsgi
+  (package
+    (name "mod-wsgi")
+    (version "4.5.22")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/GrahamDumpleton/mod_wsgi/archive/"
+                    version ".tar.gz"))
+              (sha256
+               (base32
+                "0n1yhmrfp8mjbsngmyjl937c6rc0069p6wdi1lknrbn1q42hzw6q"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:tests? #f ;; TODO: Can't figure out if there are tests
+       #:make-flags (list
+                     (string-append "DESTDIR="
+                                    (assoc-ref %outputs "out"))
+                     "LIBEXECDIR=/modules")))
+    (inputs
+     `(("httpd" ,httpd)
+       ("python" ,python-wrapper)))
+    (synopsis "Apache module for applications using the Python WSGI
+specification")
+    (description
+     "The mod_wsgi module for the Apache @acronym{HTTP, HyperText Transfer
+Protocol} Server adds support for running applications that support the Python
+@acronym{WSGI, Web Server Gateway Interface} specification.")
+    (license l:asl2.0)
+    (home-page "https://modwsgi.readthedocs.io/")))
+
 (define-public nginx
   (package
     (name "nginx")
-- 
2.14.1