31 # escape infinite recursion with pytest-trio
32 pytest-trio' = (pytest-trio.override { trio = null; }).overrideAttrs {
34 pythonImportsCheck = [ ];
37 buildPythonPackage rec {
42 disabled = pythonOlder "3.8";
44 src = fetchFromGitHub {
45 owner = "python-trio";
47 rev = "refs/tags/v${version}";
48 hash = "sha256-Vlm6lEMKKfwmhbeefPjxm3vz1zFRUEGOCHXLcZKQcIo=";
51 build-system = [ setuptools ];
59 ] ++ lib.optionals (pythonOlder "3.11") [ exceptiongroup ];
61 # tests are failing on Darwin
62 doCheck = !stdenv.hostPlatform.isDarwin;
76 # $out is first in path which causes "import file mismatch"
77 PYTHONPATH=$PWD/src:$PYTHONPATH
80 # It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
86 "static_tool_sees_all_symbols"
87 # tests pytest more than python
88 "fallback_when_no_hook_claims_it"
90 "test_static_tool_sees_class_members"
95 "src/trio/_tests/tools/test_gen_exports.py"
99 changelog = "https://github.com/python-trio/trio/blob/v${version}/docs/source/history.rst";
100 description = "Async/await-native I/O library for humans and snake people";
101 homepage = "https://github.com/python-trio/trio";
102 license = with lib.licenses; [
106 maintainers = with lib.maintainers; [ catern ];