9 # optional-dependencies
23 let self = buildPythonPackage rec {
29 inherit pname version;
30 hash = "sha256-0FcIdsYaueUg13bDisu7WwWndtP5/5ilyP1RYqREzxk=";
37 passthru.optional-dependencies = {
38 brotli = if isPyPy then [
53 ] ++ lib.optionals (pythonOlder "3.9") [
55 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
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.
70 passthru.tests.pytest = self.overridePythonAttrs (_: { doCheck = true; });
73 export CI # Increases LONG_TIMEOUT
76 pythonImportsCheck = [
81 description = "Powerful, user-friendly HTTP client for Python";
82 homepage = "https://github.com/urllib3/urllib3";
83 changelog = "https://github.com/urllib3/urllib3/blob/${version}/CHANGES.rst";
84 license = licenses.mit;
85 maintainers = with maintainers; [ fab ];