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