Merge pull request #121094 from wamserma/trollius-remove
This commit is contained in:
commit
dbc10ea68b
@ -1,11 +1,11 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||||
, isPy27, isPyPy, python, pycares, typing ? null
|
, python, pycares, typing ? null
|
||||||
, trollius ? null
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiodns";
|
pname = "aiodns";
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -13,8 +13,7 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pycares ]
|
propagatedBuildInputs = [ pycares ]
|
||||||
++ lib.optional (pythonOlder "3.7") typing
|
++ lib.optional (pythonOlder "3.7") typing;
|
||||||
++ lib.optional (isPy27 || isPyPy) trollius;
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} tests.py
|
${python.interpreter} tests.py
|
||||||
|
@ -1,35 +0,0 @@
|
|||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, eventlet
|
|
||||||
, trollius ? null
|
|
||||||
, mock
|
|
||||||
, python
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "aioeventlet";
|
|
||||||
# version is called 0.5.1 on PyPI, but the filename is aioeventlet-0.5.2.tar.gz
|
|
||||||
version = "0.5.2";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "cecb51ea220209e33b53cfb95124d90e4fcbee3ff8ba8a179a57120b8624b16a";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ eventlet trollius ];
|
|
||||||
buildInputs = [ mock ];
|
|
||||||
|
|
||||||
# 2 tests error out
|
|
||||||
doCheck = false;
|
|
||||||
checkPhase = ''
|
|
||||||
${python.interpreter} runtests.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "aioeventlet implements the asyncio API (PEP 3156) on top of eventlet. It makes";
|
|
||||||
homepage = "https://pypi.org/project/aioeventlet/";
|
|
||||||
license = licenses.asl20;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
@ -1,19 +1,18 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k,
|
{ lib, buildPythonPackage, fetchPypi, isPy3k,
|
||||||
six, txaio, twisted, zope_interface, cffi,
|
six, txaio, twisted, zope_interface, cffi,
|
||||||
trollius ? null, futures ? null,
|
|
||||||
mock, pytest, cryptography, pynacl
|
mock, pytest, cryptography, pynacl
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "autobahn";
|
pname = "autobahn";
|
||||||
version = "21.3.1";
|
version = "21.3.1";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "e126c1f583e872fb59e79d36977cfa1f2d0a8a79f90ae31f406faae7664b8e03";
|
sha256 = "e126c1f583e872fb59e79d36977cfa1f2d0a8a79f90ae31f406faae7664b8e03";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ] ++
|
propagatedBuildInputs = [ six txaio twisted zope_interface cffi cryptography pynacl ];
|
||||||
(lib.optionals (!isPy3k) [ trollius futures ]);
|
|
||||||
|
|
||||||
checkInputs = [ mock pytest ];
|
checkInputs = [ mock pytest ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
, nose
|
, nose
|
||||||
, msgpack
|
, msgpack
|
||||||
, greenlet
|
, greenlet
|
||||||
, trollius ? null
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
@ -13,6 +12,7 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pynvim";
|
pname = "pynvim";
|
||||||
version = "0.4.3";
|
version = "0.4.3";
|
||||||
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -28,8 +28,7 @@ buildPythonPackage rec {
|
|||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [ msgpack ]
|
propagatedBuildInputs = [ msgpack ]
|
||||||
++ lib.optional (!isPyPy) greenlet
|
++ lib.optional (!isPyPy) greenlet;
|
||||||
++ lib.optional (pythonOlder "3.4") trollius;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Python client for Neovim";
|
description = "Python client for Neovim";
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k, mock, unittest2, six, futures }:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "trollius";
|
|
||||||
version = "2.2.post1";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "06s44k6pcq35vl5j4i2pgkpb848djal818qypcvx44gyn4azjrqn";
|
|
||||||
};
|
|
||||||
|
|
||||||
checkInputs = [ mock ] ++ lib.optional (!isPy3k) unittest2;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ] ++ lib.optional (!isPy3k) futures;
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
./tests.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
disabled = isPy3k;
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Overrides PYTHONPATH causing dependencies not to be found
|
|
||||||
sed -i -e "s|test_env_var_debug|skip_test_env_var_debug|g" tests/test_tasks.py
|
|
||||||
'' + lib.optionalString stdenv.isDarwin ''
|
|
||||||
# Some of the tests fail on darwin with `error: AF_UNIX path too long'
|
|
||||||
# because of the *long* path names for sockets
|
|
||||||
sed -i -e "s|test_create_ssl_unix_connection|skip_test_create_ssl_unix_connection|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_create_unix_connection|skip_test_create_unix_connection|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_create_unix_server_existing_path_nonsock|skip_test_create_unix_server_existing_path_nonsock|g" tests/test_unix_events.py
|
|
||||||
sed -i -e "s|test_create_unix_server_existing_path_sock|skip_test_create_unix_server_existing_path_sock|g" tests/test_unix_events.py
|
|
||||||
sed -i -e "s|test_create_unix_server_ssl_verified|skip_test_create_unix_server_ssl_verified|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_create_unix_server_ssl_verify_failed|skip_test_create_unix_server_ssl_verify_failed|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_create_unix_server_ssl|skip_test_create_unix_server_ssl|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_create_unix_server|skip_test_create_unix_server|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_open_unix_connection_error|skip_test_open_unix_connection_error|g" tests/test_streams.py
|
|
||||||
sed -i -e "s|test_open_unix_connection_no_loop_ssl|skip_test_open_unix_connection_no_loop_ssl|g" tests/test_streams.py
|
|
||||||
sed -i -e "s|test_open_unix_connection|skip_test_open_unix_connection|g" tests/test_streams.py
|
|
||||||
sed -i -e "s|test_pause_reading|skip_test_pause_reading|g" tests/test_subprocess.py
|
|
||||||
sed -i -e "s|test_read_pty_output|skip_test_read_pty_output|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_start_unix_server|skip_test_start_unix_server|g" tests/test_streams.py
|
|
||||||
sed -i -e "s|test_unix_sock_client_ops|skip_test_unix_sock_client_ops|g" tests/test_events.py
|
|
||||||
sed -i -e "s|test_write_pty|skip_test_write_pty|g" tests/test_events.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Port of the asyncio project to Python 2.7";
|
|
||||||
homepage = "https://github.com/vstinner/trollius";
|
|
||||||
license = licenses.asl20;
|
|
||||||
maintainers = with maintainers; [ ];
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
diff --git i/tests/test_asyncio.py w/tests/test_asyncio.py
|
|
||||||
index 39d9e1a..05b7e6f 100644
|
|
||||||
--- i/tests/test_asyncio.py
|
|
||||||
+++ w/tests/test_asyncio.py
|
|
||||||
@@ -69,7 +69,7 @@ class AsyncioTests(test_utils.TestCase):
|
|
||||||
def step_future():
|
|
||||||
future = asyncio.Future()
|
|
||||||
self.loop.call_soon(future.set_result, "asyncio.Future")
|
|
||||||
- return (yield from future)
|
|
||||||
+ return (yield From(future))
|
|
||||||
|
|
||||||
# test in release mode
|
|
||||||
trollius.coroutines._DEBUG = False
|
|
@ -247,8 +247,6 @@ in {
|
|||||||
|
|
||||||
aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { };
|
aioesphomeapi = callPackage ../development/python-modules/aioesphomeapi { };
|
||||||
|
|
||||||
aioeventlet = callPackage ../development/python-modules/aioeventlet { };
|
|
||||||
|
|
||||||
aioextensions = callPackage ../development/python-modules/aioextensions { };
|
aioextensions = callPackage ../development/python-modules/aioextensions { };
|
||||||
|
|
||||||
aiofiles = callPackage ../development/python-modules/aiofiles { };
|
aiofiles = callPackage ../development/python-modules/aiofiles { };
|
||||||
|
@ -604,8 +604,6 @@ with self; with super; {
|
|||||||
|
|
||||||
traitlets = callPackage ../development/python-modules/traitlets/4.nix { };
|
traitlets = callPackage ../development/python-modules/traitlets/4.nix { };
|
||||||
|
|
||||||
trollius = callPackage ../development/python-modules/trollius { };
|
|
||||||
|
|
||||||
ttystatus = callPackage ../development/python-modules/ttystatus { };
|
ttystatus = callPackage ../development/python-modules/ttystatus { };
|
||||||
|
|
||||||
TurboCheetah = callPackage ../development/python-modules/TurboCheetah { };
|
TurboCheetah = callPackage ../development/python-modules/TurboCheetah { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user