From b9f2c7d36a4d142c2ea6d672b71babe655a4321e Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Fri, 25 Oct 2019 08:44:34 -0400 Subject: [PATCH] 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. --- .../development/python-modules/python-dbusmock/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-dbusmock/default.nix b/pkgs/development/python-modules/python-dbusmock/default.nix index 1cad161de365..57f6fd7bf676 100644 --- a/pkgs/development/python-modules/python-dbusmock/default.nix +++ b/pkgs/development/python-modules/python-dbusmock/default.nix @@ -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?