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