Skip to content

Commit

Permalink
bump cryptography version
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Bahl committed Nov 6, 2023
1 parent 6883524 commit 639878a
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 25 deletions.
22 changes: 22 additions & 0 deletions lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,28 @@ let
darwin.apple_sdk.frameworks.Security
];
});

cryptography =
let
getCargoHash = version: {
"41.0.5" = "sha256-ABCK144//RUJ3AksFHEgqC+kHvoHl1ifpVuqMTkGNH8=";
}.${version} or (
lib.warn "Unknown cryptography version: '${version}'. Please update getCargoHash." lib.fakeHash
);
sha256 = getCargoHash super.cryptography.version;
isWheel = lib.hasSuffix ".whl" super.cryptography.src;
in
super.cryptography.overridePythonAttrs (old:
lib.optionalAttrs (lib.versionAtLeast old.version "3.5" && !isWheel) {
cargoDeps =
rustPlatform.fetchCargoTarball {
inherit (old) src;
sourceRoot = "${old.pname}-${old.version}/${old.cargoRoot}";
name = "${old.pname}-${old.version}";
inherit sha256;
};
}
);
})
];
poetryEnv = poetry2nix.mkPoetryEnv {
Expand Down
54 changes: 29 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 639878a

Please sign in to comment.