From: Cyril Roelandt <tipecaml@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 05/11] gnu: Add oslo.utils.
Date: Thu, 16 Jul 2015 01:32:25 +0200 [thread overview]
Message-ID: <1437003151-23838-6-git-send-email-tipecaml@gmail.com> (raw)
In-Reply-To: <1437003151-23838-1-git-send-email-tipecaml@gmail.com>
* gnu/packages/python.scm (python-wrapt, python2-wrapt, python-iso8601,
python2-iso8601, python-monotonic python2-monotonic): New variables.
* gnu/packages/openstack.scm (python-debtcollector, python2-debtcollector,
python-oslo.util python2-oslo.util): New variables.
---
gnu/packages/openstack.scm | 84 +++++++++++++++++++++++++++++++++++++++++++
gnu/packages/python.scm | 90 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 174 insertions(+)
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index d117a4f..3a3b129 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -25,6 +25,42 @@
#: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-wrapt" ,python-wrapt)))
+ (inputs
+ `(("python-babel" ,python-babel)
+ ("python-pbr" ,python-pbr)
+ ("python-setuptools" ,python-setuptools)
+ ("python-six" ,python-six)
+ ("python-wrapt" ,python-wrapt)
+ ;; Tests.
+ ("python-oslotest" ,python-oslotest)))
+ (home-page "http://www.openstack.org/")
+ (synopsis
+ "A collection of Python deprecation patterns and strategies that help you
+collect your technical debt in a non-destructive manner.")
+ (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")
@@ -292,3 +328,51 @@ 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 "1.9.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
+ "1amhpachr5b5r03rz51ydwxa5d61hlv71ipmfhhi8hkg98njrcaw"))
+ (snippet
+ '(begin
+ ;; setuptools fails to import these files during the test phase.
+ (delete-file "tests/test_netutils.py")
+ (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))
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1e697ec..62521c9 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4107,3 +4107,93 @@ complexity of Python source code.")
(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
+ "A Python 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))
+
+(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
+ "Simple 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))
+
+(define-public python-monotonic
+ (package
+ (name "python-monotonic")
+ (version "0.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/m/monotonic/monotonic-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1a24fr92qafmpspxscvn5ld4x293flv4ram2bq9iiqj3ba3ixs65"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/atdt/monotonic")
+ (synopsis
+ "An 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
next prev parent reply other threads:[~2015-07-15 23:32 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 23:32 [PATCH 00/11] Add a few modules from the Oslo library Cyril Roelandt
2015-07-15 23:32 ` [PATCH 01/11] gnu: Bump python-six to 1.9.0 Cyril Roelandt
2015-07-20 17:41 ` Thompson, David
2015-08-09 15:32 ` Cyril Roelandt
2015-07-15 23:32 ` [PATCH 02/11] gnu: Add oslotest Cyril Roelandt
2015-07-16 11:10 ` Mathieu Lirzin
2015-07-22 22:09 ` Cyril Roelandt
2015-07-20 16:14 ` Thompson, David
2015-07-22 22:13 ` Cyril Roelandt
2015-07-23 1:54 ` Ian Denhardt
2015-07-23 2:06 ` Thompson, David
2015-07-23 13:47 ` Ludovic Courtès
2015-07-23 16:46 ` Cyril Roelandt
2015-07-23 17:13 ` Thompson, David
2015-07-15 23:32 ` [PATCH 03/11] gnu: Add oslo.i18n Cyril Roelandt
2015-07-15 23:32 ` [PATCH 04/11] gnu: Add oslo.config Cyril Roelandt
2015-07-15 23:32 ` Cyril Roelandt [this message]
2015-07-15 23:32 ` [PATCH 06/11] gnu: Add oslo.context Cyril Roelandt
2015-07-15 23:32 ` [PATCH 07/11] gnu: Add oslo.serialization Cyril Roelandt
2015-07-15 23:32 ` [PATCH 08/11] gnu: Add oslo.log Cyril Roelandt
2015-07-15 23:32 ` [PATCH 09/11] gnu: Add oslo.cache Cyril Roelandt
2015-07-22 22:14 ` Cyril Roelandt
2015-07-15 23:32 ` [PATCH 10/11] gnu: Add oslo.middleware Cyril Roelandt
2015-07-15 23:32 ` [PATCH 11/11] gnu: Add oslosphinx Cyril Roelandt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1437003151-23838-6-git-send-email-tipecaml@gmail.com \
--to=tipecaml@gmail.com \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).