gnu: Add python-contextlib2.

* gnu/packages/python-xyz.scm (python-contextlib2): New variable.
This commit is contained in:
Ricardo Wurmus 2019-06-25 10:54:39 +02:00 committed by Ricardo Wurmus
parent bb74ea0990
commit 3e8f76d801
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -7924,6 +7924,27 @@ (define-public python-argparse-manpage
@code{ArgumentParser} object.")
(license license:asl2.0)))
(define-public python-contextlib2
(package
(name "python-contextlib2")
(version "0.5.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "contextlib2" version))
(sha256
(base32
"0j6ad6lwwyc9kv71skj098v5l7x5biyj2hs4lc5x1kcixqcr97sh"))))
(build-system python-build-system)
(home-page "http://contextlib2.readthedocs.org/")
(synopsis "Tools for decorators and context managers")
(description "This module is primarily a backport of the Python
3.2 contextlib to earlier Python versions. Like contextlib, it
provides utilities for common tasks involving decorators and context
managers. It also contains additional features that are not part of
the standard library.")
(license license:psfl)))
(define-public python2-contextlib2
(package
(name "python2-contextlib2")