git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commitb9f2c7d36a4d142c2ea6d672b71babe655a4321e authorworldofpeace <worldofpeace@protonmail.ch> dateFri 25 Oct 2019, 08:44 (7 years ago) parent9e5e9db
1 file changed+5−2
pkgs/development/python-modules/python-dbusmock/default.nix+5−2
pkgs/development/python-modules/python-dbusmock/default.nix+5−2
@@ -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?