2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, attrs
|
|
|
|
, sortedcontainers
|
|
|
|
, async_generator
|
|
|
|
, idna
|
|
|
|
, outcome
|
|
|
|
, contextvars
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pyopenssl
|
|
|
|
, trustme
|
|
|
|
, sniffio
|
|
|
|
, stdenv
|
|
|
|
, jedi
|
|
|
|
, astor
|
|
|
|
, yapf
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trio";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "0.19.0";
|
2020-10-19 00:13:06 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "895e318e5ec5e8cea9f60b473b6edb95b215e82d99556a03eb2d20c5e027efe1";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
checkInputs = [ astor pytestCheckHook pyopenssl trustme jedi yapf ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
|
2020-09-25 04:45:31 +00:00
|
|
|
disabledTests = [
|
|
|
|
"getnameinfo"
|
|
|
|
"SocketType_resolve"
|
|
|
|
"getprotobyname"
|
|
|
|
"waitpid"
|
|
|
|
"static_tool_sees_all_symbols"
|
2021-03-19 17:17:44 +00:00
|
|
|
# tests pytest more than python
|
|
|
|
"fallback_when_no_hook_claims_it"
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-W" "ignore::DeprecationWarning"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
sortedcontainers
|
|
|
|
async_generator
|
|
|
|
idna
|
|
|
|
outcome
|
|
|
|
sniffio
|
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
|
|
|
|
|
|
|
|
# tests are failing on Darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An async/await-native I/O library for humans and snake people";
|
|
|
|
homepage = "https://github.com/python-trio/trio";
|
|
|
|
license = with lib.licenses; [ mit asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|