From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 5/5] gnu: Add python-oslo.utils. Date: Wed, 9 Sep 2015 01:34:24 +0200 Message-ID: <1441755264-6790-5-git-send-email-tipecaml@gmail.com> References: <1441755264-6790-1-git-send-email-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZSPN-0004Tk-D6 for guix-devel@gnu.org; Tue, 08 Sep 2015 19:34:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZSPM-0002CH-7y for guix-devel@gnu.org; Tue, 08 Sep 2015 19:34:37 -0400 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:38364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZSPM-0002C6-1U for guix-devel@gnu.org; Tue, 08 Sep 2015 19:34:36 -0400 Received: by wiclk2 with SMTP id lk2so2386474wic.1 for ; Tue, 08 Sep 2015 16:34:35 -0700 (PDT) In-Reply-To: <1441755264-6790-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/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