unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 2/2] gnu: Add python-pastescript.
@ 2016-02-23 20:03 Christopher Allan Webber
  2016-02-25  1:23 ` Leo Famulari
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Allan Webber @ 2016-02-23 20:03 UTC (permalink / raw)
  To: guix-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0002-gnu-Add-python-pastescript.patch --]
[-- Type: text/x-patch, Size: 2251 bytes --]

From ae1a49cced8a5cb021a801b7d062c941ea01a2d8 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Tue, 23 Feb 2016 11:57:15 -0800
Subject: [PATCH 2/2] gnu: Add python-pastescript.

* gnu/packages/python.scm (python-pastescript, python2-pastescript):
  New variables.
---
 gnu/packages/python.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9673037..7a8f94a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -7820,6 +7820,43 @@ follows ideas flowing from WSGI (Web Standard Gateway Interface).")
      `(#:python ,python-2
                 #:tests? #t))))
 
+(define-public python-pastescript
+  (package
+    (name "python-pastescript")
+    (version "2.0.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "PasteScript" version))
+       (sha256
+        (base32
+         "1h3nnhn45kf4pbcv669ik4faw04j58k8vbj1hwrc532k0nc28gy0"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-nose" ,python-nose)))
+    (propagated-inputs
+     `(;; Uses pkg_resources provided by setuptools internally.
+       ("python-setuptools" ,python-setuptools)
+       ("python-paste" ,python-paste)
+       ("python-pastedeploy" ,python-pastedeploy)))
+    (home-page "http://pythonpaste.org/script/")
+    (arguments
+     '(;; Unfortunately, this requires the latest unittest2,
+       ;; but that requires traceback2 which requires linecache2 which requires
+       ;; unittest2.  So we're skipping tests for now.
+       ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
+       ;; so in theory we could get around this situation somehow.) 
+       #:tests? #f))
+    (synopsis
+     "Pluggable command line tool for serving web applications and more")
+    (description
+     "PasteScript is an extensible  command line tool which provides a variety
+of features, from launching web applications to bootstrapping project layouts.")
+    (license license:expat)))
+
+(define-public python2-pastescript
+  (package-with-python2 python-pastescript))
+
 (define-public python-pyquery
   (package
     (name "python-pyquery")
-- 
2.6.3

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

* Re: [PATCH 2/2] gnu: Add python-pastescript.
  2016-02-23 20:03 [PATCH 2/2] gnu: Add python-pastescript Christopher Allan Webber
@ 2016-02-25  1:23 ` Leo Famulari
  2016-02-25 19:03   ` Christopher Allan Webber
  0 siblings, 1 reply; 3+ messages in thread
From: Leo Famulari @ 2016-02-25  1:23 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

On Tue, Feb 23, 2016 at 12:03:11PM -0800, Christopher Allan Webber wrote:
> * gnu/packages/python.scm (python-pastescript, python2-pastescript):
>   New variables.

[...]

> +     '(;; Unfortunately, this requires the latest unittest2,
> +       ;; but that requires traceback2 which requires linecache2 which requires
> +       ;; unittest2.  So we're skipping tests for now.
> +       ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
> +       ;; so in theory we could get around this situation somehow.) 
                                                                      ^
Trailing white space -------------------------------------------------|

> +       #:tests? #f))
> +    (synopsis
> +     "Pluggable command line tool for serving web applications and more")
> +    (description
> +     "PasteScript is an extensible  command line tool which provides a variety
> +of features, from launching web applications to bootstrapping project layouts.")

The first half of this sentence applies to most command-line tools ;)

Otherwise okay!

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

* Re: [PATCH 2/2] gnu: Add python-pastescript.
  2016-02-25  1:23 ` Leo Famulari
@ 2016-02-25 19:03   ` Christopher Allan Webber
  0 siblings, 0 replies; 3+ messages in thread
From: Christopher Allan Webber @ 2016-02-25 19:03 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel


Leo Famulari writes:

> On Tue, Feb 23, 2016 at 12:03:11PM -0800, Christopher Allan Webber wrote:
>> * gnu/packages/python.scm (python-pastescript, python2-pastescript):
>>   New variables.
>
> [...]
>
>> +     '(;; Unfortunately, this requires the latest unittest2,
>> +       ;; but that requires traceback2 which requires linecache2 which requires
>> +       ;; unittest2.  So we're skipping tests for now.
>> +       ;; (Note: Apparently linetest2 only needs unittest2 for its tests,
>> +       ;; so in theory we could get around this situation somehow.) 
>                                                                       ^
> Trailing white space -------------------------------------------------|

Oops!  Thanks.  (I should use whitespace-mode more often!)

>> +       #:tests? #f))
>> +    (synopsis
>> +     "Pluggable command line tool for serving web applications and more")
>> +    (description
>> +     "PasteScript is an extensible  command line tool which provides a variety
>> +of features, from launching web applications to bootstrapping project layouts.")
>
> The first half of this sentence applies to most command-line tools ;)
>
> Otherwise okay!

Fixed to be a bit more clear that "extensible" here refers to "plugins".

Thanks for the review.  Made those changes and pushed!

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

end of thread, other threads:[~2016-02-25 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 20:03 [PATCH 2/2] gnu: Add python-pastescript Christopher Allan Webber
2016-02-25  1:23 ` Leo Famulari
2016-02-25 19:03   ` Christopher Allan Webber

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