1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/trio/default.nix

47 lines
1.1 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
, pytest
, pyopenssl
, trustme
, sniffio
2018-10-25 19:24:56 +01:00
, jedi
, pylint
2018-05-08 23:19:48 +01:00
}:
buildPythonPackage rec {
pname = "trio";
version = "0.10.0";
2018-05-08 23:19:48 +01:00
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "1c1snnhjg8l87ygf5p9z2qjcq090mws5w7pr9aaiava0yqawq8yk";
2018-05-08 23:19:48 +01:00
};
2018-10-25 19:24:56 +01:00
checkInputs = [ pytest pyopenssl trustme jedi pylint ];
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.
checkPhase = ''
2018-10-25 19:24:56 +01:00
HOME="$(mktemp -d)" py.test -k 'not test_getnameinfo and not test_SocketType_resolve and not test_getprotobyname and not test_waitpid'
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 ];
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 ];
};
}