21 buildPythonPackage rec {
26 inherit pname version;
27 sha256 = "19188f96923873c92ccb987120ec4acaa12f0461fa9ce5d3d0772bc965a39e08";
32 name = "CVE-2021-28363.patch";
33 url = "https://github.com/urllib3/urllib3/commit/8d65ea1ecf6e2cdc27d42124e587c1b83a3118b0.patch";
34 sha256 = "1lqhrd11p03iv14bp89rh67ynf000swmwsfvr3jpfdycdqr3ka9q";
38 propagatedBuildInputs = [
57 # Tests in urllib3 are mostly timeout-based instead of event-based and
58 # are therefore inherently flaky. On your own machine, the tests will
59 # typically build fine, but on a loaded cluster such as Hydra random
60 # timeouts will occur.
62 # The urllib3 test suite has two different timeouts in their test suite
63 # (see `test/__init__.py`):
66 # When CI is in the env, LONG_TIMEOUT will be significantly increased.
67 # Still, failures can occur and for that reason tests are disabled.
71 export CI # Increases LONG_TIMEOUT
74 pythonImportsCheck = [ "urllib3" ];
77 description = "Powerful, sanity-friendly HTTP client for Python";
78 homepage = "https://github.com/shazow/urllib3";
79 license = licenses.mit;
80 maintainers = with maintainers; [ fab ];