Currently in Fedora glibc stopped providing libcrypt[0] a change which is slowly being upstreamed as well[1] in favor of the libxcrypt project[2].
This causes a segfault when importing the crypt module as python assumes that crypt.h is always available.
Providing a working patch from the libxcrypt maintainer. I'll convert the patch into a PR.
[0] https://fedoraproject.org/wiki/Changes/Replace_glibc_libcrypt_with_libxcrypt
[1] https://sourceware.org/ml/libc-alpha/2017-08/msg01257.html
[2] https://github.com/besser82/libxcrypt |