2018-05-08 22:19:48 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, attrs
|
|
|
|
, sortedcontainers
|
|
|
|
, async_generator
|
|
|
|
, idna
|
|
|
|
, outcome
|
|
|
|
, contextvars
|
2020-08-17 00:14:05 +00:00
|
|
|
, pytestCheckHook
|
2018-05-08 22:19:48 +00:00
|
|
|
, pyopenssl
|
|
|
|
, trustme
|
2018-09-07 23:02:55 +00:00
|
|
|
, sniffio
|
2019-07-16 21:39:54 +00:00
|
|
|
, stdenv
|
2018-10-25 18:24:56 +00:00
|
|
|
, jedi
|
|
|
|
, pylint
|
2019-10-17 09:45:45 +00:00
|
|
|
, astor
|
2019-10-25 04:38:10 +00:00
|
|
|
, yapf
|
2018-05-08 22:19:48 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "trio";
|
2020-08-16 17:31:18 +00:00
|
|
|
version = "0.16.0";
|
2018-05-08 22:19:48 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 17:31:18 +00:00
|
|
|
sha256 = "df067dd0560c321af39d412cd81fc3a7d13f55af9150527daab980683e9fcf3c";
|
2018-05-08 22:19:48 +00:00
|
|
|
};
|
|
|
|
|
2020-08-17 00:14:05 +00:00
|
|
|
checkInputs = [ astor pytestCheckHook pyopenssl trustme jedi pylint yapf ];
|
2018-05-08 22:19:48 +00:00
|
|
|
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
|
2020-08-17 00:14:05 +00:00
|
|
|
disabledTests = [
|
|
|
|
"getnameinfo"
|
|
|
|
"SocketType_resolve"
|
|
|
|
"getprotobyname"
|
|
|
|
"waitpid"
|
|
|
|
"static_tool_sees_all_symbols"
|
|
|
|
];
|
2019-10-25 07:18:22 +00:00
|
|
|
|
2018-05-08 22:19:48 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
sortedcontainers
|
|
|
|
async_generator
|
|
|
|
idna
|
|
|
|
outcome
|
2018-09-07 23:02:55 +00:00
|
|
|
sniffio
|
2018-05-08 22:19:48 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [ contextvars ];
|
|
|
|
|
2019-07-16 21:39:54 +00:00
|
|
|
# tests are failing on Darwin
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2018-05-08 22:19:48 +00:00
|
|
|
meta = {
|
|
|
|
description = "An async/await-native I/O library for humans and snake people";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/python-trio/trio";
|
2018-05-08 22:19:48 +00:00
|
|
|
license = with lib.licenses; [ mit asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|