unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 1/2] gnu: Add behave. (forgot the attchment...)
@ 2014-06-30  5:43 Eric Bavier
  2014-06-30 10:51 ` Ludovic Courtès
  2014-06-30 10:52 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Bavier @ 2014-06-30  5:43 UTC (permalink / raw)
  To: guix-devel


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



[-- Attachment #1.2: Type: text/html, Size: 27 bytes --]

[-- Attachment #2: 0001-gnu-Add-behave.patch --]
[-- Type: text/x-patch, Size: 6280 bytes --]

From ea01959c9d733b0151fbe1780a8c36244a43eb3a Mon Sep 17 00:00:00 2001
From: Eric Bavier <bavier@member.fsf.org>
Date: Mon, 30 Jun 2014 00:25:33 -0500
Subject: [PATCH 1/2] gnu: Add behave.

* gnu/packages/python.scm (python-six, python-enum34, python-parse-type,
  python-parse, behave): New variables.
---
 gnu/packages/python.scm |  138 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 138 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b15e5b6..3c80e8e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -380,6 +381,31 @@ Python 3 support.")
   (package-with-python2 python-setuptools))
 
 
+(define-public python-six
+  (package
+    (name "python-six")
+    (version "1.7.2")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "https://pypi.python.org/packages/source/s/"
+                          "six/six-" version ".tar.gz"))
+      (sha256
+       (base32
+        "164rns26aqfqx2hwi0qq3scl50s69japn0fvgvrjsbyg7r1mxf67"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (home-page "http://pypi.python.org/pypi/six/")
+    (synopsis "Python 2 and 3 compatibility utilities")
+    (description
+     "Six is a Python 2 and 3 compatibility library. It provides utility
+functions for smoothing over the differences between the Python versions with
+the goal of writing Python code that is compatible on both Python versions.
+Six supports every Python version since 2.5. It is contained in only one
+Python file, so it can be easily copied into your project.")
+    (license (x11-style "file://LICENSE"))))
+
 (define-public python-dateutil
   (package
     (name "python-dateutil")
@@ -644,6 +670,88 @@ bug tracker.")
     (home-page "http://www.liquidx.net/pybugz/")
     (license gpl2)))
 
+(define-public python-enum34
+  (package
+    (name "python-enum34")
+    (version "1.0")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "https://pypi.python.org/packages/source/e/"
+                          "enum34/enum34-" version ".tar.gz"))
+      (sha256
+       (base32
+        "0dg6mpg9n4g9diyrbnbb5vd9d1qw9f265zwhknqy0mxh0cvmjjrq"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)))
+    (arguments
+     `(#:phases
+       (alist-replace
+        'check
+        (lambda _ (zero? (system* "python" "enum/test_enum.py")))
+        %standard-phases)))
+    (home-page "https://pypi.python.org/pypi/enum34")
+    (synopsis
+     "Backported Python 3.4 Enum")
+    (description
+     "Enum34 is the new Python stdlib enum module available in Python 3.4
+backported for previous versions of Python from 2.4 to 3.3.")
+    (license bsd-3)))
+
+(define-public python-parse-type
+  (package
+    (name "python-parse-type")
+    (version "0.3.4")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "https://pypi.python.org/packages/source/p/"
+                          "parse_type/parse_type-" version ".tar.gz"))
+      (sha256
+       (base32
+        "0iv1c34npr4iynwpgv1vkjx9rjd18a85ir8c01gc5f7wp8iv7l1x"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-six" ,python-six)
+       ("python-parse" ,python-parse)
+       ("python-enum34" ,python-enum34))) ;required for python<3.4
+    (arguments '(#:tests? #f))            ;TODO: tests require pytest
+    (home-page "https://github.com/jenisys/parse_type")
+    (synopsis
+     "Extended parse module")
+    (description
+     "")
+    (license bsd-3)))
+
+(define-public python-parse
+  (package
+    (name "python-parse")
+    (version "1.6.4")
+    (source
+     (origin
+      (method url-fetch)
+      (uri (string-append "https://pypi.python.org/packages/source/p/"
+                          "parse/parse-" version ".tar.gz"))
+      (sha256
+       (base32
+        "0m30q64l6szl7s9mhvqy64w2fdhdn8lb91fmacjiwbv3479cmk57"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (alist-replace
+        'check
+        (lambda _ (zero? (system* "python" "test_parse.py")))
+        %standard-phases)))
+    (home-page "https://github.com/r1chardj0n3s/parse")
+    (synopsis
+     "Parse strings")
+    (description
+     "Parse strings using a specification based on the Python format() syntax.")
+    (license (x11-style "file://parse.py"))))
+
+
 (define-public scons
   (package
     (name "scons")
@@ -670,3 +778,33 @@ In short, SCons is an easier, more reliable and faster way to build
 software.")
     (license x11)))
 
+(define-public behave
+  (package
+    (name "behave")
+    (version "1.2.4")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://pypi.python.org/packages/source/b/"
+                                 name "/" name "-" version ".tar.gz"))
+             (sha256
+              (base32
+               "1v2rfy8xnf0rk7cj4cgr7lam4015d458i7bg0xqs9czfv6njlm14"))))
+    (build-system python-build-system)
+    (inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-six" ,python-six)
+       ("python-enum43" ,python-enum34)
+       ("python-parse" ,python-parse)
+       ("python-parse-type" ,python-parse-type)))
+    (arguments `(#:tests? #f))          ;TODO: tests require nose>=1.3 and
+                                        ;PyHamcrest>=1.8
+    (home-page "http://github.com/behave/behave")
+    (synopsis "Python behaviour-driven development")
+    (description
+     "Behave is behaviour-driven development, Python style.  Behavior-driven
+development (or BDD) is an agile software development technique that
+encourages collaboration between developers, QA and non-technical or business
+participants in a software project.  Behave uses tests written in a natural
+language style, backed up by Python code.")
+    (license x11)))
+
-- 
1.7.9.5


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

* Re: [PATCH 1/2] gnu: Add behave. (forgot the attchment...)
  2014-06-30  5:43 [PATCH 1/2] gnu: Add behave. (forgot the attchment...) Eric Bavier
@ 2014-06-30 10:51 ` Ludovic Courtès
  2014-06-30 10:52 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2014-06-30 10:51 UTC (permalink / raw)
  To: Eric Bavier; +Cc: guix-devel

Eric Bavier <ericbavier@gmail.com> skribis:

> From ea01959c9d733b0151fbe1780a8c36244a43eb3a Mon Sep 17 00:00:00 2001
> From: Eric Bavier <bavier@member.fsf.org>
> Date: Mon, 30 Jun 2014 00:25:33 -0500
> Subject: [PATCH 1/2] gnu: Add behave.
>
> * gnu/packages/python.scm (python-six, python-enum34, python-parse-type,
>   python-parse, behave): New variables.

OK.

> +    (synopsis
> +     "Extended parse module")

No newline after ‘synopsis’ please (in other places as well.)

> +    (description
> +     "")

Could you add a description?  :-)

