2019-05-23 05:23:41 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, pytest
|
|
|
|
, sphinx
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "curio";
|
2020-06-06 07:47:02 +01:00
|
|
|
version = "1.2";
|
2019-05-23 05:23:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:02 +01:00
|
|
|
sha256 = "90f320fafb3f5b791f25ffafa7b561cc980376de173afd575a2114380de7939b";
|
2019-05-23 05:23:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
checkInputs = [ pytest sphinx ];
|
|
|
|
|
2019-12-02 23:23:02 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2019-05-23 05:23:41 +01:00
|
|
|
# test_aside_basic times out,
|
|
|
|
# test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
|
|
|
|
checkPhase = ''
|
2020-06-07 18:21:43 +01:00
|
|
|
pytest --deselect tests/test_task.py::test_aside_basic --deselect tests/test_task.py::test_aside_cancel -k "not test_ssl_outgoing"
|
2019-05-23 05:23:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dabeaz/curio";
|
|
|
|
description = "Library for performing concurrent I/O with coroutines in Python 3";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|