nixpkgs/pkgs/development/python-modules/curio/default.nix
2020-12-01 14:44:10 +01:00

41 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pytestCheckHook
, sphinx
, stdenv
}:
buildPythonPackage rec {
pname = "curio";
version = "1.4";
src = fetchPypi {
inherit pname version;
sha256 = "57edce81c837f3c2cf42fbb346dee26e537d1659e6605269fb13bd179e068744";
};
disabled = !isPy3k;
checkInputs = [ pytestCheckHook sphinx ];
__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
];
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 ];
};
}