Commit 7b391f6c authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.types-aiobotocore: use nix hash convert

parent 65739f07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -371,7 +371,7 @@ for package in "${packages[@]}"; do

  url="https://pypi.io/packages/source/t/${package}/${package//-/_}-${version}.tar.gz"
  hash=$(nix-prefetch-url --type sha256 $url)
  sri_hash="$(nix hash to-sri --type sha256 $hash)"
  sri_hash="$(nix hash convert --hash-algo sha256 --to sri $hash)"
  package_short="${package#types-aiobotocore-}"

  awk -i inplace -v pkg="$package" -v pkg_short="$package_short" -v ver="$version" -v hash="$sri_hash" '