2017-11-05 12:37:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "six";
|
2020-06-06 07:47:31 +01:00
|
|
|
version = "1.15.0";
|
2017-11-05 12:37:45 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:31 +01:00
|
|
|
sha256 = "30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259";
|
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 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/six/";
|
2017-11-05 12:37:45 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|