Merge remote-tracking branch 'origin/master' into staging

This commit is contained in:
Matthew Bauer
2019-09-20 23:25:24 -04:00
211 changed files with 6656 additions and 2892 deletions

View File

@@ -18,6 +18,9 @@ buildPythonPackage rec {
py.test tests
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
homepage = https://pythonhosted.org/Logbook/;
description = "A logging replacement for Python";

View File

@@ -34,6 +34,9 @@ buildPythonPackage rec {
pytest -k 'not tls' ${lib.optionalString stdenv.isDarwin "--deselect=cheroot/test/test_ssl.py::test_http_over_https_error --deselect=cheroot/test/test_server.py::test_bind_addr_unix"}
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "High-performance, pure-Python HTTP";
homepage = https://github.com/cherrypy/cheroot;

View File

@@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytestrunner
, click
, dateparser
@@ -12,17 +13,16 @@
buildPythonPackage rec {
pname = "csvs-to-sqlite";
version = "0.9";
version = "1.0";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "simonw";
repo = pname;
rev = version;
sha256 = "0js86m4kj70g9n9gagr8l6kgswqllg6hn1xa3yvxwv95i59ihpz5";
sha256 = "0n80y9a6qhbhhbz64jdpscx0nha9jn9nygp9nkgszmw04ri5j5hm";
};
buildInputs = [ pytestrunner ];
propagatedBuildInputs = [
click
dateparser

View File

@@ -23,6 +23,9 @@ buildPythonPackage rec {
py.test
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Pure-Python, bring-your-own-I/O implementation of HTTP/1.1";
license = licenses.mit;

View File

@@ -37,6 +37,9 @@ buildPythonPackage rec {
HOME=$(mktemp -d) pytest ipykernel -k "not (test_sys_path or test_sys_path_profile_dir or test_complete)"
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
description = "IPython Kernel for Jupyter";
homepage = http://ipython.org/;

View File

@@ -44,6 +44,9 @@ buildPythonPackage rec {
HOME=$(mktemp -d) py.test -v --ignore="nbconvert/preprocessors/tests/test_execute.py"
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
description = "Converting Jupyter Notebooks";
homepage = https://jupyter.org/;

View File

@@ -29,6 +29,9 @@ buildPythonPackage rec {
export HOME=tmp
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
description = "The Jupyter Notebook format";
homepage = https://jupyter.org/;

View File

@@ -45,6 +45,9 @@ buildPythonPackage rec {
pytest tests --ignore tests/test_timeouts.py
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "A py.test plugin to validate Jupyter notebooks";
homepage = https://github.com/computationalmodelling/nbval;

View File

@@ -64,6 +64,9 @@ buildPythonPackage rec {
else ""}
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
description = "The Jupyter HTML notebook is a web-based notebook environment for interactive computing";
homepage = https://jupyter.org/;

View File

@@ -24,6 +24,9 @@ buildPythonPackage rec {
py.test --deselect=test_portend.py::TestChecker::test_check_port_listening
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with stdenv.lib; {
description = "Monitor TCP ports for bound or unbound states";
homepage = https://github.com/jaraco/portend;

View File

@@ -1,27 +1,25 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, six
{ stdenv, buildPythonPackage, fetchFromGitHub
, aiohttp
, eventlet
, mock
, iana-etc
, libredirect
, aiohttp
, websockets
, websocket_client
, mock
, requests
, six
, tornado
, websocket_client
, websockets
}:
buildPythonPackage rec {
pname = "python-engineio";
version = "3.4.3";
version = "3.9.3";
src = fetchFromGitHub {
owner = "miguelgrinberg";
repo = "python-engineio";
rev = "v${version}";
sha256 = "0wk81rqigw47z087f5kc7b9iwqggypxc62q8q818qyzqwb93ysxf";
sha256 = "0rwlj12d37dpw6y3bdn6rxv68xnd9ykj4fr3ly0fa143xci35d9y";
};
propagatedBuildInputs = [
@@ -29,13 +27,13 @@ buildPythonPackage rec {
];
checkInputs = [
aiohttp
eventlet
mock
aiohttp
websockets
websocket_client
tornado
requests
tornado
websocket_client
websockets
];
# make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox

View File

@@ -32,4 +32,7 @@ buildPythonPackage rec {
and not test_on_recv_wake \
and not test_monitor"
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
}

View File

@@ -36,6 +36,9 @@ buildPythonPackage rec {
pytest
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = {
description = "High quality TLS certs while you wait, for the discerning tester";
homepage = https://github.com/python-trio/trustme;

View File

@@ -1,23 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, click
, h11
, httptools
, uvloop
, websockets
, wsproto
, pytest
, requests
, isPy27
}:
buildPythonPackage rec {
pname = "uvicorn";
version = "0.8.4";
version = "0.9.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1l8rfm30inx9pma893i7sby9h7y910k58841zqaajksn563b882k";
src = fetchFromGitHub {
owner = "encode";
repo = pname;
rev = version;
sha256 = "0z4h04mbkzqgpk698bac6f50jxkf02ils6khzl7zbw7yvi6gkkc8";
};
propagatedBuildInputs = [
@@ -29,11 +33,15 @@ buildPythonPackage rec {
wsproto
];
checkPhase = ''
$out/bin/uvicorn --help
postPatch = ''
substituteInPlace setup.py \
--replace "h11==0.8.*" "h11"
'';
patches = [ ./setup.patch ];
checkInputs = [ pytest requests ];
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = https://www.uvicorn.org/;

View File

@@ -1,13 +0,0 @@
diff --git a/setup.py b/setup.py
index 802cda4..561abf4 100755
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ env_marker = (
requirements = [
"click==7.*",
- "h11==0.8.*",
+ "h11",
"websockets==7.*",
"httptools==0.0.13 ;" + env_marker,
"uvloop==0.12.* ;" + env_marker,

View File

@@ -0,0 +1,28 @@
diff --git a/tests/test_pipes.py b/tests/test_pipes.py
index d883abf..2e74d7a 100644
--- a/tests/test_pipes.py
+++ b/tests/test_pipes.py
@@ -2,6 +2,7 @@ import asyncio
import io
import os
import socket
+import unittest
from uvloop import _testbase as tb
@@ -96,6 +97,7 @@ class _BasePipeTest:
# extra info is available
self.assertIsNotNone(proto.transport.get_extra_info('pipe'))
+ @unittest.skip("darwin sandbox")
def test_read_pty_output(self):
proto = MyReadPipeProto(loop=self.loop)
@@ -198,6 +200,7 @@ class _BasePipeTest:
self.loop.run_until_complete(proto.done)
self.assertEqual('CLOSED', proto.state)
+ @unittest.skip("darwin sandbox")
def test_write_pty(self):
master, slave = os.openpty()
os.set_blocking(master, False)

View File

@@ -20,6 +20,8 @@ buildPythonPackage rec {
sha256 = "0blcnrd5vky2k1m1p1skx4516dr1jx76yyb0c6fi82si6mqd0b4l";
};
patches = lib.optional stdenv.isDarwin ./darwin_sandbox.patch;
buildInputs = [
libuv
] ++ lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ];
@@ -31,6 +33,9 @@ buildPythonPackage rec {
checkInputs = [ pyopenssl psutil ];
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Fast implementation of asyncio event loop on top of libuv";
homepage = http://github.com/MagicStack/uvloop;

View File

@@ -1,24 +1,26 @@
{ lib
, fetchPypi
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pytest
}:
buildPythonPackage rec {
pname = "websockets";
version = "7.0";
version = "8.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "17vwr6sa1y3lb24wzfyyc98c5v03di4j8f24qkqa9vsvaghc7qq8";
src = fetchFromGitHub {
owner = "aaugustin";
repo = pname;
rev = version;
sha256 = "02fgb8gib4z5fqv30brz3mhxmblw9bw0978fhpjdrkj7wvqrz5h8";
};
disabled = pythonOlder "3.3";
doCheck = false; # protocol tests fail
meta = {
meta = with lib; {
description = "WebSocket implementation in Python 3";
homepage = https://github.com/aaugustin/websockets;
license = lib.licenses.bsd3;
homepage = "https://github.com/aaugustin/websockets";
license = licenses.bsd3;
};
}