1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "six";
9 version = "1.11.0";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "70e8a77beed4562e7f14fe23a786b54f6296e34344c23bc42f07b15018ff98e9";
14 };
15
16 checkInputs = [ pytest ];
17
18 checkPhase = ''
19 py.test test_six.py
20 '';
21
22 # To prevent infinite recursion with pytest
23 doCheck = false;
24
25 meta = {
26 description = "A Python 2 and 3 compatibility library";
27 homepage = https://pypi.python.org/pypi/six/;
28 license = lib.licenses.mit;
29 };
30}