14 buildPythonPackage rec {
17 disabled = isPyPy || (pythonOlder "3.5"); # https://github.com/pycurl/pycurl/issues/208
20 inherit pname version;
21 hash = "sha256-VzBZC+AnE2Slvd2eJFycwPtxDEy6y92VJkoxItIyJMo=";
25 substituteInPlace setup.py --replace '--static-libs' '--libs'
26 export PYCURL_SSL_LIBRARY=openssl
38 __darwinAllowLocalNetworking = true;
47 # don't pick up the tests directory below examples/
56 # tests that require network access
58 "test_keyfunction_bogus_return"
59 # OSError: tests/fake-curl/libcurl/with_openssl.so: cannot open shared object file: No such file or directory
60 "test_libcurl_ssl_openssl"
61 # OSError: tests/fake-curl/libcurl/with_nss.so: cannot open shared object file: No such file or directory
62 "test_libcurl_ssl_nss"
63 # OSError: tests/fake-curl/libcurl/with_gnutls.so: cannot open shared object file: No such file or directory
64 "test_libcurl_ssl_gnutls"
65 # AssertionError: assert 'crypto' in ['curl']
66 "test_ssl_in_static_libs"
67 # tests that require curl with http3Support
69 # https://github.com/pycurl/pycurl/issues/819
70 "test_multi_socket_select"
71 # https://github.com/pycurl/pycurl/issues/729
72 "test_multi_socket_action"
73 # https://github.com/pycurl/pycurl/issues/822
74 "test_request_with_verifypeer"
75 ] ++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
76 # Fatal Python error: Segmentation fault
81 homepage = "http://pycurl.io/";
82 description = "Python Interface To The cURL library";
83 license = with licenses; [ lgpl2Only mit ];
84 maintainers = with maintainers; [ ];