diff options
author | Aaron Jheng <wentworth@outlook.com> | 2022-10-21 11:09:37 +0000 |
---|---|---|
committer | Aaron Jheng <wentworth@outlook.com> | 2022-10-21 11:12:26 +0000 |
commit | 4c116b77c7bbc36d4c7ec66c7aa4c4007306c2f3 (patch) | |
tree | 7661da937b41dff5ea915975cf64bff26ea8a68e /pkgs/development/libraries/cxxtest | |
parent | 0b8181e2640ddb98ac1c4e76cd5e8e68dde4dd79 (diff) |
cxxtest: use python3
Diffstat (limited to 'pkgs/development/libraries/cxxtest')
-rw-r--r-- | pkgs/development/libraries/cxxtest/default.nix | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/pkgs/development/libraries/cxxtest/default.nix b/pkgs/development/libraries/cxxtest/default.nix index 3469cda3fc703..3b8d470d17f0e 100644 --- a/pkgs/development/libraries/cxxtest/default.nix +++ b/pkgs/development/libraries/cxxtest/default.nix @@ -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 ]; }; } |