nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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_write_timeout" # flaky, does not always time out
30 "test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest
31 "test_ssl_outgoing" # touches network
32 ] ++ lib.optionals stdenv.isDarwin [
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 homepage = "https://github.com/dabeaz/curio";
41 description = "Library for performing concurrent I/O with coroutines in Python";
42 license = licenses.bsd3;
43 maintainers = [ maintainers.marsam ];
44 };
45}