diff --git a/pkgs/development/python-modules/pycodestyle/default.nix b/pkgs/development/python-modules/pycodestyle/default.nix index 79d519fec6d26..17b39d3dabdb8 100644 --- a/pkgs/development/python-modules/pycodestyle/default.nix +++ b/pkgs/development/python-modules/pycodestyle/default.nix @@ -5,6 +5,7 @@ python, pytestCheckHook, setuptools, + isPyPy, }: buildPythonPackage rec { @@ -30,6 +31,11 @@ buildPythonPackage rec { ${python.interpreter} -m pycodestyle --statistics pycodestyle.py ''; + disabledTests = lib.optionals isPyPy [ + # PyPy reports a SyntaxError instead of ValueError + "test_check_nullbytes" + ]; + meta = with lib; { changelog = "https://github.com/PyCQA/pycodestyle/blob/${version}/CHANGES.txt"; description = "Python style guide checker";