mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
, attrs
|
|
, sortedcontainers
|
|
, async_generator
|
|
, idna
|
|
, outcome
|
|
, contextvars
|
|
, pytestCheckHook
|
|
, pyopenssl
|
|
, trustme
|
|
, sniffio
|
|
, stdenv
|
|
, jedi
|
|
, pylint
|
|
, astor
|
|
, yapf
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "trio";
|
|
version = "0.17.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0zcxirpdvvl54pbfkgw7vz984879xwvdygqfpggnam24is2zjp78";
|
|
};
|
|
|
|
checkInputs = [ astor pytestCheckHook pyopenssl trustme jedi pylint yapf ];
|
|
# It appears that the build sandbox doesn't include /etc/services, and these tests try to use it.
|
|
disabledTests = [
|
|
"getnameinfo"
|
|
"SocketType_resolve"
|
|
"getprotobyname"
|
|
"waitpid"
|
|
"static_tool_sees_all_symbols"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|