unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add ptpython, ptpython-2.
@ 2016-07-20  7:30 Danny Milosavljevic
  2016-07-20  8:47 ` Hartmut Goebel
  0 siblings, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2016-07-20  7:30 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (ptpython, ptpython-2): New variables.

Signed-off-by: Danny Milosavljevic <dannym+a@scratchpost.org>
---
 gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b9d61dd..2325c20 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9750,3 +9750,36 @@ characters, mouse support, and auto suggestions.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
          ,@(package-native-inputs base))))))
+
+(define-public ptpython
+  (package
+    (name "ptpython")
+    (version "0.34")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ptpython" version))
+        (sha256
+          (base32
+            "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
+    (build-system python-build-system)
+    (inputs
+      `(("python-docopt" ,python-docopt)
+        ("python-jedi" ,python-jedi)
+        ("python-prompt-toolkit" ,python-prompt-toolkit)
+        ("python-pygments" ,python-pygments)
+        ("python-setuptools" ,python-setuptools)))
+    (home-page
+      "https://github.com/jonathanslenders/ptpython")
+    (synopsis
+      "Python REPL build on top of prompt_toolkit")
+    (description
+      "ptpython is a Python REPL build on top of prompt_toolkit.")
+    (license bsd-3)
+    (properties `((python2-variant . ,(delay ptpython-2))))))
+
+(define-public ptpython-2
+  (let ((base (package-with-python2 (strip-python2-variant ptpython))))
+    (package
+      (inherit base)
+      (name "ptpython-2"))))

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

* Re: [PATCH] gnu: Add ptpython, ptpython-2.
  2016-07-20  7:30 [PATCH] gnu: Add ptpython, ptpython-2 Danny Milosavljevic
@ 2016-07-20  8:47 ` Hartmut Goebel
  2016-07-20  9:33   ` [PATCH v2] " Danny Milosavljevic
  0 siblings, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2016-07-20  8:47 UTC (permalink / raw)
  To: guix-devel

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

Am 20.07.2016 um 09:30 schrieb Danny Milosavljevic:
> +      "Python REPL build on top of prompt_toolkit")

I did not understand what is meant and had to search the internet for
"REPL". Please do not use this abbreviation, but expand it,

Also to description should be more verbose IMHO. As of now it is jsut a
repetition of the synopsis. I suggest listing some high-light features.

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/verschlusselte-mailingslisten
Kolumne:
http://www.cissp-gefluester.de/2011-09-kommerz-uber-recht-fdp-die-gefaellt-mir-partei



[-- Attachment #2: Type: text/html, Size: 2004 bytes --]

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

* [PATCH v2] gnu: Add ptpython, ptpython-2.
  2016-07-20  8:47 ` Hartmut Goebel
@ 2016-07-20  9:33   ` Danny Milosavljevic
  2016-07-22 13:11     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Danny Milosavljevic @ 2016-07-20  9:33 UTC (permalink / raw)
  To: guix-devel; +Cc: Hartmut Goebel

* gnu/packages/python.scm (ptpython, ptpython-2): New variables.

Signed-off-by: Danny Milosavljevic <dannym+a@scratchpost.org>
---
 gnu/packages/python.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b9d61dd..626ad51 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9750,3 +9750,38 @@ characters, mouse support, and auto suggestions.")
       (native-inputs
        `(("python2-setuptools" ,python2-setuptools)
          ,@(package-native-inputs base))))))
+
+(define-public ptpython
+  (package
+    (name "ptpython")
+    (version "0.34")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ptpython" version))
+        (sha256
+          (base32
+            "1mmbiyzf0n8hm7z2a562x7w5cbl6jc0zsk6vp40q1z4cyblv1k13"))))
+    (build-system python-build-system)
+    (inputs
+      `(("python-docopt" ,python-docopt)
+        ("python-jedi" ,python-jedi)
+        ("python-prompt-toolkit" ,python-prompt-toolkit)
+        ("python-pygments" ,python-pygments)
+        ("python-setuptools" ,python-setuptools)))
+    (home-page
+      "https://github.com/jonathanslenders/ptpython")
+    (synopsis
+      "Python Read-Eval-Print-Loop with nice IDE-like features")
+    (description
+      "ptpython is a Python Read-Eval-Print-Loop with IDE-like features. 
+It supports syntax highlighting, multiline editing, autocompletion, mouse,
+color schemes, bracketed paste, Vi and Emacs keybindings, Chinese characters etc.")
+    (license bsd-3)
+    (properties `((python2-variant . ,(delay ptpython-2))))))
+
+(define-public ptpython-2
+  (let ((base (package-with-python2 (strip-python2-variant ptpython))))
+    (package
+      (inherit base)
+      (name "ptpython-2"))))

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

* Re: [PATCH v2] gnu: Add ptpython, ptpython-2.
  2016-07-20  9:33   ` [PATCH v2] " Danny Milosavljevic
@ 2016-07-22 13:11     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2016-07-22 13:11 UTC (permalink / raw)
  To: Danny Milosavljevic; +Cc: guix-devel, Hartmut Goebel

Danny Milosavljevic <dannym+a@scratchpost.org> skribis:

> * gnu/packages/python.scm (ptpython, ptpython-2): New variables.

[...]

> +      (name "ptpython-2"))))

I changed this to “ptpython2” as discussed and applied with minor
indentation changes.

Thank you!

Ludo’.

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

end of thread, other threads:[~2016-07-22 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-20  7:30 [PATCH] gnu: Add ptpython, ptpython-2 Danny Milosavljevic
2016-07-20  8:47 ` Hartmut Goebel
2016-07-20  9:33   ` [PATCH v2] " Danny Milosavljevic
2016-07-22 13:11     ` 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).