From ede084fa150389810221b49441f5d4566b0a18ac Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Thu, 27 Apr 2023 10:01:15 +0000 Subject: [PATCH] python38Packages.cryptography: fix build with libxcrypt --- pkgs/development/python-modules/cryptography/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 578d13acf43d..e9162fa6428f 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -18,6 +18,7 @@ , pythonOlder , pretend , libiconv +, libxcrypt , iso8601 , py , pytz @@ -56,7 +57,8 @@ buildPythonPackage rec { ] ++ (with rustPlatform; [ rust.cargo rust.rustc ]); buildInputs = [ openssl ] - ++ lib.optionals stdenv.isDarwin [ Security libiconv ]; + ++ lib.optionals stdenv.isDarwin [ Security libiconv ] + ++ lib.optionals (pythonOlder "3.9") [ libxcrypt ]; propagatedBuildInputs = lib.optionals (!isPyPy) [ cffi