1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5}:
6
7buildPythonPackage rec {
8 pname = "contextlib2";
9 version = "0.6.0.post1";
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e";
15 };
16
17 # requires unittest2, which has been removed
18 doCheck = false;
19
20 meta = {
21 description = "Backports and enhancements for the contextlib module";
22 homepage = "https://contextlib2.readthedocs.org/";
23 license = lib.licenses.psfl;
24 };
25}