unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 1/5] gnu: Add python-wrapt
@ 2015-09-08 23:34 Cyril Roelandt
  2015-09-08 23:34 ` [PATCH 2/5] gnu: Add python-iso8601 Cyril Roelandt
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Cyril Roelandt @ 2015-09-08 23:34 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-wrapt, python2-wrapt): New variables.
---
 gnu/packages/python.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8ea5777..bb510cc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4767,3 +4767,35 @@ reading and writing MessagePack data.")
 
 (define-public python2-netaddr
   (package-with-python2 python-netaddr))
+
+(define-public python-wrapt
+  (package
+    (name "python-wrapt")
+    (version "1.10.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://pypi.python.org/packages/source/w/wrapt/wrapt-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr"))))
+    (build-system python-build-system)
+    (arguments
+     ;; Lots of different test configurations. TODO: run them all.
+     `(#:tests? #f))
+    (inputs
+      `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/GrahamDumpleton/wrapt")
+    (synopsis
+      "Module for decorators, wrappers and monkey patching")
+    (description
+      "The aim of the wrapt module is to provide a transparent object proxy for
+  Python, which can be used as the basis for the construction of function
+  wrappers and decorator functions.")
+    (license bsd-2)))
+
+(define-public python2-wrapt
+  (package-with-python2 python-wrapt))
-- 
2.1.4

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

* [PATCH 2/5] gnu: Add python-iso8601.
  2015-09-08 23:34 [PATCH 1/5] gnu: Add python-wrapt Cyril Roelandt
@ 2015-09-08 23:34 ` Cyril Roelandt
  2015-09-13  9:45   ` Ludovic Courtès
  2015-09-08 23:34 ` [PATCH 3/5] gnu: Add python-monotonic Cyril Roelandt
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Cyril Roelandt @ 2015-09-08 23:34 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-iso8601, python2-iso8601): New variables.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index bb510cc..4111596 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4799,3 +4799,30 @@ reading and writing MessagePack data.")
 
 (define-public python2-wrapt
   (package-with-python2 python-wrapt))
+
+(define-public python-iso8601
+  (package
+  (name "python-iso8601")
+  (version "0.1.10")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+             "https://pypi.python.org/packages/source/i/iso8601/iso8601-"
+             version
+             ".tar.gz"))
+      (sha256
+        (base32
+          "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7"))))
+  (build-system python-build-system)
+  (inputs
+    `(("python-setuptools" ,python-setuptools)))
+  (home-page "https://bitbucket.org/micktwomey/pyiso8601")
+  (synopsis "Module to parse ISO 8601 dates")
+  (description
+    "This module parses the most common forms of ISO 8601 date strings (e.g.
+2007-01-14T20:34:22+00:00) into datetime objects.")
+  (license license:expat)))
+
+(define-public python2-iso8601
+  (package-with-python2 python-iso8601))
-- 
2.1.4

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

* [PATCH 3/5] gnu: Add python-monotonic.
  2015-09-08 23:34 [PATCH 1/5] gnu: Add python-wrapt Cyril Roelandt
  2015-09-08 23:34 ` [PATCH 2/5] gnu: Add python-iso8601 Cyril Roelandt
@ 2015-09-08 23:34 ` Cyril Roelandt
  2015-09-13  9:46   ` Ludovic Courtès
  2015-09-08 23:34 ` [PATCH 4/5] gnu: Add python-debtcollector Cyril Roelandt
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 10+ messages in thread
From: Cyril Roelandt @ 2015-09-08 23:34 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/python.scm (python-monotonic, python2-monotonic): New variables.
---
 gnu/packages/python.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 4111596..5f4e9ae 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4826,3 +4826,30 @@ reading and writing MessagePack data.")
 
 (define-public python2-iso8601
   (package-with-python2 python-iso8601))
+
+(define-public python-monotonic
+  (package
+    (name "python-monotonic")
+    (version "0.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "0yz0bcbwx8r2c01czzfpbrxddynxyk9k95jj8h6sgcb7xmfvl998"))))
+    (build-system python-build-system)
+    (inputs
+      `(("python-setuptools" ,python-setuptools)))
+    (home-page "https://github.com/atdt/monotonic")
+    (synopsis "Implementation of time.monotonic() for Python 2 & < 3.3")
+    (description
+      "This module provides a monotonic() function which returns the value (in
+  fractional seconds) of a clock which never goes backwards.")
+    (license asl2.0)))
+
+(define-public python2-monotonic
+  (package-with-python2 python-monotonic))
-- 
2.1.4

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

