From 61f3dc5e5412eee969d76bc119e993a7289e978b Mon Sep 17 00:00:00 2001 From: adisbladis Date: Thu, 11 Feb 2021 03:49:37 +0100 Subject: [PATCH] overrides: Fix building cryptography 3.4 --- overrides.nix | 3 +++ 1 file changed, 3 insertions(+) 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"; } );