nixpkgs/pkgs/development/python-modules/trio/default.nix

58 lines
1.2 KiB
Nix
Raw Normal View History

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