* [PATCH 4/5] gnu: Add python-debtcollector.
  2015-09-08 23:34 [PATCH 1/5] gnu: Add python-wrapt Cyril Roelandt
  2015-09-08 23:34 ` [PATCH 2/5] gnu: Add python-iso8601 Cyril Roelandt
  2015-09-08 23:34 ` [PATCH 3/5] gnu: Add python-monotonic Cyril Roelandt
@ 2015-09-08 23:34 ` Cyril Roelandt
  2015-09-13  9:49   ` Ludovic Courtès
  2015-09-08 23:34 ` [PATCH 5/5] gnu: Add python-oslo.utils Cyril Roelandt
  2015-09-13  9:44 ` [PATCH 1/5] gnu: Add python-wrapt Ludovic Courtès
  4 siblings, 1 reply; 10+ messages in thread
From: Cyril Roelandt @ 2015-09-08 23:34 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/openstack.scm (python-debtcollector,
  python2-debtcollector): New variables.
---
 gnu/packages/openstack.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 1ed60fa..b73e0d9 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -25,6 +25,40 @@
                 #:select (asl2.0))
   #:use-module (guix packages))
 
+(define-public python-debtcollector
+  (package
+    (name "python-debtcollector")
+    (version "0.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://pypi.python.org/packages/source/d/debtcollector/"
+               "debtcollector-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0amlcg5f98lk2mfzdg44slh1nsi2y4ds123g5d57376fjk2b3njd"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-six" ,python-six)
+       ("python-wrapt" ,python-wrapt)))
+    (inputs
+      `(("python-babel" ,python-babel)
+        ("python-pbr" ,python-pbr)
+        ("python-setuptools" ,python-setuptools)
+        ;; Tests.
+        ("python-oslotest" ,python-oslotest)))
+    (home-page "http://www.openstack.org/")
+    (synopsis
+      "Python library aimed at discovering the technical debt of a project")
+    (description
+      "A collection of Python deprecation patterns and strategies that help you
+  collect your technical debt in a non-destructive manner.")
+    (license asl2.0)))
+
+(define-public python2-debtcollector
+  (package-with-python2 python-debtcollector))
+
 (define-public python-mox3
   (package
     (name "python-mox3")
-- 
2.1.4

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

* [PATCH 5/5] gnu: Add python-oslo.utils.
  2015-09-08 23:34 [PATCH 1/5] gnu: Add python-wrapt Cyril Roelandt
                   ` (2 preceding siblings ...)
  2015-09-08 23:34 ` [PATCH 4/5] gnu: Add python-debtcollector Cyril Roelandt
@ 2015-09-08 23:34 ` Cyril Roelandt
  2015-09-13  9:50   ` Ludovic Courtès
  2015-09-13  9:44 ` [PATCH 1/5] gnu: Add python-wrapt Ludovic Courtès
  4 siblings, 1 reply; 10+ messages in thread
From: Cyril Roelandt @ 2015-09-08 23:34 UTC (permalink / raw)
  To: guix-devel

* gnu/packages/openstack.scm (python-oslo.utils, python2-oslo.utils): New variables.
---
 gnu/packages/openstack.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index b73e0d9..ed87904 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -328,3 +328,52 @@ and better support for mocking results.")
 
 (define-public python2-oslotest
   (package-with-python2 python-oslotest))
+
+(define-public python-oslo.utils
+  (package
+    (name "python-oslo.utils")
+    (version "2.5.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://pypi.python.org/packages/source/o/oslo.utils/oslo.utils-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32
+            "11b073gblhzkxhi1j6sqk3apq2ll8xhi9h9g9kxzx9dycqdq0qp0"))
+        (snippet
+         '(begin
+            ;; FIXME: setuptools fails to import this file during the test
+            ;; phase.
+            (delete-file "oslo_utils/tests/test_netutils.py")))))
+    (build-system python-build-system)
+    (propagated-inputs
+      `(("python-debtcollector" ,python-debtcollector)
+        ("python-oslo.i18n" ,python-oslo.i18n)
+        ("python-iso8601" ,python-iso8601)
+        ("python-monotonic" ,python-monotonic)
+        ("python-netaddr" ,python-netaddr)
+        ("python-netifaces" ,python-netifaces)
+        ("python-pytz" ,python-pytz)
+        ("python-six" ,python-six)))
+    (inputs
+      `(("python-babel" ,python-babel)
+        ("python-pbr" ,python-pbr)
+        ("python-setuptools" ,python-setuptools)
+        ;; Tests.
+        ("python-oslotest" ,python-oslotest)
+        ("python-mock" ,python-mock)
+        ("python-mox3" ,python-mox3)
+        ("python-testscenarios" ,python-testscenarios)))
+    (home-page "http://launchpad.net/oslo")
+    (synopsis "Oslo Utility library")
+    (description
+      "The oslo.utils library provides support for common utility type
+functions, such as encoding, exception handling, string manipulation, and time
+ handling.")
+    (license asl2.0)))
+
+(define-public python2-oslo.utils
+  (package-with-python2 python-oslo.utils))
-- 
2.1.4

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

