Unverified Commit 46881306 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #228496 from ivan/py38-cryptography-fix

python38Packages.cryptography: fix build with libxcrypt
parents 1c8257a3 ede084fa
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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