python.pkgs.binaryornot: fix build

This commit is contained in:
Robert Schütz 2019-03-02 15:21:48 +01:00
parent 2e16d3d2c8
commit 736025e234

View file

@ -10,9 +10,9 @@ buildPythonPackage rec {
};
prePatch = ''
# See https://github.com/audreyr/binaryornot/issues/40
# TypeError: binary() got an unexpected keyword argument 'average_size'
substituteInPlace tests/test_check.py \
--replace "average_size=512" "average_size=128"
--replace "average_size=512" ""
'';
propagatedBuildInputs = [ chardet ];