2018-12-02 21:27:30 +00:00
|
|
|
{ lib
|
2018-10-16 19:37:33 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-02 21:27:30 +00:00
|
|
|
, pythonOlder
|
|
|
|
, dnspython
|
|
|
|
, enum34
|
2018-10-16 19:37:33 +01:00
|
|
|
, greenlet
|
2018-12-02 21:27:30 +00:00
|
|
|
, monotonic
|
|
|
|
, six
|
|
|
|
, nose
|
2018-10-16 19:37:33 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "eventlet";
|
2021-02-20 09:09:09 +00:00
|
|
|
version = "0.30.1";
|
2018-10-16 19:37:33 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:09 +00:00
|
|
|
sha256 = "d00649a7e17de0bcddff1a96311ed3baf1b295b3223d4b71aceafe7b45e6d6f8";
|
2018-10-16 19:37:33 +01:00
|
|
|
};
|
|
|
|
|
2020-08-17 04:47:49 +01: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"
|
|
|
|
'';
|
|
|
|
|
2018-12-02 21:27:30 +00:00
|
|
|
checkInputs = [ nose ];
|
2018-10-16 19:37:33 +01:00
|
|
|
|
|
|
|
doCheck = false; # too much transient errors to bother
|
|
|
|
|
2020-08-17 04:47:49 +01:00
|
|
|
# unfortunately, it needs /etc/protocol to be present to not fail
|
|
|
|
#pythonImportsCheck = [ "eventlet" ];
|
2018-10-16 19:37:33 +01:00
|
|
|
|
2018-12-02 21:27:30 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/eventlet/";
|
2018-10-16 19:37:33 +01:00
|
|
|
description = "A concurrent networking library for Python";
|
2020-08-17 04:42:31 +01:00
|
|
|
license = licenses.mit;
|
2018-10-16 19:37:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|