2019-05-23 06:23:41 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
2020-09-26 18:30:57 +02:00
|
|
|
, pytestCheckHook
|
2019-05-23 06:23:41 +02:00
|
|
|
, sphinx
|
2020-09-26 18:30:57 +02:00
|
|
|
, stdenv
|
2019-05-23 06:23:41 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "curio";
|
2021-07-03 12:30:23 +02:00
|
|
|
version = "1.5";
|
|
|
|
disabled = !isPy3k;
|
2019-05-23 06:23:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-07-03 12:30:23 +02:00
|
|
|
sha256 = "sha256-rwghLlkLt9qOTMOcQgEnEUlNwg1iLxYhVbopbMLjvBA=";
|
2019-05-23 06:23:41 +02:00
|
|
|
};
|
|
|
|
|
2021-07-03 12:30:23 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
sphinx
|
2021-02-24 17:58:34 +01:00
|
|
|
];
|
|
|
|
|
2019-12-03 00:23:02 +01:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2020-09-26 18:30:57 +02:00
|
|
|
disabledTests = [
|
|
|
|
"test_aside_basic" # times out
|
|
|
|
"test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest
|
|
|
|
"test_ssl_outgoing" # touches network
|
|
|
|
] ++ lib.optionals (stdenv.isDarwin) [
|
|
|
|
"test_unix_echo" # socket bind error on hydra when built with other packages
|
|
|
|
"test_unix_ssl_server" # socket bind error on hydra when built with other packages
|
|
|
|
];
|
2019-05-23 06:23:41 +02:00
|
|
|
|
2021-07-03 12:30:23 +02:00
|
|
|
pythonImportsCheck = [ "curio" ];
|
|
|
|
|
2019-05-23 06:23:41 +02:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dabeaz/curio";
|
2021-07-03 12:30:23 +02:00
|
|
|
description = "Library for performing concurrent I/O with coroutines in Python";
|
2019-05-23 06:23:41 +02:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|