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