1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, dnspython
6, enum34
7, greenlet
8, monotonic
9, six
10, nose
11}:
12
13buildPythonPackage rec {
14 pname = "eventlet";
15 version = "0.30.2";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "1811b122d9a45eb5bafba092d36911bca825f835cb648a862bbf984030acff9d";
20 };
21
22 propagatedBuildInputs = [ dnspython greenlet monotonic six ]
23 ++ lib.optional (pythonOlder "3.4") enum34;
24
25 prePatch = ''
26 substituteInPlace setup.py \
27 --replace "dnspython >= 1.15.0, < 2.0.0" "dnspython"
28 '';
29
30 checkInputs = [ nose ];
31
32 doCheck = false; # too much transient errors to bother
33
34 # unfortunately, it needs /etc/protocol to be present to not fail
35 #pythonImportsCheck = [ "eventlet" ];
36
37 meta = with lib; {
38 homepage = "https://pypi.python.org/pypi/eventlet/";
39 description = "A concurrent networking library for Python";
40 license = licenses.mit;
41 };
42
43}