cxxtest: use python3

This commit is contained in:
Aaron Jheng 2022-10-21 11:09:37 +00:00
parent 0b8181e264
commit 4c116b77c7
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3
2 changed files with 19 additions and 8 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };