Unverified Commit bd6f8901 authored by Sergei Trofimovich's avatar Sergei Trofimovich Committed by GitHub
Browse files

Merge pull request #189004 from trofi/cvise-update

cvise: 2.4.0 -> 2.5.0
parents b90935e8 69e85c98
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, fetchFromGitHub
, bash
, cmake
, colordiff
, flex
, libclang
, llvm
@@ -15,13 +16,13 @@

buildPythonApplication rec {
  pname = "cvise";
  version = "2.4.0";
  version = "2.5.0";

  src = fetchFromGitHub {
    owner = "marxin";
    repo = "cvise";
    rev = "v${version}";
    sha256 = "0cfzikkhp91hjgxjk3izzczb8d9p8v9zsfyk6iklk92n5qf1aakq";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-Nt6Zs3FxO8Ti+ikVPVaMCejzBIuUxrzG4VLhChCSJQw=";
  };

  patches = [
@@ -34,8 +35,9 @@ buildPythonApplication rec {
    substituteInPlace cvise.py \
      --replace "#!/bin/bash" "#!${bash}/bin/bash"

    substituteInPlace setup.cfg \
      --replace "--flake8" ""
    substituteInPlace cvise/utils/testing.py \
      --replace "'colordiff --version'" "'${colordiff}/bin/colordiff --version'" \
      --replace "'colordiff'" "'${colordiff}/bin/colordiff'"
  '';

  nativeBuildInputs = [
@@ -62,10 +64,6 @@ buildPythonApplication rec {
    unifdef
  ];

  preCheck = ''
    patchShebangs cvise.py
  '';

  disabledTests = [
    # Needs gcc, fails when run noninteractively (without tty).
    "test_simple_reduction"