1 { lib, buildPythonPackage, fetchPypi, pythonOlder
19 buildPythonPackage rec {
22 disabled = pythonOlder "3.6";
25 inherit pname version;
26 sha256 = "sha256-Uj85t7ae73NQHOv+Gq/UAKmq1bA1Q6Dt7VKVJIj/HBM=";
29 propagatedBuildInputs = [
36 ] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
38 # tests are failing on Darwin
39 doCheck = !stdenv.isDarwin;
51 substituteInPlace trio/tests/test_subprocess.py \
52 --replace "/bin/sleep" "${coreutils}/bin/sleep"
55 # It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
61 "static_tool_sees_all_symbols"
62 # tests pytest more than python
63 "fallback_when_no_hook_claims_it"
67 "-W" "ignore::DeprecationWarning"
71 description = "An async/await-native I/O library for humans and snake people";
72 homepage = "https://github.com/python-trio/trio";
73 license = with lib.licenses; [ mit asl20 ];
74 maintainers = with lib.maintainers; [ catern ];