2017-11-05 12:37:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "six";
|
2020-02-06 15:01:26 +00:00
|
|
|
version = "1.14.0";
|
2017-11-05 12:37:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-06 15:01:26 +00:00
|
|
|
sha256 = "236bdbdce46e6e6a3d61a337c0f8b763ca1e8717c03b369e87a7ec7ce1319c0a";
|
2017-11-05 12:37:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test test_six.py
|
|
|
|
'';
|
|
|
|
|
2017-12-29 19:27:27 +00:00
|
|
|
# To prevent infinite recursion with pytest
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-11-05 12:37:45 +00:00
|
|
|
meta = {
|
|
|
|
description = "A Python 2 and 3 compatibility library";
|
2017-11-10 21:13:27 +00:00
|
|
|
homepage = https://pypi.python.org/pypi/six/;
|
2017-11-05 12:37:45 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|