[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 04/11] gnu: Add oslo.config
From: |
Cyril Roelandt |
Subject: |
[PATCH 04/11] gnu: Add oslo.config |
Date: |
Thu, 16 Jul 2015 01:32:24 +0200 |
* 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
- [PATCH 02/11] gnu: Add oslotest., (continued)
- [PATCH 02/11] gnu: Add oslotest., Cyril Roelandt, 2015/07/15
- Re: [PATCH 02/11] gnu: Add oslotest., Mathieu Lirzin, 2015/07/16
- Re: [PATCH 02/11] gnu: Add oslotest., Thompson, David, 2015/07/20
- Re: [PATCH 02/11] gnu: Add oslotest., Cyril Roelandt, 2015/07/22
- Re: [PATCH 02/11] gnu: Add oslotest., Ian Denhardt, 2015/07/22
- Re: [PATCH 02/11] gnu: Add oslotest., Thompson, David, 2015/07/22
- Re: [PATCH 02/11] gnu: Add oslotest., Ludovic Courtès, 2015/07/23
- Re: [PATCH 02/11] gnu: Add oslotest., Cyril Roelandt, 2015/07/23
- Re: [PATCH 02/11] gnu: Add oslotest., Thompson, David, 2015/07/23
[PATCH 04/11] gnu: Add oslo.config,
Cyril Roelandt <=
[PATCH 05/11] gnu: Add oslo.utils., Cyril Roelandt, 2015/07/15
[PATCH 06/11] gnu: Add oslo.context., Cyril Roelandt, 2015/07/15
[PATCH 07/11] gnu: Add oslo.serialization., Cyril Roelandt, 2015/07/15
[PATCH 08/11] gnu: Add oslo.log., Cyril Roelandt, 2015/07/15
[PATCH 09/11] gnu: Add oslo.cache., Cyril Roelandt, 2015/07/15
[PATCH 10/11] gnu: Add oslo.middleware., Cyril Roelandt, 2015/07/15
[PATCH 11/11] gnu: Add oslosphinx., Cyril Roelandt, 2015/07/15