From: Cyril Roelandt <tipecaml@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 04/11] gnu: Add oslo.config
Date: Thu, 16 Jul 2015 01:32:24 +0200 [thread overview]
Message-ID: <1437003151-23838-5-git-send-email-tipecaml@gmail.com> (raw)
In-Reply-To: <1437003151-23838-1-git-send-email-tipecaml@gmail.com>
* gnu/packages/python.scm (python-netaddr, python2-netaddr): New variables.
* gnu/packages/openstack.scm (python-stevedore, python2-stevedore,
python-oslo.config, python2-oslo.config): New variables.
---
gnu/packages/openstack.scm | 81 ++++++++++++++++++++++++++++++++++++++++++++++
gnu/packages/python.scm | 28 ++++++++++++++++
2 files changed, 109 insertions(+)
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm
index 9536578..d117a4f 100644
--- a/gnu/packages/openstack.scm
+++ b/gnu/packages/openstack.scm
@@ -139,7 +139,88 @@ into your setuptools run.")
(define-public python2-pbr
(package-with-python2 python-pbr))
+(define-public python-stevedore
+ (package
+ (name "python-stevedore")
+ (version "1.6.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/s/stevedore/stevedore-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "09gcy9gqyp2nzyh2yipwnw7vxfxfc2al5q1gd8g6abvlxhqsmcns"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-pbr" ,python-pbr)
+ ("python-setuptools" ,python-setuptools)
+ ("python-six" ,python-six)
+ ;; Tests
+ ("python-docutils" ,python-docutils)
+ ("python-mock" ,python-mock)
+ ("python-oslotest" ,python-oslotest)
+ ("python-sphinx" ,python-sphinx)))
+ (home-page
+ "https://github.com/dreamhost/stevedore")
+ (synopsis
+ "Manage dynamic plugins for Python applications")
+ (description
+ "Python makes loading code dynamically easy, allowing you to configure
+and extend your application by discovering and loading extensions (“plugins”)
+at runtime. Many applications implement their own library for doing this,
+using __import__ or importlib. stevedore avoids creating yet another extension
+mechanism by building on top of setuptools entry points. The code for managing
+entry points tends to be repetitive, though, so stevedore provides manager
+classes for implementing common patterns for using dynamically loaded
+extensions.")
+ (license asl2.0)))
+
+(define-public python2-stevedore
+ (package-with-python2 python-stevedore))
+
+
;; Packages from the Oslo library
+(define-public python-oslo.config
+ (package
+ (name "python-oslo.config")
+ (version "1.15.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/o/oslo.config/oslo.config-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0nn522k6ba3zbi5d20j28fvcpn0d1rxh6zq1nfdlii7325rxv4y4"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-netaddr" ,python-netaddr)
+ ("python-six" ,python-six)))
+ (inputs
+ `(("python-pbr" ,python-pbr)
+ ("python-setuptools" ,python-setuptools)
+ ("python-stevedore" ,python-stevedore)
+ ;; Tests
+ ("python-oslo.i18n" ,python-oslo.i18n)
+ ("python-mock" ,python-mock)
+ ("python-oslotest" ,python-oslotest)
+ ("python-testscenarios" ,python-testscenarios)
+ ))
+ (home-page "https://launchpad.net/oslo")
+ (synopsis "Oslo Configuration API")
+ (description
+ "The Oslo configuration API supports parsing command line arguments and
+.ini style configuration files.")
+ (license asl2.0)))
+
+(define-public python2-oslo.config
+ (package-with-python2 python-oslo.config))
+
(define-public python-oslo.i18n
(package
(name "python-oslo.i18n")
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dde487c..1e697ec 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4079,3 +4079,31 @@ complexity of Python source code.")
(define-public python2-appdirs
(package-with-python2 python-appdirs))
+
+(define-public python-netaddr
+ (package
+ (name "python-netaddr")
+ (version "0.7.15")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://pypi.python.org/packages/source/n/netaddr/netaddr-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "04cxabslvd43jhrvbssvkssqyzaiczjpdf1b4cyzk54s9qzvpdfm"))))
+ (build-system python-build-system)
+ (arguments `(#:tests? #f)) ;; No tests.
+ (inputs
+ `(("python-setuptools" ,python-setuptools)))
+ (home-page "https://github.com/drkjam/netaddr/")
+ (synopsis
+ "Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses")
+ (description
+ "A Python library for representing and manipulating network addresses.")
+ (license bsd-3)))
+
+(define-public python2-netaddr
+ (package-with-python2 python-netaddr))
--
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 ` Cyril Roelandt [this message]
2015-07-15 23:32 ` [PATCH 05/11] gnu: Add oslo.utils Cyril Roelandt
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-5-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).