17 buildPythonPackage rec {
20 format = "setuptools";
22 src = fetchFromGitHub {
26 hash = "sha256-76gdiRbF535CEaNXwNqsVeVc0dKglovMPQpGsOkbd/4=";
30 sed -i "/--cov/d" setup.cfg
33 propagatedBuildInputs = [ pyparsing ];
45 __darwinAllowLocalNetworking = true;
47 # Don't run tests for older Pythons
48 doCheck = pythonAtLeast "3.9";
52 # ValueError: Unable to load PEM file.
53 # https://github.com/httplib2/httplib2/issues/192#issuecomment-993165140
54 "test_client_cert_password_verified"
56 # improper pytest marking
60 ++ lib.optionals stdenv.hostPlatform.isDarwin [
61 # fails with "ConnectionResetError: [Errno 54] Connection reset by peer"
62 "test_connection_close"
63 # fails with HTTP 408 Request Timeout, instead of expected 200 OK
64 "test_timeout_subsequent"
65 "test_connection_close"
68 pytestFlagsArray = [ "--ignore python2" ];
70 pythonImportsCheck = [ "httplib2" ];
73 description = "Comprehensive HTTP client library";
74 homepage = "https://github.com/httplib2/httplib2";
75 license = licenses.mit;
76 maintainers = with maintainers; [ fab ];