-
-
Notifications
You must be signed in to change notification settings - Fork 453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Poetry2nix: mismatch cryptography sha256 but unable to modify #1337
Comments
Maybe this can be solved by #1322 I will check it out |
how would i use a newer version of poetry2nix? especially in the context of shell.nix |
I used this :) # Import nixpkgs
pkgs = import <nixpkgs> { };
# Import poetry2nix and its functions
poetry2nixSrc = pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "poetry2nix";
rev = "e23218d1599e3369dfc878757e58974017e0ecc8"; # Fetch the latest master
sha256 = "sha256-p6niqag7b4XEHvzWgG0X/xjoW/ZXbAxW8ggd8yReT3Y=";
};
poetry2nix = import poetry2nixSrc { }; |
You probably want to specify the commit hash, so that the build doesn't break when the master branch gets more commits. |
@l0b0 yep I realize it :) |
justuswilhelm
added a commit
to jwpconsulting/projectify
that referenced
this issue
Feb 23, 2024
There is an issue with cryptography 42.0.3 not building: nix-community/poetry2nix#1337
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
I have the derivation reported at the end of this post but when I am building it with nix-shell I get the following trace message “trace: warning: Unknown cryptography version: ‘41.0.4’. Please update getCargoHash.”
and then the run fails with the following error
This looks really strange because I do not know how to solve it and also because it looks like the sha256 that I am setting is not the one that Nix will match. I read also #413 but I was not able to solve the problem.
There is someone who can help me understand and solve the problem?
Thanks!
Additional context
default.nix
/shell.nix
/flake.nix
:pyproject.toml
: https://github.com/ElementsProject/lightning/blob/master/pyproject.tomlpoetry.lock
: https://github.com/ElementsProject/lightning/blob/master/poetry.lockThe text was updated successfully, but these errors were encountered: