From bc8dc62923419bfd17aef9aafe76dcb4deef4338 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 May 2024 22:34:48 +0200 Subject: [PATCH] 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. --- .../types-aiobotocore-packages/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/types-aiobotocore-packages/default.nix b/pkgs/development/python-modules/types-aiobotocore-packages/default.nix index 14bad0016741..b7ae5e53db88 100644 --- a/pkgs/development/python-modules/types-aiobotocore-packages/default.nix +++ b/pkgs/development/python-modules/types-aiobotocore-packages/default.nix @@ -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 ];