mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 05:00:19 +00:00
Merge pull request #154897 from fabaff/fix-eventlet
This commit is contained in:
commit
2c7c494a4d
@ -1,7 +1,7 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, dnspython
|
, dnspython
|
||||||
, greenlet
|
, greenlet
|
||||||
@ -10,22 +10,35 @@
|
|||||||
, nose
|
, nose
|
||||||
, pyopenssl
|
, pyopenssl
|
||||||
, iana-etc
|
, iana-etc
|
||||||
|
, pytestCheckHook
|
||||||
, libredirect
|
, libredirect
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "eventlet";
|
pname = "eventlet";
|
||||||
version = "0.33.0";
|
version = "0.33.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "eventlet";
|
||||||
sha256 = "80144f489c1bb273a51b6f96ff9785a382d2866b9bab1f5bd748385019f4141f";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-kE/eYBbaTt1mPGoUIMhonvFBlQOdAfPU5GvCvPaRHvs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ dnspython greenlet pyopenssl six ]
|
propagatedBuildInputs = [
|
||||||
++ lib.optional (pythonOlder "3.5") monotonic;
|
dnspython
|
||||||
|
greenlet
|
||||||
|
pyopenssl
|
||||||
|
six
|
||||||
|
] ++ lib.optional (pythonOlder "3.5") [
|
||||||
|
monotonic
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ nose ];
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
nose
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
@ -37,23 +50,48 @@ buildPythonPackage rec {
|
|||||||
export EVENTLET_IMPORT_VERSION_ONLY=0
|
export EVENTLET_IMPORT_VERSION_ONLY=0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
disabledTests = [
|
||||||
runHook preCheck
|
# Tests requires network access
|
||||||
|
"test_017_ssl_zeroreturnerror"
|
||||||
|
"test_getaddrinfo"
|
||||||
|
"test_hosts_no_network"
|
||||||
|
"test_leakage_from_tracebacks"
|
||||||
|
"test_patcher_existing_locks_locked"
|
||||||
|
];
|
||||||
|
|
||||||
# test_fork-after_monkey_patch fails on aarch64 on hydra only
|
disabledTestPaths = [
|
||||||
# AssertionError: Expected single line "pass" in stdout
|
# Tests are out-dated
|
||||||
nosetests --exclude test_getaddrinfo --exclude test_hosts_no_network --exclude test_fork_after_monkey_patch
|
"tests/stdlib/test_asynchat.py"
|
||||||
|
"tests/stdlib/test_asyncore.py"
|
||||||
runHook postCheck
|
"tests/stdlib/test_ftplib.py"
|
||||||
'';
|
"tests/stdlib/test_httplib.py"
|
||||||
|
"tests/stdlib/test_httpservers.py"
|
||||||
|
"tests/stdlib/test_os.py"
|
||||||
|
"tests/stdlib/test_queue.py"
|
||||||
|
"tests/stdlib/test_select.py"
|
||||||
|
"tests/stdlib/test_SimpleHTTPServer.py"
|
||||||
|
"tests/stdlib/test_socket_ssl.py"
|
||||||
|
"tests/stdlib/test_socket.py"
|
||||||
|
"tests/stdlib/test_socketserver.py"
|
||||||
|
"tests/stdlib/test_ssl.py"
|
||||||
|
"tests/stdlib/test_subprocess.py"
|
||||||
|
"tests/stdlib/test_thread__boundedsem.py"
|
||||||
|
"tests/stdlib/test_thread.py"
|
||||||
|
"tests/stdlib/test_threading_local.py"
|
||||||
|
"tests/stdlib/test_threading.py"
|
||||||
|
"tests/stdlib/test_timeout.py"
|
||||||
|
"tests/stdlib/test_urllib.py"
|
||||||
|
"tests/stdlib/test_urllib2_localnet.py"
|
||||||
|
"tests/stdlib/test_urllib2.py"
|
||||||
|
];
|
||||||
|
|
||||||
# unfortunately, it needs /etc/protocol to be present to not fail
|
# unfortunately, it needs /etc/protocol to be present to not fail
|
||||||
# pythonImportsCheck = [ "eventlet" ];
|
# pythonImportsCheck = [ "eventlet" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/eventlet/eventlet/";
|
|
||||||
description = "A concurrent networking library for Python";
|
description = "A concurrent networking library for Python";
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
homepage = "https://github.com/eventlet/eventlet/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user