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