git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.trollius: 1.0.4 -> 2.2
commit820feccb18ba0948b7d077bccb13b2912b168873 authorBen Wolsieffer <benwolsieffer@gmail.com> dateSun 2 Sep 2018, 23:40 (8 years ago) parentfcaae4f
1 file changed+30−26
pkgs/development/python-modules/trollius/default.nix+30−26
pkgs/development/python-modules/trollius/default.nix+30−26
@@ -1,45 +1,49 @@
1−{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, isPyPy, mock, futures }:
1+{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k, mock, unittest2, six, futures }:
2+
23buildPythonPackage rec {
34 pname = "trollius";
4− version = "1.0.4";
5+ version = "2.2";
56
67 src = fetchPypi {
78 inherit pname version;
8− sha256 = "0xny8y12x3wrflmyn6xi8a7n3m3ac80fgmgzphx5jbbaxkjcm148";
9+ sha256 = "093978388qvw5hyscbbj062dbdc2761xs9yzrq26mh63g689lnxk";
910 };
1011
11− checkInputs = [ mock ];
12+ checkInputs = [ mock ] ++ lib.optional (!isPy3k) unittest2;
1213
13− propagatedBuildInputs = lib.optionals (isPy27 || isPyPy) [ futures ];
14+ propagatedBuildInputs = [ six ] ++ lib.optional (!isPy3k) futures;
1415
1516 patches = [
1617 ./tests.patch
1718 ];
1819
19− # Some of the tests fail on darwin with `error: AF_UNIX path too long'
20− # because of the *long* path names for sockets
21− patchPhase = lib.optionalString stdenv.isDarwin ''
22− sed -i -e "s|test_create_ssl_unix_connection|skip_test_create_ssl_unix_connection|g" tests/test_events.py
23− sed -i -e "s|test_create_unix_connection|skip_test_create_unix_connection|g" tests/test_events.py
24− 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
25− 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
26− sed -i -e "s|test_create_unix_server_ssl_verified|skip_test_create_unix_server_ssl_verified|g" tests/test_events.py
27− sed -i -e "s|test_create_unix_server_ssl_verify_failed|skip_test_create_unix_server_ssl_verify_failed|g" tests/test_events.py
28− sed -i -e "s|test_create_unix_server_ssl|skip_test_create_unix_server_ssl|g" tests/test_events.py
29− sed -i -e "s|test_create_unix_server|skip_test_create_unix_server|g" tests/test_events.py
30− sed -i -e "s|test_open_unix_connection_error|skip_test_open_unix_connection_error|g" tests/test_streams.py
31− sed -i -e "s|test_open_unix_connection_no_loop_ssl|skip_test_open_unix_connection_no_loop_ssl|g" tests/test_streams.py
32− sed -i -e "s|test_open_unix_connection|skip_test_open_unix_connection|g" tests/test_streams.py
33− sed -i -e "s|test_pause_reading|skip_test_pause_reading|g" tests/test_subprocess.py
34− sed -i -e "s|test_read_pty_output|skip_test_read_pty_output|g" tests/test_events.py
35− sed -i -e "s|test_start_unix_server|skip_test_start_unix_server|g" tests/test_streams.py
36− sed -i -e "s|test_unix_sock_client_ops|skip_test_unix_sock_client_ops|g" tests/test_events.py
37− sed -i -e "s|test_write_pty|skip_test_write_pty|g" tests/test_events.py
20+ postPatch = ''
21+ # Overrides PYTHONPATH causing dependencies not to be found
22+ sed -i -e "s|test_env_var_debug|skip_test_env_var_debug|g" tests/test_tasks.py
23+ '' + lib.optionalString stdenv.isDarwin ''
24+ # Some of the tests fail on darwin with `error: AF_UNIX path too long'
25+ # because of the *long* path names for sockets
26+ sed -i -e "s|test_create_ssl_unix_connection|skip_test_create_ssl_unix_connection|g" tests/test_events.py
27+ sed -i -e "s|test_create_unix_connection|skip_test_create_unix_connection|g" tests/test_events.py
28+ 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
29+ 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
30+ sed -i -e "s|test_create_unix_server_ssl_verified|skip_test_create_unix_server_ssl_verified|g" tests/test_events.py
31+ sed -i -e "s|test_create_unix_server_ssl_verify_failed|skip_test_create_unix_server_ssl_verify_failed|g" tests/test_events.py
32+ sed -i -e "s|test_create_unix_server_ssl|skip_test_create_unix_server_ssl|g" tests/test_events.py
33+ sed -i -e "s|test_create_unix_server|skip_test_create_unix_server|g" tests/test_events.py
34+ sed -i -e "s|test_open_unix_connection_error|skip_test_open_unix_connection_error|g" tests/test_streams.py
35+ sed -i -e "s|test_open_unix_connection_no_loop_ssl|skip_test_open_unix_connection_no_loop_ssl|g" tests/test_streams.py
36+ sed -i -e "s|test_open_unix_connection|skip_test_open_unix_connection|g" tests/test_streams.py
37+ sed -i -e "s|test_pause_reading|skip_test_pause_reading|g" tests/test_subprocess.py
38+ sed -i -e "s|test_read_pty_output|skip_test_read_pty_output|g" tests/test_events.py
39+ sed -i -e "s|test_start_unix_server|skip_test_start_unix_server|g" tests/test_streams.py
40+ sed -i -e "s|test_unix_sock_client_ops|skip_test_unix_sock_client_ops|g" tests/test_events.py
41+ sed -i -e "s|test_write_pty|skip_test_write_pty|g" tests/test_events.py
3842 '';
3943
4044 meta = with stdenv.lib; {
41− description = "Port of the Tulip project (asyncio module, PEP 3156) on Python 2";
42− homepage = "https://bitbucket.org/enovance/trollius";
45+ description = "Port of the asyncio project to Python 2.7";
46+ homepage = https://github.com/vstinner/trollius;
4347 license = licenses.asl20;
4448 maintainers = with maintainers; [ garbas ];
4549 };