···3333 #3434 # nix-shell maintainers/scripts/update.nix --argstr package python3.pkgs.scipy3535 #3636- # Even if you do update these hashes manually, don't change their base3737- # (base16 or base64), because the update script uses sed regexes to replace3838- # them with the updated hashes.3636+ # The update script uses sed regexes to replace them with the updated hashes.3937 version = "1.11.1";4038 srcHash = "sha256-bgnYXe3EhzL7+Gfriz1cXCl2eYQJ8zF+rcIwHyZR8bQ=";4139 datasetsHashes = {
+5-3
pkgs/development/python-modules/scipy/update.sh
···1616 echo "Current version $version is the latest available, will update only datasets' hashes (don't take long)"1717else1818 echoerr got version $version1919- sed -i -E 's/(version = ).*=/\1'$version'/g' $fname1919+ sed -i -E 's/(version = ").*(";)/\1'$version'\2/g' $fname2020+ # Verify the sed command above did not fail2121+ grep -q $version $fname2022 # Update srcHash2121- srcHash='"sha256-'$(nix-prefetch-github scipy scipy --rev v${version} --fetch-submodules | jq --raw-output .sha256)'"'2222- sed -i 's/srcHash = .*=";/srcHash = '$srcHash';/g' $fname2323+ srcHash="$(nix-prefetch-github scipy scipy --rev v${version} --fetch-submodules | jq --raw-output .hash)"2424+ sed -i -E 's#(srcHash = ").*(";)#\1'$srcHash'\2#g' $fname2325fi24262527for d in $datasets; do