2017-11-05 12:37:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "six";
|
2021-06-18 21:47:38 +00:00
|
|
|
version = "1.16.0";
|
2017-11-05 12:37:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 21:47:38 +00:00
|
|
|
sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926";
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/six/";
|
2017-11-05 12:37:45 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2020-04-01 01:11:51 +00:00
|
|
|
}
|