Merge pull request #220052 from mweinelt/fake-cchardet

python310Packages.faust-cchardet: Fake cchardet dist-info
This commit is contained in:
Robert Schütz
2023-03-07 14:08:36 -08:00
committed by GitHub
@@ -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"
];