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

python312Packages.mypy-boto3-*: updates (#303877)

parents 88d877d9 2fbee434
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -9,7 +9,6 @@
  mypy-boto3-account,
  mypy-boto3-acm,
  mypy-boto3-acm-pca,
  mypy-boto3-alexaforbusiness,
  mypy-boto3-amp,
  mypy-boto3-amplify,
  mypy-boto3-amplifybackend,
@@ -36,7 +35,6 @@
  mypy-boto3-autoscaling-plans,
  mypy-boto3-backup,
  mypy-boto3-backup-gateway,
  mypy-boto3-backupstorage,
  mypy-boto3-batch,
  mypy-boto3-billingconductor,
  mypy-boto3-braket,
@@ -137,7 +135,6 @@
  mypy-boto3-frauddetector,
  mypy-boto3-fsx,
  mypy-boto3-gamelift,
  mypy-boto3-gamesparks,
  mypy-boto3-glacier,
  mypy-boto3-globalaccelerator,
  mypy-boto3-glue,
@@ -148,7 +145,6 @@
  mypy-boto3-guardduty,
  mypy-boto3-health,
  mypy-boto3-healthlake,
  mypy-boto3-honeycode,
  mypy-boto3-iam,
  mypy-boto3-identitystore,
  mypy-boto3-imagebuilder,
@@ -159,7 +155,6 @@
  mypy-boto3-iot,
  mypy-boto3-iot-data,
  mypy-boto3-iot-jobs-data,
  mypy-boto3-iot-roborunner,
  mypy-boto3-iot1click-devices,
  mypy-boto3-iot1click-projects,
  mypy-boto3-iotanalytics,
@@ -207,7 +202,6 @@
  mypy-boto3-lookoutvision,
  mypy-boto3-m2,
  mypy-boto3-machinelearning,
  mypy-boto3-macie,
  mypy-boto3-macie2,
  mypy-boto3-managedblockchain,
  mypy-boto3-managedblockchain-query,
@@ -232,7 +226,6 @@
  mypy-boto3-migrationhub-config,
  mypy-boto3-migrationhuborchestrator,
  mypy-boto3-migrationhubstrategy,
  mypy-boto3-mobile,
  mypy-boto3-mq,
  mypy-boto3-mturk,
  mypy-boto3-mwaa,
@@ -390,13 +383,11 @@ buildPythonPackage rec {
    account = [ mypy-boto3-account ];
    acm = [ mypy-boto3-acm ];
    acm-pca = [ mypy-boto3-acm-pca ];
    alexaforbusiness = [ mypy-boto3-alexaforbusiness ];
    all = [
      mypy-boto3-accessanalyzer
      mypy-boto3-account
      mypy-boto3-acm
      mypy-boto3-acm-pca
      mypy-boto3-alexaforbusiness
      mypy-boto3-amp
      mypy-boto3-amplify
      mypy-boto3-amplifybackend
@@ -423,7 +414,6 @@ buildPythonPackage rec {
      mypy-boto3-autoscaling-plans
      mypy-boto3-backup
      mypy-boto3-backup-gateway
      mypy-boto3-backupstorage
      mypy-boto3-batch
      mypy-boto3-billingconductor
      mypy-boto3-braket
@@ -524,7 +514,6 @@ buildPythonPackage rec {
      mypy-boto3-frauddetector
      mypy-boto3-fsx
      mypy-boto3-gamelift
      mypy-boto3-gamesparks
      mypy-boto3-glacier
      mypy-boto3-globalaccelerator
      mypy-boto3-glue
@@ -535,7 +524,6 @@ buildPythonPackage rec {
      mypy-boto3-guardduty
      mypy-boto3-health
      mypy-boto3-healthlake
      mypy-boto3-honeycode
      mypy-boto3-iam
      mypy-boto3-identitystore
      mypy-boto3-imagebuilder
@@ -546,7 +534,6 @@ buildPythonPackage rec {
      mypy-boto3-iot
      mypy-boto3-iot-data
      mypy-boto3-iot-jobs-data
      mypy-boto3-iot-roborunner
      mypy-boto3-iot1click-devices
      mypy-boto3-iot1click-projects
      mypy-boto3-iotanalytics
@@ -594,7 +581,6 @@ buildPythonPackage rec {
      mypy-boto3-lookoutvision
      mypy-boto3-m2
      mypy-boto3-machinelearning
      mypy-boto3-macie
      mypy-boto3-macie2
      mypy-boto3-managedblockchain
      mypy-boto3-managedblockchain-query
@@ -619,7 +605,6 @@ buildPythonPackage rec {
      mypy-boto3-migrationhub-config
      mypy-boto3-migrationhuborchestrator
      mypy-boto3-migrationhubstrategy
      mypy-boto3-mobile
      mypy-boto3-mq
      mypy-boto3-mturk
      mypy-boto3-mwaa
@@ -772,7 +757,6 @@ buildPythonPackage rec {
    autoscaling-plans = [ mypy-boto3-autoscaling-plans ];
    backup = [ mypy-boto3-backup ];
    backup-gateway = [ mypy-boto3-backup-gateway ];
    backupstorage = [ mypy-boto3-backupstorage ];
    batch = [ mypy-boto3-batch ];
    billingconductor = [ mypy-boto3-billingconductor ];
    boto3 = [
@@ -886,7 +870,6 @@ buildPythonPackage rec {
    frauddetector = [ mypy-boto3-frauddetector ];
    fsx = [ mypy-boto3-fsx ];
    gamelift = [ mypy-boto3-gamelift ];
    gamesparks = [ mypy-boto3-gamesparks ];
    glacier = [ mypy-boto3-glacier ];
    globalaccelerator = [ mypy-boto3-globalaccelerator ];
    glue = [ mypy-boto3-glue ];
@@ -897,7 +880,6 @@ buildPythonPackage rec {
    guardduty = [ mypy-boto3-guardduty ];
    health = [ mypy-boto3-health ];
    healthlake = [ mypy-boto3-healthlake ];
    honeycode = [ mypy-boto3-honeycode ];
    iam = [ mypy-boto3-iam ];
    identitystore = [ mypy-boto3-identitystore ];
    imagebuilder = [ mypy-boto3-imagebuilder ];
@@ -908,7 +890,6 @@ buildPythonPackage rec {
    iot = [ mypy-boto3-iot ];
    iot-data = [ mypy-boto3-iot-data ];
    iot-jobs-data = [ mypy-boto3-iot-jobs-data ];
    iot-roborunner = [ mypy-boto3-iot-roborunner ];
    iot1click-devices = [ mypy-boto3-iot1click-devices ];
    iot1click-projects = [ mypy-boto3-iot1click-projects ];
    iotanalytics = [ mypy-boto3-iotanalytics ];
@@ -956,7 +937,6 @@ buildPythonPackage rec {
    lookoutvision = [ mypy-boto3-lookoutvision ];
    m2 = [ mypy-boto3-m2 ];
    machinelearning = [ mypy-boto3-machinelearning ];
    macie = [ mypy-boto3-macie ];
    macie2 = [ mypy-boto3-macie2 ];
    managedblockchain = [ mypy-boto3-managedblockchain ];
    managedblockchain-query = [ mypy-boto3-managedblockchain-query ];
@@ -981,7 +961,6 @@ buildPythonPackage rec {
    migrationhub-config = [ mypy-boto3-migrationhub-config ];
    migrationhuborchestrator = [ mypy-boto3-migrationhuborchestrator ];
    migrationhubstrategy = [ mypy-boto3-migrationhubstrategy ];
    mobile = [ mypy-boto3-mobile ];
    mq = [ mypy-boto3-mq ];
    mturk = [ mypy-boto3-mturk ];
    mwaa = [ mypy-boto3-mwaa ];
+700 −725

File changed.

Preview size limit exceeded, changes collapsed.

+18 −18
Original line number Diff line number Diff line
@@ -5,14 +5,13 @@ set -eu -o pipefail

source_file=pkgs/development/python-modules/mypy-boto3/default.nix

nix-update python312Packages.botocore-stubs --commit --build
#nix-update python312Packages.botocore-stubs --commit --build

packages=(
  mypy-boto3-accessanalyzer
  mypy-boto3-account
  mypy-boto3-acm
  mypy-boto3-acm-pca
  mypy-boto3-alexaforbusiness
  mypy-boto3-amp
  mypy-boto3-amplify
  mypy-boto3-amplifybackend
@@ -39,7 +38,6 @@ packages=(
  mypy-boto3-autoscaling-plans
  mypy-boto3-backup
  mypy-boto3-backup-gateway
  mypy-boto3-backupstorage
  mypy-boto3-batch
  mypy-boto3-billingconductor
  mypy-boto3-braket
@@ -140,7 +138,6 @@ packages=(
  mypy-boto3-frauddetector
  mypy-boto3-fsx
  mypy-boto3-gamelift
#  mypy-boto3-gamesparks
  mypy-boto3-glacier
  mypy-boto3-globalaccelerator
  mypy-boto3-glue
@@ -151,7 +148,6 @@ packages=(
  mypy-boto3-guardduty
  mypy-boto3-health
  mypy-boto3-healthlake
  mypy-boto3-honeycode
  mypy-boto3-iam
  mypy-boto3-identitystore
  mypy-boto3-imagebuilder
@@ -162,7 +158,6 @@ packages=(
  mypy-boto3-iot
  mypy-boto3-iot-data
  mypy-boto3-iot-jobs-data
  mypy-boto3-iot-roborunner
  mypy-boto3-iot1click-devices
  mypy-boto3-iot1click-projects
  mypy-boto3-iotanalytics
@@ -210,7 +205,6 @@ packages=(
  mypy-boto3-lookoutvision
  mypy-boto3-m2
  mypy-boto3-machinelearning
  #mypy-boto3-macie
  mypy-boto3-macie2
  mypy-boto3-managedblockchain
  mypy-boto3-managedblockchain-query
@@ -365,25 +359,31 @@ packages=(
  mypy-boto3-xray)

for package in "${packages[@]}"; do
  echo "Updating ${package} ..."

  old_version=$(awk -v pkg="$package" -F'"' '$1 ~ pkg " = " {print $4}' ${source_file})
  package_short_name="${package#mypy-boto3-}"
  old_version=$(awk -v pkg="\"$package_short_name\"" -F'"' '$0 ~ pkg {printf $4}' ${source_file})
  version=$(curl -s https://pypi.org/pypi/${package}/json | jq -r '.info.version')

  echo "Updating ${package} from ${old_version} to ${version}"

  if [ "${version}" != "${old_version}" ]; then
    url="https://pypi.io/packages/source/m/${package}/${package}-${version}.tar.gz"
    url="https://pypi.io/packages/source/m/${package//-/_}/${package//-/_}-${version}.tar.gz"
    hash=$(nix-prefetch-url --type sha256 $url)
    sri_hash="$(nix hash to-sri --type sha256 $hash)"

    awk -i inplace -v package="$package" -v new_version="$version" -v new_sha256="$sri_hash" '
      $1 == package {
        $5 = "\"" new_version "\"";
        $6 = "\"" new_sha256 "\";";
    awk -i inplace -v pkg="\"$package_short_name\"" -v new_version="$version" -v new_sha256="$sri_hash" '
      # Match the line containing the package name
      $0 ~ pkg && $0 ~ /buildMypyBoto3Package/ {
        # Update the version
        sub(/"[^"]+"/, "\"" new_version "\"", $3);
        print;
        # Update the next line with the new sha256
        getline;
        sub(/"[^"]+"/, "\"" new_sha256 "\"");
      }
      { print }
    ' $source_file
    ' ${source_file}

    nixpkgs-fmt ${source_file}
    nixfmt ${source_file}

    git commit ${source_file} -m "python312Packages.${package}: ${old_version} -> ${version}"
  fi
+1 −0
Original line number Diff line number Diff line
@@ -130,6 +130,7 @@ python3.pkgs.buildPythonApplication rec {
    "test_update_stage"
    "test_delete_deployment"
    "test_request_with_no_data"
    "test_import_should_succeed_for_a_defined_hidden_package_540_pkg_resources_py2_warn"
  ];

  pythonImportsCheck = [
+7 −0
Original line number Diff line number Diff line
@@ -332,6 +332,13 @@ mapAliases ({
  multi_key_dict = multi-key-dict; # added 2023-11-05
  mutmut = throw "mutmut has been promoted to a top-level attribute name: `pkgs.mutmut`"; # added 2022-10-02
  nbmerge = throw "nbmerge has moved to pkgs.nbmerge"; # added 2024-07-05
  mypy-boto3-alexaforbusiness = throw "mypy-boto3-alexaforbusiness was removed because it is unmaintained"; # added 2024-09-04
  mypy-boto3-backupstorage = throw "mypy-boto3-backupstorage was removed because it is unmaintained"; # added 2024-09-04
  mypy-boto3-gamesparks = throw "mypy-boto3-gamesparks was removed because it is unmaintained"; # added 2024-09-04
  mypy-boto3-honeycode = throw "mypy-boto3-honeycode was removed because it is unmaintained"; # added 2024-09-04
  mypy-boto3-iot-roborunner = throw "mypy-boto3-iot-roborunner was removed because it is unmaintained"; # added 2024-09-04
  mypy-boto3-macie = throw "mypy-boto3-macie was removed because it is unmaintained"; # added 2024-09-04
  mypy-boto3-mobile = throw "mypy-boto3-mobile was removed because it is unmaintained"; # added 2024-09-04
  net2grid = gridnet; # add 2022-04-22
  nghttp2 = throw "in 1.52.0 removed deprecated python bindings."; # added 2023-06-08
  ninja-python = ninja; # add 2022-08-03
Loading