nixpkgs/pkgs/development/python-modules/curio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
1.3 KiB
Nix
Raw Normal View History

2019-05-23 04:23:41 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
2019-05-23 04:23:41 +00:00
, sphinx
, stdenv
2019-05-23 04:23:41 +00:00
}:
buildPythonPackage rec {
pname = "curio";
version = "1.6";
format = "setuptools";
2021-07-03 10:30:23 +00:00
disabled = !isPy3k;
2019-05-23 04:23:41 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-VipYbbICFrp9K+gmPeuesHnlYEj5uJBtEdX0WqgcUkc=";
2019-05-23 04:23:41 +00:00
};
nativeCheckInputs = [
2021-07-03 10:30:23 +00:00
pytestCheckHook
sphinx
];
__darwinAllowLocalNetworking = true;
disabledTests = [
2023-08-01 07:01:21 +00:00
"test_aside_basic" # times out
"test_write_timeout" # flaky, does not always time out
"test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest
"test_ssl_outgoing" # touches network
"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
] ++ lib.optionals stdenv.isDarwin [
# connects to python.org:1, expects an OsError, hangs in the darwin sandbox
"test_create_bad_connection"
];
2019-05-23 04:23:41 +00:00
2021-07-03 10:30:23 +00:00
pythonImportsCheck = [ "curio" ];
2019-05-23 04:23:41 +00:00
meta = with lib; {
2021-07-03 10:30:23 +00:00
description = "Library for performing concurrent I/O with coroutines in Python";
homepage = "https://github.com/dabeaz/curio";
changelog = "https://github.com/dabeaz/curio/raw/${version}/CHANGES";
2019-05-23 04:23:41 +00:00
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
};
}