Commit bc8dc629 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.types-aiobotocore-*: track obsolete packages

This is a seperate commit to be able to revert it. This solution
is less than ideal and hopefully this hack can be removed soon.
parent 96d8191b
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@
  setuptools,
  typing-extensions,
}:

let
  toUnderscore = str: builtins.replaceStrings [ "-" ] [ "_" ] str;
  buildTypesAiobotocorePackage =
@@ -18,8 +19,14 @@ let
      inherit version;
      pyproject = true;
      disabled = pythonOlder "3.7";

      oldStylePackages = [ "gamesparks" "iot-roborunner" "macie" ];

      src = fetchPypi {
        pname = "types_aiobotocore_${toUnderscore serviceName}";
        pname = if builtins.elem serviceName oldStylePackages then
            "types-aiobotocore-${serviceName}"
          else
            "types_aiobotocore_${toUnderscore serviceName}";
        inherit version hash;
      };
      build-system = [ setuptools ];