From dd3185a90e49b3939839ef1a23c28072382e6108 Mon Sep 17 00:00:00 2001 From: Alex Carney Date: Mon, 21 Nov 2022 22:37:14 +0000 Subject: [PATCH] python38Packages.pydantic: fix build with libxcrypt Co-authored-by: Martin Weinelt --- pkgs/development/python-modules/pydantic/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pydantic/default.nix b/pkgs/development/python-modules/pydantic/default.nix index 93af15c4e0d9..1a038fe7de8c 100644 --- a/pkgs/development/python-modules/pydantic/default.nix +++ b/pkgs/development/python-modules/pydantic/default.nix @@ -26,6 +26,7 @@ , ujson , orjson , hypothesis +, libxcrypt }: buildPythonPackage rec { @@ -51,6 +52,10 @@ buildPythonPackage rec { sed -i '/flake8/ d' Makefile ''; + buildInputs = lib.optionals (pythonOlder "3.9") [ + libxcrypt + ]; + nativeBuildInputs = [ cython ] ++ lib.optionals withDocs [