all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#31010] [PATCH] gnu: Add python-empy.
@ 2018-03-31 21:27 Mathieu Lirzin
  2018-03-31 22:48 ` Mathieu Lirzin
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Lirzin @ 2018-03-31 21:27 UTC (permalink / raw)
  To: 31010; +Cc: Mathieu Lirzin

* gnu/packages/python.scm (python-empy): New variable.
(python2-empy): Use 'package-with-python-2'.
---
 gnu/packages/python.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9e038ef4f..84578fe02 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -48,6 +48,7 @@
 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
+;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
 
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1304,9 +1305,9 @@ applications. dogtail scripts are written in Python and executed like any
 other Python program.")
     (license license:gpl2+)))
 
-(define-public python2-empy
+(define-public python-empy
   (package
-    (name "python2-empy")
+    (name "python-empy")
     (version "3.3")
     (source (origin
              (method url-fetch)
@@ -1339,6 +1340,9 @@ system is highly configurable via command line options and embedded
 commands.")
     (license license:lgpl2.1+)))
 
+(define-public python2-empy
+  (package-with-python2 python-empy))
+
 (define-public python2-element-tree
   (package
     (name "python2-element-tree")
-- 
2.16.3

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

* [bug#31010] [PATCH] gnu: Add python-empy.
  2018-03-31 21:27 [bug#31010] [PATCH] gnu: Add python-empy Mathieu Lirzin
@ 2018-03-31 22:48 ` Mathieu Lirzin
  2018-04-04 12:12   ` bug#31010: " Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Lirzin @ 2018-03-31 22:48 UTC (permalink / raw)
  To: 31010

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

Mathieu Lirzin <mthl@gnu.org> writes:

> * gnu/packages/python.scm (python-empy): New variable.
> (python2-empy): Use 'package-with-python-2'.
> ---
>  gnu/packages/python.scm | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

The previous patch is incorrect please use the following one instead.


[-- Attachment #2: 0001-gnu-Add-python-empy.patch --]
[-- Type: text/x-patch, Size: 2102 bytes --]

From bda277bdc584c3c3b5c096a1cf193e9358b9d4ee Mon Sep 17 00:00:00 2001
From: Mathieu Lirzin <mthl@gnu.org>
Date: Sat, 31 Mar 2018 23:19:12 +0200
Subject: [PATCH] gnu: Add python-empy.

* gnu/packages/python.scm (python-empy): New variable.
(python2-empy): Use 'package-with-python-2'.
---
 gnu/packages/python.scm | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 9e038ef4f..e6ae8f433 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -48,6 +48,7 @@
 ;;; Copyright © 2018 Ethan R. Jones <ethanrjones97@gmail.com
 ;;; Copyright © 2018 Fis Trivial <ybbs.daans@hotmail.com>
 ;;; Copyright © 2018 Vijayalakshmi Vedantham <vijimay12@gmail.com>
+;;; Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
 
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1304,9 +1305,9 @@ applications. dogtail scripts are written in Python and executed like any
 other Python program.")
     (license license:gpl2+)))
 
-(define-public python2-empy
+(define-public python-empy
   (package
-    (name "python2-empy")
+    (name "python-empy")
     (version "3.3")
     (source (origin
              (method url-fetch)
@@ -1317,12 +1318,7 @@ other Python program.")
                "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6"))))
     (build-system python-build-system)
     (arguments
-     `(#:python ,python-2
-       #:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda _
-             (zero? (system* "./test.sh")))))))
+     `(#:tests? #f))                    ;python2 only
     (home-page "http://www.alcyone.com/software/empy/")
     (synopsis "Templating system for Python")
     (description
@@ -1339,6 +1335,9 @@ system is highly configurable via command line options and embedded
 commands.")
     (license license:lgpl2.1+)))
 
+(define-public python2-empy
+  (package-with-python2 python-empy))
+
 (define-public python2-element-tree
   (package
     (name "python2-element-tree")
-- 
2.16.3


[-- Attachment #3: Type: text/plain, Size: 85 bytes --]


Thanks.

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37

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

* bug#31010: [PATCH] gnu: Add python-empy.
  2018-03-31 22:48 ` Mathieu Lirzin
@ 2018-04-04 12:12   ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2018-04-04 12:12 UTC (permalink / raw)
  To: Mathieu Lirzin; +Cc: 31010-done

Mathieu Lirzin <mthl@gnu.org> skribis:

> From bda277bdc584c3c3b5c096a1cf193e9358b9d4ee Mon Sep 17 00:00:00 2001
> From: Mathieu Lirzin <mthl@gnu.org>
> Date: Sat, 31 Mar 2018 23:19:12 +0200
> Subject: [PATCH] gnu: Add python-empy.
>
> * gnu/packages/python.scm (python-empy): New variable.
> (python2-empy): Use 'package-with-python-2'.

Applied, thanks!

Ludo'.

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

end of thread, other threads:[~2018-04-04 12:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-31 21:27 [bug#31010] [PATCH] gnu: Add python-empy Mathieu Lirzin
2018-03-31 22:48 ` Mathieu Lirzin
2018-04-04 12:12   ` bug#31010: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.