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