python312Packages.types-aiobotocore: use nix hash convert

This commit is contained in:
Fabian Affolter 2024-10-27 00:09:22 +02:00
parent 65739f07c3
commit 7b391f6c51

View File

@ -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" '