Merge pull request #187157 from trofi/drop-cvise-tests

cvise: drop tests broken by pytest-flake8 update
This commit is contained in:
Sergei Trofimovich 2022-08-18 06:34:40 +01:00 committed by GitHub
commit e3cbce4bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;