From bab6fd31cddf59760c86a620124fe064ef43fea3 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 17 Aug 2022 19:53:24 +0100 Subject: [PATCH] cvise: drop tests broken by pytest-flake8 update Commit https://github.com/NixOS/nixpkgs/pull/186102/commits/219b7104a3b49b4a9375ff791c7fbce3e8f504f2 marked pytest-flake8 as broken. Let's demove cvise tests to restore cvise package until upstream sorts it out. --- pkgs/development/tools/misc/cvise/default.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pkgs/development/tools/misc/cvise/default.nix b/pkgs/development/tools/misc/cvise/default.nix index d6ad65164b74..6db4a89becbd 100644 --- a/pkgs/development/tools/misc/cvise/default.nix +++ b/pkgs/development/tools/misc/cvise/default.nix @@ -1,6 +1,6 @@ { lib, buildPythonApplication, fetchFromGitHub, bash, cmake, flex , libclang, llvm, unifdef -, chardet, pebble, psutil, pytestCheckHook, pytest-flake8 +, chardet, pebble, psutil }: buildPythonApplication rec { @@ -22,7 +22,6 @@ buildPythonApplication rec { nativeBuildInputs = [ cmake flex llvm.dev ]; buildInputs = [ bash libclang llvm llvm.dev unifdef ]; propagatedBuildInputs = [ chardet pebble psutil ]; - checkInputs = [ pytestCheckHook pytest-flake8 unifdef ]; # 'cvise --command=...' generates a script with hardcoded shebang. postPatch = '' @@ -30,14 +29,8 @@ buildPythonApplication rec { --replace "#!/bin/bash" "#!${bash}/bin/bash" ''; - preCheck = '' - patchShebangs cvise.py - ''; - disabledTests = [ - # Needs gcc, fails when run noninteractively (without tty). - "test_simple_reduction" - ]; - + # pytest-flake8 is broken in nixpkgs: https://github.com/tholo/pytest-flake8/issues/87 + doCheck = false; dontUsePipInstall = true; dontUseSetuptoolsBuild = true; dontUseSetuptoolsCheck = true;