diff --git a/overrides.nix b/overrides.nix index 1d398cb..c0af7a5 100644 --- a/overrides.nix +++ b/overrides.nix @@ -127,8 +127,11 @@ self: super: cryptography = super.cryptography.overridePythonAttrs ( old: { nativeBuildInputs = (old.nativeBuildInputs or [ ]) + ++ lib.optional (lib.versionAtLeast old.version "3.4") [ self.setuptools-rust ] ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) self.python.pythonForBuild.pkgs.cffi; buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.openssl ]; + } // lib.optionalAttrs (lib.versionAtLeast old.version "3.4" && lib.versionOlder old.version "3.5") { + CRYPTOGRAPHY_DONT_BUILD_RUST = "1"; } );