nixpkgs-suyu/pkgs/development/python-modules/curio/default.nix

41 lines
1 KiB
Nix
Raw Normal View History

2019-05-23 06:23:41 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
2019-05-23 06:23:41 +02:00
, sphinx
, stdenv
2019-05-23 06:23:41 +02:00
}:
buildPythonPackage rec {
pname = "curio";
2020-06-06 08:47:02 +02:00
version = "1.2";
2019-05-23 06:23:41 +02:00
src = fetchPypi {
inherit pname version;
2020-06-06 08:47:02 +02:00
sha256 = "90f320fafb3f5b791f25ffafa7b561cc980376de173afd575a2114380de7939b";
2019-05-23 06:23:41 +02:00
};
disabled = !isPy3k;
checkInputs = [ pytestCheckHook sphinx ];
2019-05-23 06:23:41 +02:00
__darwinAllowLocalNetworking = true;
disabledTests = [
"test_aside_basic" # times out
"test_aside_cancel" # fails because modifies PYTHONPATH and cant find pytest
"test_ssl_outgoing" # touches network
] ++ lib.optionals (stdenv.isDarwin) [
"test_unix_echo" # socket bind error on hydra when built with other packages
"test_unix_ssl_server" # socket bind error on hydra when built with other packages
];
2019-05-23 06:23:41 +02:00
meta = with lib; {
homepage = "https://github.com/dabeaz/curio";
description = "Library for performing concurrent I/O with coroutines in Python 3";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
};
}