diff --git a/pkgs/development/python-modules/cryptoparser/default.nix b/pkgs/development/python-modules/cryptoparser/default.nix index ad87757592ee..3535b79d30d1 100644 --- a/pkgs/development/python-modules/cryptoparser/default.nix +++ b/pkgs/development/python-modules/cryptoparser/default.nix @@ -42,6 +42,14 @@ buildPythonPackage rec { urllib3 ]; + postInstall = '' + find $out -name "__pycache__" -type d | xargs rm -rv + + # Prevent creating more binary byte code later (e.g. during + # pythonImportsCheck) + export PYTHONDONTWRITEBYTECODE=1 + ''; + pythonImportsCheck = [ "cryptoparser" ]; meta = with lib; {