File tree Expand file tree Collapse file tree 1 file changed +36
-3
lines changed
pkgs/development/python-modules/aioopenssl Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Original file line number Diff line number Diff line change 11{
22 lib ,
3+ stdenv ,
34 buildPythonPackage ,
45 fetchFromGitHub ,
6+
7+ # build-system
8+ setuptools ,
9+
10+ # dependencies
511 pyopenssl ,
12+
13+ # test
614 pytestCheckHook ,
715} :
816
917buildPythonPackage rec {
1018 pname = "aioopenssl" ;
1119 version = "0.6.0" ;
12-
13- format = "setuptools" ;
20+ pyproject = true ;
1421
1522 src = fetchFromGitHub {
1623 owner = "horazont" ;
@@ -19,12 +26,38 @@ buildPythonPackage rec {
1926 hash = "sha256-7Q+4/DlP+kUnC3YNk7woJaxLEEiuVmolUOajepM003Q=" ;
2027 } ;
2128
22- propagatedBuildInputs = [ pyopenssl ] ;
29+ build-system = [ setuptools ] ;
30+
31+ dependencies = [ pyopenssl ] ;
2332
2433 pythonImportsCheck = [ "aioopenssl" ] ;
2534
2635 nativeCheckInputs = [ pytestCheckHook ] ;
2736
37+ # Tests that fail in when built in the Darwin sandbox.
38+ disabledTests = lib . optionals stdenv . hostPlatform . isDarwin [
39+ # address already in use
40+ "test_renegotiate"
41+ # permission error (tries to bind to port not allowed by sandbox)
42+ "test_abort"
43+ "test_close_during_handshake"
44+ "test_connect_send_recv_close"
45+ "test_data_is_sent_after_handshake"
46+ "test_local_addr"
47+ "test_no_data_is_received_after_handshake"
48+ "test_no_data_is_received_if_handshake_crashes"
49+ "test_no_data_is_sent_if_handshake_crashes"
50+ "test_post_handshake_exception_is_propagated"
51+ "test_recv_large_data"
52+ "test_renegotiation"
53+ "test_send_and_receive_data"
54+ "test_send_large_data"
55+ "test_send_recv_large_data"
56+ "test_starttls"
57+ ] ;
58+
59+ __darwinAlowLocalNetworking = true ;
60+
2861 meta = {
2962 description = "TLS-capable transport using OpenSSL for asyncio" ;
3063 homepage = "https://github.com/horazont/aioopenssl" ;
You can’t perform that action at this time.
0 commit comments