* [PATCH 2/5] gnu: Add python-clint.
2016-01-13 1:27 [PATCH 1/5] gnu: Add python-args 宋文武
@ 2016-01-13 1:27 ` 宋文武
2016-01-15 15:07 ` Ludovic Courtès
2016-01-13 1:27 ` [PATCH 3/5] gnu: Add python-astor 宋文武
` (3 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: 宋文武 @ 2016-01-13 1:27 UTC (permalink / raw)
To: guix-devel; +Cc: 宋文武
* gnu/packages/python.scm (python-clint, python2-clint): New variables.
---
gnu/packages/python.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 0886809..e54f521 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6642,3 +6642,27 @@ the standard library.")
(define-public python2-args
(package-with-python2 python-args))
+
+(define-public python-clint
+ (package
+ (name "python-clint")
+ (version "0.5.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "clint" version))
+ (sha256
+ (base32
+ "1an5lkkqk1zha47198p42ji3m94xmzx1a03dn7866m87n4r4q8h5"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-args" ,python-args)
+ ("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/kennethreitz/clint")
+ (synopsis "Command line interface tools")
+ (description
+ "Clint is a Python module filled with a set of tools for developing
+commandline applications.")
+ (license isc)))
+
+(define-public python2-clint
+ (package-with-python2 python-clint))
--
2.5.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 3/5] gnu: Add python-astor.
2016-01-13 1:27 [PATCH 1/5] gnu: Add python-args 宋文武
2016-01-13 1:27 ` [PATCH 2/5] gnu: Add python-clint 宋文武
@ 2016-01-13 1:27 ` 宋文武
2016-01-15 15:08 ` Ludovic Courtès
2016-01-13 1:27 ` [PATCH 4/5] gnu: Add python-rply 宋文武
` (2 subsequent siblings)
4 siblings, 1 reply; 11+ messages in thread
From: 宋文武 @ 2016-01-13 1:27 UTC (permalink / raw)
To: guix-devel; +Cc: 宋文武
* gnu/packages/python.scm (python-astor, python2-astor): New variables.
---
gnu/packages/python.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e54f521..95e9a09 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6666,3 +6666,26 @@ commandline applications.")
(define-public python2-clint
(package-with-python2 python-clint))
+
+(define-public python-astor
+ (package
+ (name "python-astor")
+ (version "0.5")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "astor" version))
+ (sha256
+ (base32
+ "1fdafq5hkis1fxqlmhw0sn44zp2ar46nxhbc22cvwg7hsd8z5gsa"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/berkerpeksag/astor")
+ (synopsis "Read and write Python ASTs")
+ (description
+ "Astor is designed to allow easy manipulation of Python source via the
+Abstract Syntax Tree.")
+ (license bsd-3)))
+
+(define-public python2-astor
+ (package-with-python2 python-astor))
--
2.5.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 4/5] gnu: Add python-rply.
2016-01-13 1:27 [PATCH 1/5] gnu: Add python-args 宋文武
2016-01-13 1:27 ` [PATCH 2/5] gnu: Add python-clint 宋文武
2016-01-13 1:27 ` [PATCH 3/5] gnu: Add python-astor 宋文武
@ 2016-01-13 1:27 ` 宋文武
2016-01-15 16:11 ` Ludovic Courtès
2016-01-13 1:27 ` [PATCH 5/5] gnu: Add python-hy 宋文武
2016-01-15 15:04 ` [PATCH 1/5] gnu: Add python-args Ludovic Courtès
4 siblings, 1 reply; 11+ messages in thread
From: 宋文武 @ 2016-01-13 1:27 UTC (permalink / raw)
To: guix-devel; +Cc: 宋文武
* gnu/packages/python.scm (python-rply): New variables.
---
gnu/packages/python.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 95e9a09..d4cc8d3 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6689,3 +6689,29 @@ Abstract Syntax Tree.")
(define-public python2-astor
(package-with-python2 python-astor))
+
+(define-public python-rply
+ (package
+ (name "python-rply")
+ (version "0.7.4")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "rply" version))
+ (sha256
+ (base32
+ "12rp1d9ba7nvd5rhaxi6xzx1rm67r1k1ylsrkzhpwnphqpb06cvj"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-appdirs" ,python-appdirs)
+ ("python-setuptools" ,python-setuptools)))
+ (home-page "")
+ (synopsis
+ "Pure Python based parser that also works with RPython")
+ (description
+ "This package provides a pure Python based parser generator, that also
+works with RPython. It is a more-or-less direct port of David Bazzley's PLY,
+with a new public API, and RPython support.")
+ (license bsd-3)))
+
+(define-public python2-rply
+ (package-with-python2 python-rply))
--
2.5.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH 5/5] gnu: Add python-hy.
2016-01-13 1:27 [PATCH 1/5] gnu: Add python-args 宋文武
` (2 preceding siblings ...)
2016-01-13 1:27 ` [PATCH 4/5] gnu: Add python-rply 宋文武
@ 2016-01-13 1:27 ` 宋文武
2016-01-15 16:12 ` Ludovic Courtès
2016-01-15 15:04 ` [PATCH 1/5] gnu: Add python-args Ludovic Courtès
4 siblings, 1 reply; 11+ messages in thread
From: 宋文武 @ 2016-01-13 1:27 UTC (permalink / raw)
To: guix-devel; +Cc: 宋文武
* gnu/packages/python.scm (python-hy, python2-hy): New variables.
---
gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d4cc8d3..139c02e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6715,3 +6715,31 @@ with a new public API, and RPython support.")
(define-public python2-rply
(package-with-python2 python-rply))
+
+(define-public python-hy
+ (package
+ (name "python-hy")
+ (version "0.11.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "hy" version))
+ (sha256
+ (base32
+ "1msqv747iz12r73mz4qvsmlwkddwjvrahlrk7ysrcz07h7dsscxs"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-astor" ,python-astor)
+ ("python-clint" ,python-clint)
+ ("python-rply" ,python-rply)
+ ("python-setuptools" ,python-setuptools)))
+ (home-page "http://hylang.org/")
+ (synopsis "Lisp frontend to Python")
+ (description
+ "Hy is a dialect of Lisp that's embedded in Python.
+
+Since Hy transforms its Lisp code into the Python Abstract Syntax Tree, you
+have the whole world of Python at your fingertips, in Lisp form.")
+ (license license:expat)))
+
+(define-public python2-hy
+ (package-with-python2 python-hy))
--
2.5.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH 5/5] gnu: Add python-hy.
2016-01-13 1:27 ` [PATCH 5/5] gnu: Add python-hy 宋文武
@ 2016-01-15 16:12 ` Ludovic Courtès
2016-01-16 0:20 ` 宋文武
0 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2016-01-15 16:12 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 <iyzsong@gmail.com> skribis:
> * gnu/packages/python.scm (python-hy, python2-hy): New variables.
[...]
> + (home-page "http://hylang.org/")
> + (synopsis "Lisp frontend to Python")
> + (description
> + "Hy is a dialect of Lisp that's embedded in Python.
> +
> +Since Hy transforms its Lisp code into the Python Abstract Syntax Tree, you
> +have the whole world of Python at your fingertips, in Lisp form.")
I would remove the newline.
Otherwise LGTM, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 5/5] gnu: Add python-hy.
2016-01-15 16:12 ` Ludovic Courtès
@ 2016-01-16 0:20 ` 宋文武
0 siblings, 0 replies; 11+ messages in thread
From: 宋文武 @ 2016-01-16 0:20 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
ludo@gnu.org (Ludovic Courtès) writes:
> 宋文武 <iyzsong@gmail.com> skribis:
>
>> * gnu/packages/python.scm (python-hy, python2-hy): New variables.
>
> [...]
>
>> + (home-page "http://hylang.org/")
>> + (synopsis "Lisp frontend to Python")
>> + (description
>> + "Hy is a dialect of Lisp that's embedded in Python.
>> +
>> +Since Hy transforms its Lisp code into the Python Abstract Syntax Tree, you
>> +have the whole world of Python at your fingertips, in Lisp form.")
>
> I would remove the newline.
>
> Otherwise LGTM, thanks!
Pushed, thanks for the review!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/5] gnu: Add python-args.
2016-01-13 1:27 [PATCH 1/5] gnu: Add python-args 宋文武
` (3 preceding siblings ...)
2016-01-13 1:27 ` [PATCH 5/5] gnu: Add python-hy 宋文武
@ 2016-01-15 15:04 ` Ludovic Courtès
4 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2016-01-15 15:04 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 <iyzsong@gmail.com> skribis:
> * gnu/packages.scm (python-args, python2-args): New variables.
[...]
> + (home-page "https://github.com/kennethreitz/args")
> + (synopsis "CLI argument interface")
What about “Command-line argument parser”?
> + (description
> + "This module provides the CLI argument interface for clint.")
This seems wrong, no? Maybe: “This package provides a Python library to
parse command-line arguments.”
OK with these changes.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 11+ messages in thread