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.
This commit is contained in:
Fabian Affolter 2024-05-24 22:34:48 +02:00
parent 96d8191bb1
commit bc8dc62923

View File

@ -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 ];