Unverified Commit efb6c226 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #218215 from fabaff/google-apitools-bump

python311Packages.google-apitools: remove 
parents c6fff91a b5e64e88
Loading
Loading
Loading
Loading
+0 −70
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fasteners
, fetchFromGitHub
, gflags
, httplib2
, mock
, oauth2client
, pytestCheckHook
, pythonOlder
, six
}:

buildPythonPackage rec {
  pname = "google-apitools";
  version = "0.5.32";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "google";
    repo = "apitools";
    rev = "refs/tags/v${version}";
    hash = "sha256-Z9BTDU6KKCcjspVLi5mJqVZMYEapnMXLPL5BXsIKZAw=";
  };

  propagatedBuildInputs = [
    fasteners
    httplib2
    oauth2client
    six
  ];

  passthru.optional-dependencies = {
    cli = [
      gflags
    ];
  };

  nativeCheckInputs = [
    mock
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "apitools"
  ];

  disabledTests = [
    # AttributeError: 'FieldList' object has no attribute '_FieldList__field'
    "testPickle"
    "testDecodeBadBase64BytesField"
    "testConvertIdThatNeedsEscaping"
    "testGeneration"
  ];

  disabledTestPaths = [
    # Samples are partially postfixed with test
    "samples"
  ];

  meta = with lib; {
    description = "Collection of utilities to make it easier to build client-side tools";
    homepage = "https://github.com/google/apitools";
    changelog = "https://github.com/google/apitools/releases/tag/v${version}";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -100,6 +100,7 @@ mapAliases ({
  glasgow = throw "glasgow has been promoted to a top-level attribute"; # added 2023-02-05
  google_api_python_client = google-api-python-client; # added 2021-03-19
  googleapis_common_protos = googleapis-common-protos; # added 2021-03-19
  google-apitools = throw "google-apitools was removed because it is deprecated and unsupported by upstream"; # added 2023-02-25
  graphite_api = throw "graphite_api was removed, because it is no longer maintained"; # added 2022-07-10
  graphite_beacon = throw "graphite_beacon was removed, because it is no longer maintained"; # added 2022-07-09
  grpc_google_iam_v1 = grpc-google-iam-v1; # added 2021-08-21
+0 −2
Original line number Diff line number Diff line
@@ -3908,8 +3908,6 @@ self: super: with self; {

  google-api-python-client = callPackage ../development/python-modules/google-api-python-client { };

  google-apitools = callPackage ../development/python-modules/google-apitools { };

  googleapis-common-protos = callPackage ../development/python-modules/googleapis-common-protos { };

  google-auth = callPackage ../development/python-modules/google-auth { };