* gnu/packages/python.scm (python-wrapt, python2-wrapt, python-iso8601, python2-iso8601, python-monotonic python2-monotonic): New variables. * gnu/packages/openstack.scm (python-debtcollector, python2-debtcollector, python-oslo.util python2-oslo.util): New variables. --- gnu/packages/openstack.scm | 84 +++++++++++++++++++++++++++++++++++++++++++ gnu/packages/python.scm | 90 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 174 insertions(+)
diff --git a/gnu/packages/openstack.scm b/gnu/packages/openstack.scm index d117a4f..3a3b129 100644 --- a/gnu/packages/openstack.scm +++ b/gnu/packages/openstack.scm @@ -25,6 +25,42 @@ #:select (asl2.0)) #:use-module (guix packages)) +(define-public python-debtcollector + (package + (name "python-debtcollector") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/d/debtcollector/" + "debtcollector-" version ".tar.gz")) + (sha256 + (base32 + "0amlcg5f98lk2mfzdg44slh1nsi2y4ds123g5d57376fjk2b3njd")))) + (build-system python-build-system) + (propagated-inputs + `(("python-wrapt" ,python-wrapt))) + (inputs + `(("python-babel" ,python-babel) + ("python-pbr" ,python-pbr) + ("python-setuptools" ,python-setuptools) + ("python-six" ,python-six) + ("python-wrapt" ,python-wrapt) + ;; Tests. + ("python-oslotest" ,python-oslotest))) + (home-page "http://www.openstack.org/") + (synopsis + "A collection of Python deprecation patterns and strategies that help you +collect your technical debt in a non-destructive manner.") + (description + "A collection of Python deprecation patterns and strategies that help you +collect your technical debt in a non-destructive manner.") + (license asl2.0))) + +(define-public python2-debtcollector + (package-with-python2 python-debtcollector)) + (define-public python-mox3 (package (name "python-mox3") @@ -292,3 +328,51 @@ 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 "1.9.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 + "1amhpachr5b5r03rz51ydwxa5d61hlv71ipmfhhi8hkg98njrcaw")) + (snippet + '(begin + ;; setuptools fails to import these files during the test phase. + (delete-file "tests/test_netutils.py") + (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)) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 1e697ec..62521c9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -4107,3 +4107,93 @@ complexity of Python source code.") (define-public python2-netaddr (package-with-python2 python-netaddr)) + +(define-public python-wrapt + (package + (name "python-wrapt") + (version "1.10.5") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/w/wrapt/wrapt-" + version + ".tar.gz")) + (sha256 + (base32 + "0cq8rlpzkxzk48b50yrfhzn1d1hrq4gjcdqlrgq4v5palgiv9jwr")))) + (build-system python-build-system) + (arguments + ;; Lots of different test configurations. TODO: run them all. + `(#:tests? #f)) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page + "https://github.com/GrahamDumpleton/wrapt") + (synopsis + "A Python module for decorators, wrappers and monkey patching.") + (description + "The aim of the wrapt module is to provide a transparent object proxy for +Python, which can be used as the basis for the construction of function +wrappers and decorator functions.") + (license bsd-2))) + +(define-public python2-wrapt + (package-with-python2 python-wrapt)) + +(define-public python-iso8601 + (package + (name "python-iso8601") + (version "0.1.10") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/i/iso8601/iso8601-" + version + ".tar.gz")) + (sha256 + (base32 + "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page + "https://bitbucket.org/micktwomey/pyiso8601") + (synopsis + "Simple module to parse ISO 8601 dates") + (description + "This module parses the most common forms of ISO 8601 date strings (e.g. +2007-01-14T20:34:22+00:00) into datetime objects.") + (license license:expat))) + +(define-public python2-iso8601 + (package-with-python2 python-iso8601)) + +(define-public python-monotonic + (package + (name "python-monotonic") + (version "0.2") + (source + (origin + (method url-fetch) + (uri (string-append + "https://pypi.python.org/packages/source/m/monotonic/monotonic-" + version + ".tar.gz")) + (sha256 + (base32 + "1a24fr92qafmpspxscvn5ld4x293flv4ram2bq9iiqj3ba3ixs65")))) + (build-system python-build-system) + (inputs + `(("python-setuptools" ,python-setuptools))) + (home-page "https://github.com/atdt/monotonic") + (synopsis + "An implementation of time.monotonic() for Python 2 & < 3.3") + (description + "This module provides a monotonic() function which returns the value (in +fractional seconds) of a clock which never goes backwards.") + (license asl2.0))) + +(define-public python2-monotonic + (package-with-python2 python-monotonic)) -- 2.1.4