Patchwork gnu: Add xonsh

login
register
mail settings
Submitter Stefan Reichör
Date Sept. 21, 2016, 8:01 p.m.
Message ID <87d1jxt42t.fsf@xsteve.at>
Download mbox | patch
Permalink /patch/15857/
State New
Headers show

Comments

Danny Milosavljevic - Sept. 21, 2016, 9:18 p.m.
Hi,

thanks for this package! With the recent how-did-anyone-think-that-was-a-good-idea in bash (again), this is very useful.

However, are you sure you want to have no inputs for xonsh?

I can see that it supports at least these:
- python-ply
- python-sphinx
- python-numpydoc
- python-prompt-toolkit

And maybe also these features (not that important):
- jupyter
- setproctitle
- distro
- Cloud
- Sphinx-Theme

What do you think?
Leo Famulari - Sept. 27, 2016, 4:59 p.m.
On Wed, Sep 21, 2016 at 11:18:28PM +0200, Danny Milosavljevic wrote:
> Hi,
> 
> thanks for this package! With the recent how-did-anyone-think-that-was-a-good-idea in bash (again), this is very useful.
> 
> However, are you sure you want to have no inputs for xonsh?
> 
> I can see that it supports at least these:
> - python-ply
> - python-sphinx
> - python-numpydoc
> - python-prompt-toolkit
> 
> And maybe also these features (not that important):
> - jupyter
> - setproctitle
> - distro
> - Cloud
> - Sphinx-Theme
> 
> What do you think?

Should it block the package? Or perhaps we can push the patch as-is and
you can submit a follow-up to add the features you want?
Danny Milosavljevic - Sept. 27, 2016, 7:38 p.m.
On Tue, 27 Sep 2016 12:59:08 -0400
Leo Famulari <leo@famulari.name> wrote:

> Should it block the package? Or perhaps we can push the patch as-is and
> you can submit a follow-up to add the features you want?

It's fine to use as-is, it just looks like a shell from 1973 :)

LGTM.

Also, I've tested Stefan's package and it works.
Stefan Reichör - Sept. 28, 2016, 2:06 p.m.
Danny Milosavljevic <dannym@scratchpost.org> writes:

> On Tue, 27 Sep 2016 12:59:08 -0400
> Leo Famulari <leo@famulari.name> wrote:
>
>> Should it block the package? Or perhaps we can push the patch as-is and
>> you can submit a follow-up to add the features you want?
>
> It's fine to use as-is, it just looks like a shell from 1973 :)
>
> LGTM.
>
> Also, I've tested Stefan's package and it works.

I think it should work in that configuration. I am just starting to use
it. For me it has the potential to be the shell for 2023 ;-)

Stefan.
Leo Famulari - Sept. 28, 2016, 5:44 p.m.
On Wed, Sep 21, 2016 at 10:01:30PM +0200, Stefan Reichör wrote:
> Subject: [PATCH] gnu: Add xonsh.
> 
> * gnu/packages/python.scm (xonsh): New variable.

I corrected the license to bsd-2 [0], moved the package definition to
(gnu packages shells) and pushed as 1d51585573f491.

Thanks!

[0]
https://github.com/xonsh/xonsh/blob/e10c38deccf94189012cca9864cac2bff77dd984/license

Patch

From 966f98c8c83d69e71e6cf38c5521b6237990a81c Mon Sep 17 00:00:00 2001
From: Stefan Reichoer <stefan@xsteve.at>
Date: Wed, 21 Sep 2016 21:58:52 +0200
Subject: [PATCH] gnu: Add xonsh.

* gnu/packages/python.scm (xonsh): New variable.
---
 gnu/packages/python.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a186557..3454f56 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9428,6 +9428,28 @@  It uses LR parsing and does extensive error checking.")
               (strip-python2-variant python-ply)))
     (native-inputs `(("python2-setuptools" ,python2-setuptools)))))
 
+(define-public xonsh
+  (package
+    (name "xonsh")
+    (version "0.4.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "xonsh" version))
+        (sha256
+          (base32
+            "0byxd9kjl99q2pyvjh9jy18l0di1i35wr0qqgnw4i6jh6ig3zcki"))))
+    (build-system python-build-system)
+    (home-page "http://xon.sh/")
+    (synopsis "Python-ish shell")
+    (description
+     "Xonsh is a Python-ish, BASHwards-looking shell language and command
+prompt. The language is a superset of Python 3.4+ with additional shell
+primitives that you are used to from Bash and IPython. It works on all major
+systems including Linux, Mac OSX, and Windows. Xonsh is meant for the daily
+use of experts and novices alike.")
+    (license license:bsd-3)))
+
 (define-public python-tabulate
   (package
     (name "python-tabulate")
-- 
2.7.4