From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: [PATCH 03/11] gnu: Add oslo.i18n. Date: Thu, 16 Jul 2015 01:32:23 +0200 Message-ID: <1437003151-23838-4-git-send-email-tipecaml@gmail.com> References: <1437003151-23838-1-git-send-email-tipecaml@gmail.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFWAQ-0003MC-CW for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFWAO-0001I8-R6 for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:46 -0400 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:34298) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFWAO-0001HQ-Kk for guix-devel@gnu.org; Wed, 15 Jul 2015 19:32:44 -0400 Received: by wgkl9 with SMTP id l9so45064301wgk.1 for ; Wed, 15 Jul 2015 16:32:44 -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-testools): turn python-fixtures and python-testtools into propagated inputs. * gnu/packages/openstack.scm (python-oslo.i18n, python2-oslo.i18n): New variables. --- gnu/packages/openstack.scm | 34 ++++++++++++++++++++++++++++++++++ gnu/packages/python.scm | 5 +++-- 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index a02f4f0..9536578 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -140,6 +140,40 @@ into your setuptools run.") (package-with-python2 python-pbr)) ;; Packages from the Oslo library +(define-public python-oslo.i18n + (package + (name "python-oslo.i18n") + (version "2.1.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/o/oslo.i18n/oslo.i18n-" + version + ".tar.gz")) + (sha256 + (base32 + "0762dwhaswqqkg5qff11cd4y4b8vbh4qrqh9bd24cv8h75ay2f0s")))) + (build-system python-build-system) + (propagated-inputs + `(("python-babel" ,python-babel))) + (inputs + `(("python-pbr" ,python-pbr) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six) + ;; Tests + ("python-mock" ,python-mock) + ("python-mox3" ,python-mox3) + ("python-oslotest" ,python-oslotest) + ("python-testscenarios" ,python-testscenarios))) + (home-page "http://launchpad.net/oslo") + (synopsis "Oslo i18n library") + (description "Oslo i18n library") + (license asl2.0))) + +(define-public python2-oslo.i18n + (package-with-python2 python-oslo.i18n)) + (define-public python-oslotest (package (name "python-oslotest") diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index feb0575..dde487c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1459,11 +1459,12 @@ Python tests.") (base32 "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m")))) (build-system python-build-system) + (propagated-inputs + `(("python-fixtures" ,python-fixtures) + ("python-testtools" ,python-testtools))) (inputs `(("python-setuptools" ,python-setuptools) - ("python-testtools" ,python-testtools) ("python-subunit" ,python-subunit) - ("python-fixtures" ,python-fixtures) ("python-mimeparse" ,python-mimeparse))) (home-page "https://launchpad.net/testrepository") (synopsis "Database for Python test results") -- 2.1.4