30 # escape infinite recursion with pytest-trio
31 pytest-trio' = (pytest-trio.override {
35 pythonImportsCheck = [];
38 buildPythonPackage rec {
43 disabled = pythonOlder "3.8";
46 inherit pname version;
47 hash = "sha256-/6CadKa/gbhPhhOQn7C+ruhHV0UBg6ei4LR7RVwMrF0=";
51 substituteInPlace src/trio/_tests/test_subprocess.py \
52 --replace "/bin/sleep" "${coreutils}/bin/sleep"
59 propagatedBuildInputs = [
65 ] ++ lib.optionals (pythonOlder "3.11") [
69 # tests are failing on Darwin
70 doCheck = !stdenv.isDarwin;
84 # $out is first in path which causes "import file mismatch"
85 PYTHONPATH=$PWD/src:$PYTHONPATH
88 # It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
94 "static_tool_sees_all_symbols"
95 # tests pytest more than python
96 "fallback_when_no_hook_claims_it"
98 "test_static_tool_sees_class_members"
101 disabledTestPaths = [
103 "src/trio/_tests/tools/test_gen_exports.py"
107 "-W" "ignore::DeprecationWarning"
111 description = "An async/await-native I/O library for humans and snake people";
112 homepage = "https://github.com/python-trio/trio";
113 license = with lib.licenses; [ mit asl20 ];
114 maintainers = with lib.maintainers; [ catern ];