Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 36 lines 872 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5, pytest 6, sphinx 7}: 8 9buildPythonPackage rec { 10 pname = "curio"; 11 version = "1.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "90f320fafb3f5b791f25ffafa7b561cc980376de173afd575a2114380de7939b"; 16 }; 17 18 disabled = !isPy3k; 19 20 checkInputs = [ pytest sphinx ]; 21 22 __darwinAllowLocalNetworking = true; 23 24 # test_aside_basic times out, 25 # test_aside_cancel fails because modifies PYTHONPATH and cant find pytest 26 checkPhase = '' 27 pytest --deselect tests/test_task.py::test_aside_basic --deselect tests/test_task.py::test_aside_cancel -k "not test_ssl_outgoing" 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/dabeaz/curio"; 32 description = "Library for performing concurrent I/O with coroutines in Python 3"; 33 license = licenses.bsd3; 34 maintainers = [ maintainers.marsam ]; 35 }; 36}