python3.pkgs.python-dbusmock: fix build

The test_code codestyle test failed because of the lines being too long.
We added --ignore=E501 to fix this, which makes it ignore checking
line length.
This commit is contained in:
worldofpeace 2019-10-25 08:44:34 -04:00
parent 9e5e9db4ad
commit b9f2c7d36a

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi,
{ lib, buildPythonPackage, fetchPypi, runtimeShell,
nose, dbus, dbus-python, pygobject3,
which, pyflakes, pycodestyle, bluez, networkmanager
}:
@ -13,7 +13,10 @@ buildPythonPackage rec {
};
prePatch = ''
sed -i -e 's|pyflakes3|pyflakes|g' tests/test_code.py;
substituteInPlace tests/test_code.py \
--replace "pyflakes3" "pyflakes" \
--replace "/bin/bash" "${runtimeShell}" \
--replace "--ignore=E124,E402,E731,W504" "--ignore=E124,E402,E731,W504,E501" # ignore long lines too
'';
# TODO: Get the rest of these tests running?