depot/third_party/nixpkgs/pkgs/development/python-modules/curio/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

36 lines
872 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytest
, sphinx
}:
buildPythonPackage rec {
pname = "curio";
version = "1.2";
src = fetchPypi {
inherit pname version;
sha256 = "90f320fafb3f5b791f25ffafa7b561cc980376de173afd575a2114380de7939b";
};
disabled = !isPy3k;
checkInputs = [ pytest sphinx ];
__darwinAllowLocalNetworking = true;
# test_aside_basic times out,
# test_aside_cancel fails because modifies PYTHONPATH and cant find pytest
checkPhase = ''
pytest --deselect tests/test_task.py::test_aside_basic --deselect tests/test_task.py::test_aside_cancel -k "not test_ssl_outgoing"
'';
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 ];
};
}