* Re: [PATCH 1/5] gnu: Add python-wrapt
  2015-09-08 23:34 [PATCH 1/5] gnu: Add python-wrapt Cyril Roelandt
                   ` (3 preceding siblings ...)
  2015-09-08 23:34 ` [PATCH 5/5] gnu: Add python-oslo.utils Cyril Roelandt
@ 2015-09-13  9:44 ` Ludovic Courtès
  4 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-09-13  9:44 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/python.scm (python-wrapt, python2-wrapt): New variables.

[...]

> +     ;; Lots of different test configurations. TODO: run them all.
> +     `(#:tests? #f))

It’s not clear why tests are not run.  Could you clarify this in the
comment?  (Or run them if there’s no particular reason not do it.)

> +    (synopsis
> +      "Module for decorators, wrappers and monkey patching")

One line is enough.

OK with these changes!

Thanks,
Ludo’.

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

* Re: [PATCH 2/5] gnu: Add python-iso8601.
  2015-09-08 23:34 ` [PATCH 2/5] gnu: Add python-iso8601 Cyril Roelandt
@ 2015-09-13  9:45   ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-09-13  9:45 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/python.scm (python-iso8601, python2-iso8601): New variables.

[...]

> +    "This module parses the most common forms of ISO 8601 date strings (e.g.
> +2007-01-14T20:34:22+00:00) into datetime objects.")

@code{2007-01-14T20:34:22+00:00} ... @code{datetime}

OK with this change, thanks!

Ludo’.

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

* Re: [PATCH 3/5] gnu: Add python-monotonic.
  2015-09-08 23:34 ` [PATCH 3/5] gnu: Add python-monotonic Cyril Roelandt
@ 2015-09-13  9:46   ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-09-13  9:46 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/python.scm (python-monotonic, python2-monotonic): New variables.

[...]

> +      "This module provides a monotonic() function which returns the value (in

@code{monotonic}

> +  fractional seconds) of a clock which never goes backwards.")
   ^^

Extra space.

OK with this change.

Thanks,
Ludo'.

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

* Re: [PATCH 4/5] gnu: Add python-debtcollector.
  2015-09-08 23:34 ` [PATCH 4/5] gnu: Add python-debtcollector Cyril Roelandt
@ 2015-09-13  9:49   ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-09-13  9:49 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/openstack.scm (python-debtcollector,
>   python2-debtcollector): New variables.

[...]

> +    (synopsis
> +      "Python library aimed at discovering the technical debt of a project")

What about: “Find deprecated patterns and strategies in Python code”?

> +    (description
> +      "A collection of Python deprecation patterns and strategies that help you

a/A/This package provides a/

OK with this change.

Ludo’.

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

* Re: [PATCH 5/5] gnu: Add python-oslo.utils.
  2015-09-08 23:34 ` [PATCH 5/5] gnu: Add python-oslo.utils Cyril Roelandt
@ 2015-09-13  9:50   ` Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2015-09-13  9:50 UTC (permalink / raw)
  To: Cyril Roelandt; +Cc: guix-devel

Cyril Roelandt <tipecaml@gmail.com> skribis:

> * gnu/packages/openstack.scm (python-oslo.utils, python2-oslo.utils): New variables.

[...]

> +    (synopsis "Oslo Utility library")

“utility” (lowercase).

> +      "The oslo.utils library provides support for common utility type

@code{oslo.utils}

> +functions, such as encoding, exception handling, string manipulation, and time
> + handling.")
   ^

Space.

OK with these changes.

Thank you!

Ludo’.

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

end of thread, other threads:[~2015-09-13  9:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08 23:34 [PATCH 1/5] gnu: Add python-wrapt Cyril Roelandt
2015-09-08 23:34 ` [PATCH 2/5] gnu: Add python-iso8601 Cyril Roelandt
2015-09-13  9:45   ` Ludovic Courtès
2015-09-08 23:34 ` [PATCH 3/5] gnu: Add python-monotonic Cyril Roelandt
2015-09-13  9:46   ` Ludovic Courtès
2015-09-08 23:34 ` [PATCH 4/5] gnu: Add python-debtcollector Cyril Roelandt
2015-09-13  9:49   ` Ludovic Courtès
2015-09-08 23:34 ` [PATCH 5/5] gnu: Add python-oslo.utils Cyril Roelandt
2015-09-13  9:50   ` Ludovic Courtès
2015-09-13  9:44 ` [PATCH 1/5] gnu: Add python-wrapt 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).