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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 75f5fba..af6ab2f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12387,3 +12387,44 @@ fullscreen terminal rendering, and keyboard input 
event reporting. ")
 
 (define-public python2-curtsies-0.1
   (package-with-python2 python-curtsies-0.1))
+
+(define-public python-bpython
+  (package
+    (name "bpython")
+    (version "0.16")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "bpython" version))
+        (sha256
+          (base32
+           "0pv5dy84idh0l8kxy01ipkpxrf9kcfb7h5q16gqxg2mx0bvdvwzs"))
+        (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-pygments" ,python-pygments)
+       ("python-requests", python-requests)
+       ("python-babel" ,python-babel) ;; optional, for internationalization
+       ("python-curtsies" ,python-curtsies-0.1) ;; >= 0.1.18,< 0.2
+       ("python-greenlet" ,python-greenlet)
+       ("python-urwid" ,python-urwid))) ;; for bpython-urwid only
+    (native-inputs
+     `(("python-sphinx" ,python-sphinx)
+       ("python-mock" ,python-mock)))
+    (home-page "https://bpython-interpreter.org/";)
+    (synopsis "Fancy interface to the Python interpreter")
+    (description "bpython's main features are
+@enumerate
+@item in-line syntax highlighting,
+@item readline-like autocomplete with suggestions displayed as you type,
+@item expected parameter list for any Python function,
+@item \"rewind\" function to pop the last line of code from memory and
+      re-evaluate,
+@item send the code you've entered off to a pastebin,
+@item save the code you've entered to a file, and
+@item auto-indentation.
+@end enumerate")
+    (license license:expat)))
+
+(define-public python2-bpython
+  (package-with-python2 python-bpython))
-- 
2.7.4


Reply via email to