overrides: make it easier to update orjson version by printing cargo hash

This commit is contained in:
Federico Ravasio 2022-09-23 22:18:49 +00:00
parent 13ea44a9df
commit 69120fadf9

View file

@ -1285,7 +1285,9 @@ lib.composeManyExtensions [
"3.6.8" = "sha256-vpfceVtYkU09xszNIihY1xbqGWieqDquxwsAmDH8jd4=";
"3.7.2" = "sha256-2U37IhftNYjH7sV7Nh51YpR/WjmPmmzX/aGuHsFgwf4=";
"3.7.9" = "sha256-QHzAhjHgm4XLxY2zUdnIsd/WWMI7dJLQQAvTXC+2asQ=";
}.${version} or null;
}.${version} or (
lib.warn "Unknown orjson version: '${version}'. Please update getCargoHash." lib.fakeHash
);
in
super.orjson.overridePythonAttrs (old: {
cargoDeps = pkgs.rustPlatform.fetchCargoTarball {