python3Packages.libpwquality: fix build

This commit is contained in:
ocfox
2024-10-04 08:55:13 +08:00
parent 52cfd83eee
commit b57d996687
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
./python-binding-prefix.patch
];
nativeBuildInputs = [ autoreconfHook perl ] ++ lib.optionals enablePython [ python ];
nativeBuildInputs = [ autoreconfHook perl ] ++ lib.optionals enablePython [ (python.withPackages (ps: with ps; [ distutils ])) ];
buildInputs = [ cracklib ] ++ lib.optionals enablePAM [ pam ];
configureFlags = lib.optionals (!enablePython) [ "--disable-python-bindings" ];