diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 02a960ac48f4..2ebcb9efffe2 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -52,14 +52,14 @@ buildPythonPackage rec { cargoRoot = "src/rust"; - nativeBuildInputs = lib.optionals (!isPyPy) [ - cffi - pkg-config - ] ++ [ + nativeBuildInputs = [ rustPlatform.cargoSetupHook setuptools-rust cargo rustc + pkg-config + ] ++ lib.optionals (!isPyPy) [ + cffi ]; buildInputs = [ openssl ]