diff --git a/pkgs/development/python-modules/faust-cchardet/default.nix b/pkgs/development/python-modules/faust-cchardet/default.nix index ca2cdc02162e..ad979dbaf6ab 100644 --- a/pkgs/development/python-modules/faust-cchardet/default.nix +++ b/pkgs/development/python-modules/faust-cchardet/default.nix @@ -7,6 +7,7 @@ , setuptools , wheel , pytestCheckHook +, python }: buildPythonPackage rec { @@ -29,6 +30,12 @@ buildPythonPackage rec { wheel ]; + postFixup = '' + # fake cchardet distinfo, so packages that depend on cchardet + # accept it as a drop-in replacement + ln -s $out/${python.sitePackages}/{faust_,}cchardet-${version}.dist-info + ''; + pythonImportsCheck = [ "cchardet" ];