cxxtest: use python3
This commit is contained in:
parent
0b8181e264
commit
4c116b77c7
@ -1,6 +1,6 @@
|
||||
{ lib, buildPythonApplication, fetchFromGitHub }:
|
||||
{ lib, python3Packages, fetchFromGitHub }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "cxxtest";
|
||||
version = "4.4";
|
||||
|
||||
@ -13,15 +13,26 @@ buildPythonApplication rec {
|
||||
|
||||
sourceRoot = "source/python";
|
||||
|
||||
checkInputs = [ python3Packages.ply ];
|
||||
|
||||
preCheck = ''
|
||||
cd ../
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
python scripts/cxxtestgen --error-printer -o build/GoodSuite.cpp ../test/GoodSuite.h
|
||||
$CXX -I.. -o build/GoodSuite build/GoodSuite.cpp
|
||||
cd python3
|
||||
python scripts/cxxtestgen --error-printer -o build/GoodSuite.cpp ../../test/GoodSuite.h
|
||||
$CXX -I../../ -o build/GoodSuite build/GoodSuite.cpp
|
||||
build/GoodSuite
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
cd python3
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p "$out/include"
|
||||
cp -r ../cxxtest "$out/include"
|
||||
cp -r ../../cxxtest "$out/include"
|
||||
'';
|
||||
|
||||
dontWrapPythonPrograms = true;
|
||||
@ -29,8 +40,8 @@ buildPythonApplication rec {
|
||||
meta = with lib; {
|
||||
homepage = "http://cxxtest.com";
|
||||
description = "Unit testing framework for C++";
|
||||
platforms = platforms.unix;
|
||||
license = licenses.lgpl3;
|
||||
maintainers = [ maintainers.juliendehos ];
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ juliendehos ];
|
||||
};
|
||||
}
|
||||
|
@ -18300,7 +18300,7 @@ with pkgs;
|
||||
|
||||
cxxopts = callPackage ../development/libraries/cxxopts { };
|
||||
|
||||
cxxtest = python2Packages.callPackage ../development/libraries/cxxtest { };
|
||||
cxxtest = python3Packages.callPackage ../development/libraries/cxxtest { };
|
||||
|
||||
cypress = callPackage ../development/web/cypress { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user