unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#29742] [PATCH] gnu: Add mod-wsgi.
@ 2017-12-16 20:29 Christopher Baines
  2017-12-17 16:15 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Baines @ 2017-12-16 20:29 UTC (permalink / raw)
  To: 29742

* 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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#29742] [PATCH] gnu: Add mod-wsgi.
  2017-12-16 20:29 [bug#29742] [PATCH] gnu: Add mod-wsgi Christopher Baines
@ 2017-12-17 16:15 ` Ludovic Courtès
  2017-12-17 20:56   ` bug#29742: " Christopher Baines
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-12-17 16:15 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 29742

Christopher Baines <mail@cbaines.net> 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!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#29742: [PATCH] gnu: Add mod-wsgi.
  2017-12-17 16:15 ` Ludovic Courtès
@ 2017-12-17 20:56   ` Christopher Baines
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Baines @ 2017-12-17 20:56 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 29742-done

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]


Ludovic Courtès <ludo@gnu.org> writes:

> Christopher Baines <mail@cbaines.net> 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 :)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-17 20:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-16 20:29 [bug#29742] [PATCH] gnu: Add mod-wsgi Christopher Baines
2017-12-17 16:15 ` Ludovic Courtès
2017-12-17 20:56   ` bug#29742: " Christopher Baines

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).