pynitrokey: pin cryptography

This commit is contained in:
Robert Schütz
2024-02-20 13:19:09 -08:00
parent 6c923b2bad
commit 607a7c79aa
2 changed files with 28 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
{ python3
, fetchPypi
, rustPlatform
}:
let
python = python3.override {
packageOverrides = self: super: {
# https://github.com/nxp-mcuxpresso/spsdk/issues/64
cryptography = super.cryptography.overridePythonAttrs (old: rec {
version = "41.0.7";
src = fetchPypi {
inherit (old) pname;
inherit version;
hash = "sha256-E/k86b6oAWwlOzSvxr1qdZk+XEBnLtVAWpyDLw1KALw=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
sourceRoot = "${old.pname}-${version}/${old.cargoRoot}";
name = "${old.pname}-${version}";
hash = "sha256-VeZhKisCPDRvmSjGNwCgJJeVj65BZ0Ge+yvXbZw86Rw=";
};
patches = [ ];
doCheck = false; # would require overriding cryptography-vectors
});
};
};
in with python.pkgs; toPythonApplication pynitrokey
-2
View File
@@ -41479,8 +41479,6 @@ with pkgs;
xrq = callPackage ../applications/misc/xrq { };
pynitrokey = with python3Packages; toPythonApplication pynitrokey;
nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
nitrokey-app2 = python3Packages.callPackage ../tools/security/nitrokey-app2 { };