> +    (synopsis "Python behaviour-driven development")
> +    (description
> +     "Behave is behaviour-driven development, Python style.  Behavior-driven
> +development (or BDD) is an agile software development technique that
> +encourages collaboration between developers, QA and non-technical or business
> +participants in a software project.  Behave uses tests written in a natural
> +language style, backed up by Python code.")

For the first sentence, perhaps something like “Behave is a tool for
behavior-drive development in Python”?

Also, choose “behaviour” or “behavior” (rather the latter.)

OK to push with these changes.

Thanks,
Ludo’.

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

* Re: [PATCH 1/2] gnu: Add behave. (forgot the attchment...)
  2014-06-30  5:43 [PATCH 1/2] gnu: Add behave. (forgot the attchment...) Eric Bavier
  2014-06-30 10:51 ` Ludovic Courtès
@ 2014-06-30 10:52 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2014-06-30 10:52 UTC (permalink / raw)
  To: Eric Bavier; +Cc: guix-devel

Eric Bavier <ericbavier@gmail.com> skribis:

> From ea01959c9d733b0151fbe1780a8c36244a43eb3a Mon Sep 17 00:00:00 2001
> From: Eric Bavier <bavier@member.fsf.org>
> Date: Mon, 30 Jun 2014 00:25:33 -0500
> Subject: [PATCH 1/2] gnu: Add behave.
>
> * gnu/packages/python.scm (python-six, python-enum34, python-parse-type,
>   python-parse, behave): New variables.

Oh, and please mention the various packages in the subject line of the
commit log.

Ludo’.

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

end of thread, other threads:[~2014-06-30 10:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30  5:43 [PATCH 1/2] gnu: Add behave. (forgot the attchment...) Eric Bavier
2014-06-30 10:51 ` Ludovic Courtès
2014-06-30 10:52 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).