Skip to content

Commit

Permalink
Merge pull request #1876 from mitya57/cryptography-44.0.0
Browse files Browse the repository at this point in the history
overrides: add cryptography 44.0.0
  • Loading branch information
Nebucatnetzer authored Dec 25, 2024
2 parents f554d27 + 793b2e3 commit 06eb56b
Show file tree
Hide file tree
Showing 7 changed files with 211 additions and 40 deletions.
3 changes: 2 additions & 1 deletion overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ lib.composeManyExtensions [
"43.0.0" = "sha256-TEQy8PrIaZshiBFTqR/OJp3e/bVM1USjcmpDYcjPJPM=";
"43.0.1" = "sha256-wiAHM0ucR1X7GunZX8V0Jk2Hsi+dVdGgDKqcYjSdD7Q=";
"43.0.3" = "sha256-d3Gt4VrBWk6qowwX0Epp4mc1PbySARVU9YMsHYKImCs=";
"44.0.0" = "sha256-LJIY2O8ul36JQmhiW8VhLCQ0BaX+j+HGr3e8RUkZpc8=";
}.${version} or (
lib.warn "Unknown cryptography version: '${version}'. Please update getCargoHash." lib.fakeHash
);
Expand Down Expand Up @@ -652,7 +653,7 @@ lib.composeManyExtensions [
name = "${old.pname}-${old.version}";
inherit sha256;
};
cargoRoot = "src/rust";
cargoRoot = if lib.versionAtLeast old.version "44" then "." else "src/rust";
}
);

Expand Down
9 changes: 9 additions & 0 deletions tests/cryptography-43/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "cryptography-test" { } ''
${env}/bin/python -c 'import cryptography; print(cryptography.__version__)' > $out
''
145 changes: 145 additions & 0 deletions tests/cryptography-43/poetry.lock

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

13 changes: 13 additions & 0 deletions tests/cryptography-43/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "test_cryptography"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = "^3.9"
cryptography = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Loading

0 comments on commit 06eb56b

Please sign in to comment.