Unverified Commit 5dc4e9c3 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python313Packages.google-api-python-client: don't depend on oauth2client (#392968)

parents 8c71bff1 250d6e6c
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -3,33 +3,31 @@
  acme,
  certbot,
  google-api-python-client,
  oauth2client,
  google-auth,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "certbot-dns-google";
  format = "setuptools";

  inherit (certbot) src version;
  disabled = pythonOlder "3.6";
  pyproject = true;

  sourceRoot = "${src.name}/certbot-dns-google";

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    acme
    certbot
    google-api-python-client
    oauth2client
    google-auth
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pytestFlagsArray = [
    "-p no:cacheprovider"
    # https://github.com/certbot/certbot/issues/9988
    "-Wignore::DeprecationWarning"
  ];

  meta = certbot.meta // {
+0 −2
Original line number Diff line number Diff line
@@ -7,7 +7,6 @@
  google-api-core,
  httplib2,
  uritemplate,
  oauth2client,
  setuptools,
  pythonOlder,
}:
@@ -33,7 +32,6 @@ buildPythonPackage rec {
    google-api-core
    httplib2
    uritemplate
    oauth2client
  ];

  # No tests included in archive
+11 −19
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
  freezegun,
  grpcio,
  mock,
  oauth2client,
  pyasn1-modules,
  pyjwt,
  pyopenssl,
@@ -68,24 +67,17 @@ buildPythonPackage rec {
    requests = [ requests ];
  };

  nativeCheckInputs =
    [
  nativeCheckInputs = [
    aioresponses
    flask
    freezegun
    grpcio
    mock
    ]
    ++ lib.optionals (pythonOlder "3.13") [
      oauth2client
    ]
    ++ [
    pytest-asyncio
    pytest-localserver
    pytestCheckHook
    responses
    ]
    ++ lib.flatten (lib.attrValues optional-dependencies);
  ] ++ lib.flatten (lib.attrValues optional-dependencies);

  pythonImportsCheck = [
    "google.auth"