cvise: drop tests broken by pytest-flake8 update

Commit 219b7104a3
marked pytest-flake8 as broken. Let's demove cvise tests to restore
cvise package until upstream sorts it out.
This commit is contained in:
Sergei Trofimovich 2022-08-17 19:53:24 +01:00
parent fa50d40a72
commit bab6fd31cd

View File

@ -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;