From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 04/11] gnu: Add oslo.config Date: Thu, 16 Jul 2015 01:32:24 +0200 Message-ID: <1437003151-23838-5-git-send-email-tipecaml@gmail.com> References: <1437003151-23838-1-git-send-email-tipecaml@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFWAR-0003Oa-Vs for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFWAQ-0001Ku-P5 for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:47 -0400 Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:34050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFWAQ-0001KH-Ec for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:46 -0400 Received: by wibud3 with SMTP id ud3so1654597wib.1 for ; Wed, 15 Jul 2015 16:32:45 -0700 (PDT) In-Reply-To: <1437003151-23838-1-git-send-email-tipecaml@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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