diff mbox

gnu: Add py3status.

Message ID 20160530200121.18679-2-sleep_walker@gnu.org
State New
Headers show

Commit Message

Tomáš Čech May 30, 2016, 8:01 p.m. UTC
* gnu/packages/python.scm (python-py3status): New variable.
---
 gnu/packages/python.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Comments

Ludovic Courtès May 31, 2016, 3:14 p.m. UTC | #1
Tomáš Čech <sleep_walker@gnu.org> skribis:

> * gnu/packages/python.scm (python-py3status): New variable.

[...]

> +    (synopsis "Extensible i3status wrapper written in python")

s/python/Python/

Otherwise LGTM!

Regarding commit signing, see
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#16>.

Glad to see you back!  :-)

Thank you,
Ludo’.
Efraim Flashner May 31, 2016, 3:28 p.m. UTC | #2
On Mon, May 30, 2016 at 10:01:21PM +0200, Tomáš Čech wrote:
> * gnu/packages/python.scm (python-py3status): 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 dc54bff..d139dbc 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -8788,3 +8788,25 @@ the renaming, moving and extracting of attributes, functions, modules, fields
>  and parameters in Python 2 source code.  These refactorings can also be applied
>  to occurences in strings and comments.")
>      (license gpl2)))
> +
> +(define-public python-py3status
> +  (package
> +    (name "python-py3status")
> +    (version "2.9")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "py3status" version))
> +       (sha256
> +        (base32
> +         "09y7h8rjay5kzwk5akq7f5f9wqnvjkxhivck04hdc8ny1nw3vqzp"))))
> +    (build-system python-build-system)
> +    (inputs
        ^^^
    native-inputs

> +     `(("python-setuptools" ,python-setuptools)))
> +    (home-page "https://github.com/ultrabug/py3status")
> +    (synopsis "Extensible i3status wrapper written in python")
> +    (description "py3status is i3status wrapper which extends i3status
                                 ^
                                an
> +functionality in modular way, allowing you to extend your panel with
                   ^
                   a
> +your own code, responding to click events and update clock every
                                        s/update/updating the/
> +second.")
> +    (license bsd-3)))
> -- 
> 2.8.3
> 
>
Hartmut Goebel May 31, 2016, 3:34 p.m. UTC | #3
Am 31.05.2016 um 17:28 schrieb Efraim Flashner:
>> > +    (inputs
>         ^^^
>     native-inputs
>
>> > +     `(("python-setuptools" ,python-setuptools)))

Nope, this is required at runtime:


$ grep -r pkg_resources
py3status/core.py:            import pkg_resources
py3status/core.py:            version =
pkg_resources.get_distribution('py3status').version
diff mbox

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dc54bff..d139dbc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8788,3 +8788,25 @@  the renaming, moving and extracting of attributes, functions, modules, fields
 and parameters in Python 2 source code.  These refactorings can also be applied
 to occurences in strings and comments.")
     (license gpl2)))
+
+(define-public python-py3status
+  (package
+    (name "python-py3status")
+    (version "2.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "py3status" version))
+       (sha256
+        (base32
+         "09y7h8rjay5kzwk5akq7f5f9wqnvjkxhivck04hdc8ny1nw3vqzp"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/ultrabug/py3status")
+    (synopsis "Extensible i3status wrapper written in python")
+    (description "py3status is i3status wrapper which extends i3status
+functionality in modular way, allowing you to extend your panel with
+your own code, responding to click events and update clock every
+second.")
+    (license bsd-3)))