1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pytestCheckHook
6, sphinx
7, stdenv
8}:
9
10buildPythonPackage rec {
11 pname = "curio";
12 version = "1.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "90f320fafb3f5b791f25ffafa7b561cc980376de173afd575a2114380de7939b";
17 };
18
19 disabled = !isPy3k;
20
21 checkInputs = [ pytestCheckHook sphinx ];
22
23 __darwinAllowLocalNetworking = true;
24
25 disabledTests = [
26 "test_aside_basic" # times out
27 "test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest
28 "test_ssl_outgoing" # touches network
29 ] ++ lib.optionals (stdenv.isDarwin) [
30 "test_unix_echo" # socket bind error on hydra when built with other packages
31 "test_unix_ssl_server" # socket bind error on hydra when built with other packages
32 ];
33
34 meta = with lib; {
35 homepage = "https://github.com/dabeaz/curio";
36 description = "Library for performing concurrent I/O with coroutines in Python 3";
37 license = licenses.bsd3;
38 maintainers = [ maintainers.marsam ];
39 };
40}