9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
43 lines
918 B
Nix
43 lines
918 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, dnspython
|
|
, enum34
|
|
, greenlet
|
|
, monotonic
|
|
, six
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eventlet";
|
|
version = "0.30.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1811b122d9a45eb5bafba092d36911bca825f835cb648a862bbf984030acff9d";
|
|
};
|
|
|
|
propagatedBuildInputs = [ dnspython greenlet monotonic six ]
|
|
++ lib.optional (pythonOlder "3.4") enum34;
|
|
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "dnspython >= 1.15.0, < 2.0.0" "dnspython"
|
|
'';
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
doCheck = false; # too much transient errors to bother
|
|
|
|
# unfortunately, it needs /etc/protocol to be present to not fail
|
|
#pythonImportsCheck = [ "eventlet" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pypi.python.org/pypi/eventlet/";
|
|
description = "A concurrent networking library for Python";
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|