diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-10-25 08:44:34 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-10-25 08:44:50 -0400 |
commit | b9f2c7d36a4d142c2ea6d672b71babe655a4321e (patch) | |
tree | 09e9408190ad07ec8a6546c8a8ebaf36eae94080 /pkgs/development/python-modules/python-dbusmock | |
parent | 9e5e9db4ad8d0716575b3cf5a2a56f1bae94cabf (diff) | |
download | nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.tar nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.tar.gz nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.tar.bz2 nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.tar.lz nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.tar.xz nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.tar.zst nixpkgs-b9f2c7d36a4d142c2ea6d672b71babe655a4321e.zip |
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.
Diffstat (limited to 'pkgs/development/python-modules/python-dbusmock')
-rw-r--r-- | pkgs/development/python-modules/python-dbusmock/default.nix | 7 |
1 files 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 1cad161de36..57f6fd7bf67 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? |