2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonApplication, fetchFromGitHub }:
|
2016-07-29 15:07:10 +00:00
|
|
|
|
2020-06-27 16:52:38 +00:00
|
|
|
buildPythonApplication rec {
|
2016-11-09 10:24:32 +00:00
|
|
|
pname = "cxxtest";
|
2016-07-29 15:07:10 +00:00
|
|
|
version = "4.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CxxTest";
|
2016-11-09 10:24:32 +00:00
|
|
|
repo = pname;
|
2016-07-29 15:07:10 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
|
|
|
|
};
|
|
|
|
|
2020-06-27 16:52:38 +00:00
|
|
|
sourceRoot = "source/python";
|
|
|
|
|
|
|
|
postCheck = ''
|
|
|
|
python scripts/cxxtestgen --error-printer -o build/GoodSuite.cpp ../test/GoodSuite.h
|
|
|
|
$CXX -I.. -o build/GoodSuite build/GoodSuite.cpp
|
|
|
|
build/GoodSuite
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p "$out/include"
|
|
|
|
cp -r ../cxxtest "$out/include"
|
2017-11-02 12:54:20 +00:00
|
|
|
'';
|
2016-07-29 15:07:10 +00:00
|
|
|
|
2020-06-27 16:52:38 +00:00
|
|
|
dontWrapPythonPrograms = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://cxxtest.com";
|
2016-07-29 15:07:10 +00:00
|
|
|
description = "Unit testing framework for C++";
|
2020-06-27 16:52:38 +00:00
|
|
|
platforms = platforms.unix;
|
2016-07-29 15:07:10 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = [ maintainers.juliendehos ];
|
|
|
|
};
|
|
|
|
}
|