2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, dnspython
|
|
|
|
, enum34
|
|
|
|
, greenlet
|
|
|
|
, monotonic
|
|
|
|
, six
|
|
|
|
, nose
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eventlet";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.31.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "b36ec2ecc003de87fc87b93197d77fea528aa0f9204a34fdf3b2f8d0f01e017b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [ dnspython greenlet monotonic six ]
|
|
|
|
++ lib.optional (pythonOlder "3.4") enum34;
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "dnspython >= 1.15.0, < 2.0.0" "dnspython"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
doCheck = false; # too much transient errors to bother
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# unfortunately, it needs /etc/protocol to be present to not fail
|
|
|
|
#pythonImportsCheck = [ "eventlet" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://pypi.python.org/pypi/eventlet/";
|
|
|
|
description = "A concurrent networking library for Python";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|