3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/eventlet/default.nix
2021-02-26 11:01:44 +01:00

44 lines
918 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, dnspython
, enum34
, greenlet
, monotonic
, six
, nose
}:
buildPythonPackage rec {
pname = "eventlet";
version = "0.30.1";
src = fetchPypi {
inherit pname version;
sha256 = "d00649a7e17de0bcddff1a96311ed3baf1b295b3223d4b71aceafe7b45e6d6f8";
};
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;
};
}