2021-03-09 03:18:52 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub, cmake, flex
|
2021-05-20 23:08:51 +00:00
|
|
|
, libclang, llvm, unifdef
|
2021-03-09 03:18:52 +00:00
|
|
|
, pebble, psutil, pytestCheckHook, pytest-flake8
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "cvise";
|
2021-03-16 09:55:35 +00:00
|
|
|
version = "2.3.0";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "marxin";
|
|
|
|
repo = "cvise";
|
|
|
|
rev = "v${version}";
|
2021-03-16 09:55:35 +00:00
|
|
|
sha256 = "1x2i8nv0nncgvr07znhh2slngbrg8qcsz2zqx76bcyq9hssn6yal";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Refer to unifdef by absolute path.
|
|
|
|
./unifdef.patch
|
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ cmake flex llvm.dev ];
|
|
|
|
buildInputs = [ libclang llvm llvm.dev unifdef ];
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [ pebble psutil ];
|
|
|
|
checkInputs = [ pytestCheckHook pytest-flake8 unifdef ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
patchShebangs cvise.py
|
|
|
|
'';
|
|
|
|
disabledTests = [
|
|
|
|
# Needs gcc, fails when run noninteractively (without tty).
|
|
|
|
"test_simple_reduction"
|
|
|
|
];
|
|
|
|
|
|
|
|
dontUsePipInstall = true;
|
|
|
|
dontUseSetuptoolsBuild = true;
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/marxin/cvise";
|
|
|
|
description = "Super-parallel Python port of C-Reduce";
|
|
|
|
license = licenses.ncsa;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|