Skip to content

Commit

Permalink
Merge pull request #60 from flyingcircusio/bump-dep
Browse files Browse the repository at this point in the history
bump cryptography version
  • Loading branch information
ctheune authored Dec 4, 2023
2 parents 6883524 + 639878a commit 4bc6844
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 4bc6844

Please sign in to comment.