lol
1{ lib, buildPythonApplication, fetchFromGitHub }:
2
3buildPythonApplication rec {
4 pname = "cxxtest";
5 version = "4.4";
6
7 src = fetchFromGitHub {
8 owner = "CxxTest";
9 repo = pname;
10 rev = version;
11 sha256 = "19w92kipfhp5wvs47l0qpibn3x49sbmvkk91yxw6nwk6fafcdl17";
12 };
13
14 sourceRoot = "source/python";
15
16 postCheck = ''
17 python scripts/cxxtestgen --error-printer -o build/GoodSuite.cpp ../test/GoodSuite.h
18 $CXX -I.. -o build/GoodSuite build/GoodSuite.cpp
19 build/GoodSuite
20 '';
21
22 postInstall = ''
23 mkdir -p "$out/include"
24 cp -r ../cxxtest "$out/include"
25 '';
26
27 dontWrapPythonPrograms = true;
28
29 meta = with lib; {
30 homepage = "http://cxxtest.com";
31 description = "Unit testing framework for C++";
32 platforms = platforms.unix;
33 license = licenses.lgpl3;
34 maintainers = [ maintainers.juliendehos ];
35 };
36}