Skip to content

Commit

Permalink
fix(argon2-cffi-bindings): Build on Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Sep 5, 2024
1 parent a313fd7 commit 46ea650
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/argon2-cffi-bindings-python-3-12/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ poetry2nix, python312, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
python = python312;
};
in
runCommand "argon2-cffi-bindings-python-3-12-test" { } ''
${env}/bin/python -c 'import _cffi_backend as backend; print(backend.__version__)' > $out
''
89 changes: 89 additions & 0 deletions tests/argon2-cffi-bindings-python-3-12/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/argon2-cffi-bindings-python-3-12/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "test_argon2_cffi_bindings_python_3_12"
version = "0.1.0"
description = ""
authors = []

[tool.poetry.dependencies]
python = "^3.12"
argon2-cffi-bindings = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
1 change: 1 addition & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ in
soundfile-wheel = callTest ./soundfile-wheel { };
soundfile = callTest ./soundfile { };
pyogrio = callTest ./pyogrio { };
argon2-cffi-bindings-python-3-12 = callTest ./argon2-cffi-bindings-python-3-12 { };
} // lib.optionalAttrs (!stdenv.isDarwin) {
# Editable tests fails on Darwin because of sandbox paths
pep600 = callTest ./pep600 { };
Expand Down

0 comments on commit 46ea650

Please sign in to comment.